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:
Serializable
,RegionFactory
,Service
,Stoppable
public class CachingRegionFactory extends RegionFactoryTemplate
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_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(Properties properties)
CachingRegionFactory(CacheKeysFactory cacheKeysFactory)
CachingRegionFactory(CacheKeysFactory cacheKeysFactory, Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DomainDataRegion
buildDomainDataRegion(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext)
Create a namedRegion
for holding domain model dataprotected StorageAccess
createQueryResultsRegionStorageAccess(String regionName, SessionFactoryImplementor sessionFactory)
protected StorageAccess
createTimestampsRegionStorageAccess(String regionName, SessionFactoryImplementor sessionFactory)
protected void
prepareForUse(SessionFactoryOptions settings, Map<String,Object> configValues)
protected void
releaseFromUse()
-
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
-
-
-
-
Field Detail
-
DEFAULT_ACCESSTYPE
public static final String DEFAULT_ACCESSTYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CachingRegionFactory
public CachingRegionFactory()
-
CachingRegionFactory
public CachingRegionFactory(CacheKeysFactory cacheKeysFactory)
-
CachingRegionFactory
public CachingRegionFactory(Properties properties)
-
CachingRegionFactory
public CachingRegionFactory(CacheKeysFactory cacheKeysFactory, Properties properties)
-
-
Method Detail
-
prepareForUse
protected void prepareForUse(SessionFactoryOptions settings, Map<String,Object> configValues)
- Specified by:
prepareForUse
in classAbstractRegionFactory
-
buildDomainDataRegion
public DomainDataRegion buildDomainDataRegion(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext)
Description copied from interface:RegionFactory
Create a namedRegion
for holding domain model data- Specified by:
buildDomainDataRegion
in interfaceRegionFactory
- Overrides:
buildDomainDataRegion
in classRegionFactoryTemplate
- Parameters:
regionConfig
- The user requested caching configuration for this RegionbuildingContext
- Access to delegates useful in building the Region
-
createQueryResultsRegionStorageAccess
protected StorageAccess createQueryResultsRegionStorageAccess(String regionName, SessionFactoryImplementor sessionFactory)
- Specified by:
createQueryResultsRegionStorageAccess
in classRegionFactoryTemplate
-
createTimestampsRegionStorageAccess
protected StorageAccess createTimestampsRegionStorageAccess(String regionName, SessionFactoryImplementor sessionFactory)
- Specified by:
createTimestampsRegionStorageAccess
in classRegionFactoryTemplate
-
releaseFromUse
protected void releaseFromUse()
- Specified by:
releaseFromUse
in classAbstractRegionFactory
-
-