Package org.hibernate.cache.spi.support
Class RegionFactoryTemplate
- java.lang.Object
-
- org.hibernate.cache.spi.AbstractRegionFactory
-
- org.hibernate.cache.spi.support.RegionFactoryTemplate
-
- All Implemented Interfaces:
java.io.Serializable
,RegionFactory
,Service
,Stoppable
- Direct Known Subclasses:
CachingRegionFactory
public abstract class RegionFactoryTemplate extends AbstractRegionFactory
- See Also:
- Serialized Form
-
-
Field Summary
-
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 RegionFactoryTemplate()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DomainDataRegion
buildDomainDataRegion(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext)
Create a named Region for holding domain model dataQueryResultsRegion
buildQueryResultsRegion(java.lang.String regionName, SessionFactoryImplementor sessionFactory)
TimestampsRegion
buildTimestampsRegion(java.lang.String regionName, SessionFactoryImplementor sessionFactory)
protected DomainDataStorageAccess
createDomainDataStorageAccess(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext)
protected abstract StorageAccess
createQueryResultsRegionStorageAccess(java.lang.String regionName, SessionFactoryImplementor sessionFactory)
protected abstract StorageAccess
createTimestampsRegionStorageAccess(java.lang.String regionName, SessionFactoryImplementor sessionFactory)
protected CacheKeysFactory
getImplicitCacheKeysFactory()
-
Methods inherited from class org.hibernate.cache.spi.AbstractRegionFactory
createTransactionContext, getDefaultAccessType, getOptions, getTimeout, isMinimalPutsEnabledByDefault, isStarted, nextTimestamp, prepareForUse, qualify, releaseFromUse, start, stop, verifiedStartStatus, verifyStarted
-
-
-
-
Method Detail
-
buildDomainDataRegion
public DomainDataRegion buildDomainDataRegion(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext)
Description copied from interface:RegionFactory
Create a named Region for holding domain model data- Parameters:
regionConfig
- The user requested caching configuration for this RegionbuildingContext
- Access to delegates useful in building the Region
-
getImplicitCacheKeysFactory
protected CacheKeysFactory getImplicitCacheKeysFactory()
-
createDomainDataStorageAccess
protected DomainDataStorageAccess createDomainDataStorageAccess(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext)
-
buildQueryResultsRegion
public QueryResultsRegion buildQueryResultsRegion(java.lang.String regionName, SessionFactoryImplementor sessionFactory)
-
createQueryResultsRegionStorageAccess
protected abstract StorageAccess createQueryResultsRegionStorageAccess(java.lang.String regionName, SessionFactoryImplementor sessionFactory)
-
buildTimestampsRegion
public TimestampsRegion buildTimestampsRegion(java.lang.String regionName, SessionFactoryImplementor sessionFactory)
-
createTimestampsRegionStorageAccess
protected abstract StorageAccess createTimestampsRegionStorageAccess(java.lang.String regionName, SessionFactoryImplementor sessionFactory)
-
-