Class JCacheRegionFactory
- java.lang.Object
-
- org.hibernate.cache.spi.AbstractRegionFactory
-
- org.hibernate.cache.spi.support.RegionFactoryTemplate
-
- org.hibernate.cache.jcache.internal.JCacheRegionFactory
-
- All Implemented Interfaces:
Serializable
,RegionFactory
,Service
,Stoppable
public class JCacheRegionFactory extends RegionFactoryTemplate
- 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 JCacheRegionFactory()
JCacheRegionFactory(CacheKeysFactory cacheKeysFactory)
-
Method Summary
-
Methods inherited from class org.hibernate.cache.spi.support.RegionFactoryTemplate
buildQueryResultsRegion, buildTimestampsRegion
-
Methods inherited from class org.hibernate.cache.spi.AbstractRegionFactory
createTransactionContext, getDefaultAccessType, getOptions, getTimeout, isMinimalPutsEnabledByDefault, nextTimestamp, qualify, start, stop, verifiedStartStatus, verifyStarted
-
-
-
-
Constructor Detail
-
JCacheRegionFactory
public JCacheRegionFactory()
-
JCacheRegionFactory
public JCacheRegionFactory(CacheKeysFactory cacheKeysFactory)
-
-
Method Detail
-
getCacheManager
public CacheManager getCacheManager()
-
getImplicitCacheKeysFactory
protected CacheKeysFactory getImplicitCacheKeysFactory()
- Overrides:
getImplicitCacheKeysFactory
in classRegionFactoryTemplate
-
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
-
createDomainDataStorageAccess
protected DomainDataStorageAccess createDomainDataStorageAccess(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext)
- Overrides:
createDomainDataStorageAccess
in classRegionFactoryTemplate
-
getOrCreateCache
protected Cache<Object,Object> getOrCreateCache(String unqualifiedRegionName, SessionFactoryImplementor sessionFactory)
-
cacheExists
protected boolean cacheExists(String unqualifiedRegionName, SessionFactoryImplementor sessionFactory)
-
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
-
defaultRegionName
protected final String defaultRegionName(String regionName, SessionFactoryImplementor sessionFactory, String defaultRegionName, List<String> legacyDefaultRegionNames)
-
isStarted
protected boolean isStarted()
- Overrides:
isStarted
in classAbstractRegionFactory
-
prepareForUse
protected void prepareForUse(SessionFactoryOptions settings, Map<String,Object> configValues)
- Specified by:
prepareForUse
in classAbstractRegionFactory
-
resolveCacheManager
protected CacheManager resolveCacheManager(SessionFactoryOptions settings, Map<String,Object> properties)
-
getClassLoader
protected ClassLoader getClassLoader(CachingProvider cachingProvider)
-
getUri
protected URI getUri(SessionFactoryOptions settings, Map<String,Object> properties)
-
getCachingProvider
protected CachingProvider getCachingProvider(Map<String,Object> properties)
-
releaseFromUse
protected void releaseFromUse()
- Specified by:
releaseFromUse
in classAbstractRegionFactory
-
-