Interface CacheImplementor
- All Superinterfaces:
Cache, Cache, Serializable, Service
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this "cache", releasing all underlying resources.default voidDeprecated.only because it's currently never calledThe unqualified name of all regions.getCollectionRegionAccess(NavigableRole collectionRole) Find the cache data access strategy for the given collection, or returnnullwhen the collection is not configured for caching.Access to the "default" region used to store query results when caching is requested, but no region was explicitly named, or returnnullif Hibernate is not configured for query result caching.getEntityRegionAccess(NavigableRole rootEntityName) Find the cache data access strategy for an entity, or returnnullif the given entity is not configured for caching.getNaturalIdCacheRegionAccessStrategy(NavigableRole rootEntityName) Find the cache data access strategy for the given entity's natural id cache, or returnnullwhen the entity does not define a natural id, or its natural id is not configured for caching.getQueryResultsCache(String regionName) Get the named region of the query results cache, creating it if it does not already exist.getQueryResultsCacheStrictly(String regionName) Get the named region of the query cache, but without creating it if it does not already exist, or returnnullif Hibernate is not configured for query result caching or if no such region (yet) exists.Get a cache Region by name.The underlyingRegionFactoryin use.TheSessionFactoryto which thisCachebelongs.The cache data access strategy for the timestamp cache, or returnnullif Hibernate is not configured for query result caching.voidprime(Set<DomainDataRegionConfig> cacheRegionConfigs) An initialization phase allowing the caching provider to prime itself from the passed configurations.Methods inherited from interface Cache
containsCollection, containsEntity, containsEntity, containsQuery, evictAll, evictAllRegions, evictCollectionData, evictCollectionData, evictCollectionData, evictDefaultQueryRegion, evictEntityData, evictEntityData, evictEntityData, evictEntityData, evictEntityData, evictNaturalIdData, evictNaturalIdData, evictNaturalIdData, evictQueryRegion, evictQueryRegions, evictRegion
-
Method Details
-
getSessionFactory
Description copied from interface:CacheTheSessionFactoryto which thisCachebelongs.- Specified by:
getSessionFactoryin interfaceCache
-
getRegionFactory
The underlyingRegionFactoryin use.- API Note:
CacheImplementoracts partially as a wrapper for details of interacting with the configuredRegionFactory. Care should be taken when accessing theRegionFactorydirectly.
-
prime
An initialization phase allowing the caching provider to prime itself from the passed configurations.- Since:
- 5.3
-
getRegion
Get a cache Region by name. If there is both aDomainDataRegionand aQueryResultsRegionwith the specified name, then theDomainDataRegionwill be returned.- Since:
- 5.3
- API Note:
- It is illegal to call this method before
prime(Set)has been called.
-
getCacheRegionNames
The unqualified name of all regions. Intended for use withgetRegion(String).- Since:
- 5.3
-
getTimestampsCache
The cache data access strategy for the timestamp cache, or returnnullif Hibernate is not configured for query result caching.- Since:
- 5.3
-
getDefaultQueryResultsCache
Access to the "default" region used to store query results when caching is requested, but no region was explicitly named, or returnnullif Hibernate is not configured for query result caching. -
getQueryResultsCache
Get the named region of the query results cache, creating it if it does not already exist. If the given region name is null, the default query cache region is returned. Returnnullif Hibernate is not configured for query result caching. -
getQueryResultsCacheStrictly
Get the named region of the query cache, but without creating it if it does not already exist, or returnnullif Hibernate is not configured for query result caching or if no such region (yet) exists.- Since:
- 5.3
- API Note:
- This is intended for use by statistics.
-
evictQueries
Deprecated.only because it's currently never calledClean up the default query results cache.- Throws:
HibernateException
-
close
void close()Close this "cache", releasing all underlying resources.
-