Package org.hibernate.cache.impl.bridge
Class EntityRegionAdapter
java.lang.Object
org.hibernate.cache.impl.bridge.BaseRegionAdapter
org.hibernate.cache.impl.bridge.BaseTransactionalDataRegionAdapter
org.hibernate.cache.impl.bridge.EntityRegionAdapter
- All Implemented Interfaces:
EntityRegion,Region,TransactionalDataRegion
Adapter specifically bridging
EntityRegion to Cache.-
Field Summary
Fields inherited from class org.hibernate.cache.impl.bridge.BaseTransactionalDataRegionAdapter
metadataFields inherited from class org.hibernate.cache.impl.bridge.BaseRegionAdapter
settings, underlyingCache -
Constructor Summary
ConstructorsConstructorDescriptionEntityRegionAdapter(Cache underlyingCache, Settings settings, CacheDataDescription metadata) -
Method Summary
Modifier and TypeMethodDescriptionbuildAccessStrategy(AccessType accessType) Build an access strategy for the requested access type.Methods inherited from class org.hibernate.cache.impl.bridge.BaseTransactionalDataRegionAdapter
getCacheDataDescription, isTransactionAwareMethods inherited from class org.hibernate.cache.impl.bridge.BaseRegionAdapter
clear, contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.cache.Region
contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMapMethods inherited from interface org.hibernate.cache.TransactionalDataRegion
getCacheDataDescription, isTransactionAware
-
Constructor Details
-
EntityRegionAdapter
-
-
Method Details
-
buildAccessStrategy
Description copied from interface:EntityRegionBuild an access strategy for the requested access type.- Specified by:
buildAccessStrategyin interfaceEntityRegion- Parameters:
accessType- The type of access strategy to build; never null.- Returns:
- The appropriate strategy contract for accessing this region for the requested type of access.
- Throws:
CacheException- Usually indicates mis-configuration.
-