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:
Serializable
,RegionFactory
,Service
,Stoppable
- Direct Known Subclasses:
CachingRegionFactory
,JCacheRegionFactory
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
-
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 namedRegion
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(String regionName, SessionFactoryImplementor sessionFactory)
Description copied from interface:RegionFactory
Create a namedRegion
for holding query result sets.
-
createQueryResultsRegionStorageAccess
protected abstract StorageAccess createQueryResultsRegionStorageAccess(String regionName, SessionFactoryImplementor sessionFactory)
-
buildTimestampsRegion
public TimestampsRegion buildTimestampsRegion(String regionName, SessionFactoryImplementor sessionFactory)
Description copied from interface:RegionFactory
Create a namedRegion
for holding timestamps used to determine when a cached query result set is stale.
-
createTimestampsRegionStorageAccess
protected abstract StorageAccess createTimestampsRegionStorageAccess(String regionName, SessionFactoryImplementor sessionFactory)
-
-