public interface CacheImplementor extends Service, Cache, Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
addCacheRegion(String name,
Region region)
Add
Region to this Cache scope. |
void |
close()
Close all cache regions.
|
void |
evictQueries()
Clean up the default
QueryCache. |
Map<String,Region> |
getAllSecondLevelCacheRegions()
Get all cache regions, including query cache.
|
Region |
getNaturalIdCacheRegion(String regionName)
Get natural id cache region by its name.
|
QueryCache |
getQueryCache()
Get the default
QueryCache. |
QueryCache |
getQueryCache(String regionName)
Get query cache by region name or create a new one if none exist.
|
RegionFactory |
getRegionFactory() |
Region |
getSecondLevelCacheRegion(String regionName)
Get second level cache region by its name.
|
UpdateTimestampsCache |
getUpdateTimestampsCache()
Get
UpdateTimestampsCache instance managed by the SessionFactory. |
containsCollection, containsEntity, containsEntity, containsQuery, evictAllRegions, evictCollection, evictCollectionRegion, evictCollectionRegions, evictDefaultQueryRegion, evictEntity, evictEntity, evictEntityRegion, evictEntityRegion, evictEntityRegions, evictNaturalIdRegion, evictNaturalIdRegion, evictNaturalIdRegions, evictQueryRegion, evictQueryRegionsvoid close()
QueryCache getQueryCache(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.QueryCache getQueryCache()
QueryCache.void addCacheRegion(String name, Region region)
Region to this Cache scope.name - The region name.region - The Region instance.UpdateTimestampsCache getUpdateTimestampsCache()
UpdateTimestampsCache instance managed by the SessionFactory.void evictQueries()
throws HibernateException
QueryCache.HibernateExceptionRegion getSecondLevelCacheRegion(String regionName)
regionName - The region name.Region getNaturalIdCacheRegion(String regionName)
regionName - The region name.Map<String,Region> getAllSecondLevelCacheRegions()
RegionFactory getRegionFactory()
RegionFactoryCopyright © 2017 JBoss by Red Hat. All rights reserved.