| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close all cache regions.
|
CollectionRegionAccessStrategy |
determineCollectionRegionAccessStrategy(Collection model) |
EntityRegionAccessStrategy |
determineEntityRegionAccessStrategy(PersistentClass model) |
NaturalIdRegionAccessStrategy |
determineNaturalIdRegionAccessStrategy(PersistentClass model) |
void |
evictQueries()
Clean up the default
QueryCache. |
CollectionRegionAccessStrategy |
getCollectionRegionAccess(java.lang.String regionName)
Find the "access strategy" for the named collection cache region.
|
QueryCache |
getDefaultQueryCache()
Get the default
QueryCache. |
EntityRegionAccessStrategy |
getEntityRegionAccess(java.lang.String regionName)
Find the "access strategy" for the named entity cache region.
|
NaturalIdRegionAccessStrategy |
getNaturalIdCacheRegionAccessStrategy(java.lang.String regionName)
Find the "access strategy" for the named natrual-id cache region.
|
default QueryCache |
getQueryCache()
Deprecated.
Use
getDefaultQueryCache() instead. |
QueryCache |
getQueryCache(java.lang.String regionName)
Get query cache by region name or create a new one if none exist.
|
RegionFactory |
getRegionFactory()
The underlying RegionFactory in use.
|
java.lang.String[] |
getSecondLevelCacheRegionNames()
Get the names of all cache regions, including entity, collection, natural-id and query caches.
|
UpdateTimestampsCache |
getUpdateTimestampsCache()
Get
UpdateTimestampsCache instance managed by the SessionFactory. |
java.lang.String |
qualifyRegionName(java.lang.String regionName)
Applies any defined prefix, handling all
null checks. |
containsCollection, containsEntity, containsEntity, containsQuery, evictAllRegions, evictCollection, evictCollectionRegion, evictCollectionRegions, evictDefaultQueryRegion, evictEntity, evictEntity, evictEntityRegion, evictEntityRegion, evictEntityRegions, evictNaturalIdRegion, evictNaturalIdRegion, evictNaturalIdRegions, evictQueryRegion, evictQueryRegions, getSessionFactoryvoid close()
QueryCache getQueryCache(java.lang.String regionName) throws HibernateException
regionName - Query cache region name.QueryCache associated with the region name, or default query cache if the region name is null.HibernateException - HibernateException maybe thrown when the creation of new QueryCache instance.@Deprecated default QueryCache getQueryCache()
getDefaultQueryCache() instead.QueryCache.QueryCache getDefaultQueryCache()
QueryCache.UpdateTimestampsCache getUpdateTimestampsCache()
UpdateTimestampsCache instance managed by the SessionFactory.void evictQueries()
throws HibernateException
QueryCache.HibernateExceptionRegionFactory getRegionFactory()
RegionFactoryjava.lang.String qualifyRegionName(java.lang.String regionName)
null checks.regionName - The region name to qualifyjava.lang.String[] getSecondLevelCacheRegionNames()
EntityRegionAccessStrategy getEntityRegionAccess(java.lang.String regionName)
regionName - The name of the regionCollectionRegionAccessStrategy getCollectionRegionAccess(java.lang.String regionName)
regionName - The name of the regionNaturalIdRegionAccessStrategy getNaturalIdCacheRegionAccessStrategy(java.lang.String regionName)
regionName - The name of the regionEntityRegionAccessStrategy determineEntityRegionAccessStrategy(PersistentClass model)
NaturalIdRegionAccessStrategy determineNaturalIdRegionAccessStrategy(PersistentClass model)
CollectionRegionAccessStrategy determineCollectionRegionAccessStrategy(Collection model)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.