Package org.hibernate.testing.cache
Class CachingRegionFactory
- java.lang.Object
-
- org.hibernate.cache.spi.AbstractRegionFactory
-
- org.hibernate.cache.spi.support.RegionFactoryTemplate
-
- org.hibernate.testing.cache.CachingRegionFactory
-
- All Implemented Interfaces:
java.io.Serializable,RegionFactory,Service,Stoppable
public class CachingRegionFactory extends RegionFactoryTemplate
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_ACCESSTYPE-
Fields inherited from class org.hibernate.cache.spi.AbstractRegionFactory
LEGACY_QUERY_RESULTS_REGION_UNQUALIFIED_NAMES, LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMES
-
Fields inherited from interface org.hibernate.cache.spi.RegionFactory
DEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAME, DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME
-
-
Constructor Summary
Constructors Constructor Description CachingRegionFactory()CachingRegionFactory(java.util.Properties properties)CachingRegionFactory(CacheKeysFactory cacheKeysFactory)CachingRegionFactory(CacheKeysFactory cacheKeysFactory, java.util.Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DomainDataRegionbuildDomainDataRegion(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext)Create a named Region for holding domain model dataprotected StorageAccesscreateQueryResultsRegionStorageAccess(java.lang.String regionName, SessionFactoryImplementor sessionFactory)protected StorageAccesscreateTimestampsRegionStorageAccess(java.lang.String regionName, SessionFactoryImplementor sessionFactory)protected voidprepareForUse(SessionFactoryOptions settings, java.util.Map configValues)protected voidreleaseFromUse()-
Methods inherited from class org.hibernate.cache.spi.support.RegionFactoryTemplate
buildQueryResultsRegion, buildTimestampsRegion, createDomainDataStorageAccess, getImplicitCacheKeysFactory
-
Methods inherited from class org.hibernate.cache.spi.AbstractRegionFactory
createTransactionContext, getDefaultAccessType, getOptions, getTimeout, isMinimalPutsEnabledByDefault, isStarted, nextTimestamp, qualify, start, stop, verifiedStartStatus, verifyStarted
-
-
-
-
Constructor Detail
-
CachingRegionFactory
public CachingRegionFactory()
-
CachingRegionFactory
public CachingRegionFactory(CacheKeysFactory cacheKeysFactory)
-
CachingRegionFactory
public CachingRegionFactory(java.util.Properties properties)
-
CachingRegionFactory
public CachingRegionFactory(CacheKeysFactory cacheKeysFactory, java.util.Properties properties)
-
-
Method Detail
-
prepareForUse
protected void prepareForUse(SessionFactoryOptions settings, java.util.Map configValues)
- Specified by:
prepareForUsein classAbstractRegionFactory
-
buildDomainDataRegion
public DomainDataRegion buildDomainDataRegion(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext)
Description copied from interface:RegionFactoryCreate a named Region for holding domain model data- Specified by:
buildDomainDataRegionin interfaceRegionFactory- Overrides:
buildDomainDataRegionin classRegionFactoryTemplate- Parameters:
regionConfig- The user requested caching configuration for this RegionbuildingContext- Access to delegates useful in building the Region
-
createQueryResultsRegionStorageAccess
protected StorageAccess createQueryResultsRegionStorageAccess(java.lang.String regionName, SessionFactoryImplementor sessionFactory)
- Specified by:
createQueryResultsRegionStorageAccessin classRegionFactoryTemplate
-
createTimestampsRegionStorageAccess
protected StorageAccess createTimestampsRegionStorageAccess(java.lang.String regionName, SessionFactoryImplementor sessionFactory)
- Specified by:
createTimestampsRegionStorageAccessin classRegionFactoryTemplate
-
releaseFromUse
protected void releaseFromUse()
- Specified by:
releaseFromUsein classAbstractRegionFactory
-
-