CacheImplementor
@Deprecated public interface CacheImplementor extends Service, Cache, Serializable
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Close this "cache", releasing all underlying resources.
|
default void |
evictQueries()
Deprecated.
Clean up the default query cache
|
Set<String> |
getCacheRegionNames()
Deprecated.
The unqualified name of all regions.
|
CollectionDataAccess |
getCollectionRegionAccess(NavigableRole collectionRole)
Deprecated.
Use
EntityPersister.getNaturalIdCacheAccessStrategy() ()} instead |
default QueryCache |
getDefaultQueryCache()
Deprecated.
Use
getDefaultQueryResultsCache() instead. |
QueryResultsCache |
getDefaultQueryResultsCache()
Deprecated.
Access to the "default" region used to store query results when caching
was requested but no region was explicitly named.
|
EntityDataAccess |
getEntityRegionAccess(NavigableRole rootEntityName)
Deprecated.
Use
EntityPersister.getCacheAccessStrategy() instead |
Set<NaturalIdDataAccess> |
getNaturalIdAccessesInRegion(String legacyQualifiedRegionName)
Deprecated.
No replacement - added just for support of the newly deprecated methods expecting a qualified region name
|
NaturalIdDataAccess |
getNaturalIdCacheRegionAccessStrategy(NavigableRole rootEntityName)
Deprecated.
Use
EntityPersister.getNaturalIdCacheAccessStrategy() ()} instead |
default QueryCache |
getQueryCache()
Deprecated.
Use
getDefaultQueryResultsCache() instead. |
default QueryCache |
getQueryCache(String regionName)
Deprecated.
Use
getQueryResultsCache(String) instead, but using unqualified name |
QueryResultsCache |
getQueryResultsCache(String regionName)
Deprecated.
Get query cache by region name or create a new one if none exist.
|
QueryResultsCache |
getQueryResultsCacheStrictly(String regionName)
Deprecated.
Get the named QueryResultRegionAccess but not creating one if it
does not already exist.
|
Region |
getRegion(String regionName)
Deprecated.
Get a cache Region by name
|
default Region |
getRegionByLegacyName(String legacyName)
Deprecated.
No replacement - added just for support of the newly deprecated methods expecting a qualified region name
|
RegionFactory |
getRegionFactory()
Deprecated.
The underlying RegionFactory in use.
|
String[] |
getSecondLevelCacheRegionNames()
Deprecated.
(since 5.3) Use
getCacheRegionNames() instead |
SessionFactoryImplementor |
getSessionFactory()
Deprecated.
Access to the SessionFactory this Cache is bound to.
|
TimestampsCache |
getTimestampsCache()
Deprecated.
Find the cache data access strategy for Hibernate's timestamps cache.
|
default UpdateTimestampsCache |
getUpdateTimestampsCache()
Deprecated.
Use
getTimestampsCache() instead |
void |
prime(Set<DomainDataRegionConfig> cacheRegionConfigs)
Deprecated.
An initialization phase allowing the caching provider to prime itself
from the passed configs
|
default String |
unqualifyRegionName(String name)
Deprecated.
(since 5.3) No replacement - added just to continue some backwards compatibility
in supporting the newly deprecated methods expecting a qualified (prefix +) region name
|
containsCollection, containsEntity, containsEntity, containsQuery, evictAll, evictAllRegions, evictCollection, evictCollectionData, evictCollectionData, evictCollectionData, evictCollectionRegion, evictCollectionRegions, evictDefaultQueryRegion, evictEntity, evictEntity, evictEntityData, evictEntityData, evictEntityData, evictEntityData, evictEntityData, evictEntityRegion, evictEntityRegion, evictEntityRegions, evictNaturalIdData, evictNaturalIdData, evictNaturalIdData, evictNaturalIdRegion, evictNaturalIdRegion, evictNaturalIdRegions, evictQueryRegion, evictQueryRegions, evictRegion
SessionFactoryImplementor getSessionFactory()
Cache
RegionFactory getRegionFactory()
void prime(Set<DomainDataRegionConfig> cacheRegionConfigs)
Set<String> getCacheRegionNames()
getRegion(java.lang.String)
TimestampsCache getTimestampsCache()
null
if Hibernate is not configured for query result cachingQueryResultsCache getDefaultQueryResultsCache()
null
if Hibernate is not configured for query result cachingQueryResultsCache getQueryResultsCache(String regionName)
null
if Hibernate is not configured for query result cachingQueryResultsCache getQueryResultsCacheStrictly(String regionName)
null
if Hibernate is not configured for query result
caching or if no such region (yet) existsdefault void evictQueries() throws HibernateException
HibernateException
void close()
@Deprecated String[] getSecondLevelCacheRegionNames()
getCacheRegionNames()
instead@Deprecated EntityDataAccess getEntityRegionAccess(NavigableRole rootEntityName)
EntityPersister.getCacheAccessStrategy()
insteadnull
when the entity is not configured for caching.rootEntityName
- The NavigableRole representation of the root entity@Deprecated NaturalIdDataAccess getNaturalIdCacheRegionAccessStrategy(NavigableRole rootEntityName)
EntityPersister.getNaturalIdCacheAccessStrategy()
()} insteadnull
when the entity does not define a natural-id, or its
natural-id is not configured for caching.rootEntityName
- The NavigableRole representation of the root entity@Deprecated CollectionDataAccess getCollectionRegionAccess(NavigableRole collectionRole)
EntityPersister.getNaturalIdCacheAccessStrategy()
()} insteadnull
when the collection is not configured for caching.@Deprecated default UpdateTimestampsCache getUpdateTimestampsCache()
getTimestampsCache()
insteadUpdateTimestampsCache
instance managed by the SessionFactory
.@Deprecated default QueryCache getQueryCache()
getDefaultQueryResultsCache()
instead.QueryCache
.@Deprecated default QueryCache getDefaultQueryCache()
getDefaultQueryResultsCache()
instead.QueryCache
.@Deprecated default QueryCache getQueryCache(String regionName) throws HibernateException
getQueryResultsCache(String)
instead, but using unqualified nameHibernateException
@Deprecated default String unqualifyRegionName(String name)
@Deprecated default Region getRegionByLegacyName(String legacyName)
@Deprecated Set<NaturalIdDataAccess> getNaturalIdAccessesInRegion(String legacyQualifiedRegionName)
Copyright © 2021 JBoss by Red Hat. All rights reserved.