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
- See Also:
-
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 -
Method Summary
Modifier and TypeMethodDescriptionbuildDomainDataRegion
(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext) Create a namedRegion
for holding domain model databuildQueryResultsRegion
(String regionName, SessionFactoryImplementor sessionFactory) Create a namedRegion
for holding query result sets.buildTimestampsRegion
(String regionName, SessionFactoryImplementor sessionFactory) Create a namedRegion
for holding timestamps used to determine when a cached query result set is stale.protected DomainDataStorageAccess
createDomainDataStorageAccess
(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext) protected abstract StorageAccess
createQueryResultsRegionStorageAccess
(String regionName, SessionFactoryImplementor sessionFactory) protected abstract StorageAccess
createTimestampsRegionStorageAccess
(String regionName, SessionFactoryImplementor sessionFactory) protected CacheKeysFactory
Methods inherited from class org.hibernate.cache.spi.AbstractRegionFactory
createTransactionContext, getDefaultAccessType, getOptions, getTimeout, isMinimalPutsEnabledByDefault, isStarted, nextTimestamp, prepareForUse, qualify, releaseFromUse, start, stop, verifiedStartStatus, verifyStarted
-
Constructor Details
-
RegionFactoryTemplate
public RegionFactoryTemplate()
-
-
Method Details
-
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
-
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)
-