|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheImplementor
Define internal contact of Cache API
Method Summary | |
---|---|
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 . |
Methods inherited from interface org.hibernate.Cache |
---|
containsCollection, containsEntity, containsEntity, containsQuery, evictCollection, evictCollectionRegion, evictCollectionRegions, evictDefaultQueryRegion, evictEntity, evictEntity, evictEntityRegion, evictEntityRegion, evictEntityRegions, evictNaturalIdRegion, evictNaturalIdRegion, evictNaturalIdRegions, evictQueryRegion, evictQueryRegions |
Method Detail |
---|
void 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
.
HibernateException
Region getSecondLevelCacheRegion(String regionName)
regionName
- The region name.
Region getNaturalIdCacheRegion(String regionName)
regionName
- The region name.
Map<String,Region> getAllSecondLevelCacheRegions()
RegionFactory getRegionFactory()
RegionFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |