Cache API. Extends Cache with operations
called internally by Hibernate.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public default void | |
| public Set | |
| public @Remove CollectionDataAccess | getCollectionRegionAccess(NavigableRole collectionRole)
Find the cache data access strategy for the given collection. |
| public QueryResultsCache | getDefaultQueryResultsCache()
Access to the "default" region used to store query results when caching was requested but no region was explicitly named. |
| public @Remove EntityDataAccess | getEntityRegionAccess(NavigableRole
The NavigableRole representation of the root entity rootEntityName)Find the cache data access strategy for an entity. |
| public @Remove NaturalIdDataAccess | getNaturalIdCacheRegionAccessStrategy(NavigableRole
The NavigableRole representation of the root entity rootEntityName)Find the cache data access strategy for the given entity's natural-id cache. |
| public QueryResultsCache | getQueryResultsCache(String regionName)
Get query cache by |
| public QueryResultsCache | getQueryResultsCacheStrictly(String regionName)
Get the named QueryResultRegionAccess but not creating one if it does not already exist. |
| public Region | |
| public RegionFactory | |
| public SessionFactoryImplementor | getSessionFactory()
Redeclares org.
Deprecated
as a consequence of
The SessionFactoryImplementor being deprecated.
SessionFactory to which this Cache belongs.
|
| public TimestampsCache | |
| public void | prime(Set<DomainDataRegionConfig> cacheRegionConfigs)
An initialization phase allowing the caching provider to prime itself from the passed configs |
| close | back to summary |
|---|---|
| public void close() Close this "cache", releasing all underlying resources. | |
| evictQueries | back to summary |
|---|---|
| public default void evictQueries() throws HibernateException
Deprecated only because it's currently never called Clean up the default query cache
| |
| getCacheRegionNames | back to summary |
|---|---|
| public Set The unqualified name of all regions. Intended for use with
| |
| getCollectionRegionAccess | back to summary |
|---|---|
| public @Remove CollectionDataAccess getCollectionRegionAccess(NavigableRole collectionRole) Find the cache data access strategy for the given collection. Will
return Implementation Specification It is only valid to call this method after API Note Use | |
| getDefaultQueryResultsCache | back to summary |
|---|---|
| public QueryResultsCache getDefaultQueryResultsCache() Access to the "default" region used to store query results when caching
was requested but no region was explicitly named. Will return | |
| getEntityRegionAccess | back to summary |
|---|---|
| public @Remove EntityDataAccess getEntityRegionAccess(NavigableRole rootEntityName) Find the cache data access strategy for an entity. Will
return Implementation Specification It is only valid to call this method after API Note Use
| |
| getNaturalIdCacheRegionAccessStrategy | back to summary |
|---|---|
| public @Remove NaturalIdDataAccess getNaturalIdCacheRegionAccessStrategy(NavigableRole rootEntityName) Find the cache data access strategy for the given entity's natural-id cache.
Will return Implementation Specification It is only valid to call this method after API Note Use
| |
| getQueryResultsCache | back to summary |
|---|---|
| public QueryResultsCache getQueryResultsCache(String regionName) Get query cache by | |
| getQueryResultsCacheStrictly | back to summary |
|---|---|
| public QueryResultsCache getQueryResultsCacheStrictly(String regionName) Get the named QueryResultRegionAccess but not creating one if it
does not already exist. This is intended for use by statistics.
Will return
| |
| getRegion | back to summary |
|---|---|
| public Region getRegion(String regionName) Get a cache Region by name. If there is both a API Note It is only valid to call this method after
| |
| getRegionFactory | back to summary |
|---|---|
| public RegionFactory getRegionFactory() The underlying RegionFactory in use. API Note CacheImplementor acts partially as a wrapper for details of interacting with the configured RegionFactory. Care should be taken when accessing the RegionFactory directly. | |
| getSessionFactory | back to summary |
|---|---|
| public SessionFactoryImplementor getSessionFactory() Redeclares org. Doc from org. Deprecated as a consequence of The
| |
| getTimestampsCache | back to summary |
|---|---|
| public TimestampsCache getTimestampsCache() Find the cache data access strategy for Hibernate's timestamps cache.
Will return
| |
| prime | back to summary |
|---|---|
| public void prime(Set<DomainDataRegionConfig> cacheRegionConfigs) An initialization phase allowing the caching provider to prime itself from the passed configs
| |