public interface DomainDataRegion extends Region
A Region for cacheable domain data - entity, collection, natural-id.
Generally speaking, this type of data has:
specific key and value wrapping that needs to be applied
specific access patterns (EntityDataAccess, etc),
including some form of locking
| Modifier and Type | Method and Description |
|---|---|
CollectionDataAccess |
getCollectionDataAccess(NavigableRole collectionRole)
Build a CollectionRegionAccess instance representing access to collection
data stored in this cache region using the given AccessType.
|
EntityDataAccess |
getEntityDataAccess(NavigableRole rootEntityRole)
Build a EntityRegionAccess instance representing access to entity data
stored in this cache region using the given AccessType.
|
NaturalIdDataAccess |
getNaturalIdDataAccess(NavigableRole rootEntityRole)
Build a NaturalIdRegionAccess instance representing access to natural-id
data stored in this cache region using the given AccessType.
|
clear, destroy, getName, getRegionFactoryEntityDataAccess getEntityDataAccess(NavigableRole rootEntityRole)
Build a EntityRegionAccess instance representing access to entity data stored in this cache region using the given AccessType.
rootEntityRole - The root entity name for the hierarchy whose data
we want to accessCacheException - If the provider cannot provide the requested accessNaturalIdDataAccess getNaturalIdDataAccess(NavigableRole rootEntityRole)
Build a NaturalIdRegionAccess instance representing access to natural-id data stored in this cache region using the given AccessType.
rootEntityRole - The NavigableRole of the root entity whose
natural-id data we want to accessCacheException - If the provider cannot provide the requested accessCollectionDataAccess getCollectionDataAccess(NavigableRole collectionRole)
Build a CollectionRegionAccess instance representing access to collection data stored in this cache region using the given AccessType.
collectionRole - The NavigableRole of the collection whose data
we want to accessCacheException - If the provider cannot provide the requested accessCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.