接口 CacheImplementor
-
- 所有超级接口:
javax.persistence.Cache,Cache,Serializable,Service
- 所有已知子接口:
CacheImplementor
- 所有已知实现类:
DisabledCaching,EnabledCaching
@Deprecated public interface CacheImplementor extends Service, Cache, Serializable
已过时。Moved toCacheImplementorSPI contract for Hibernate's second-level cache engine- 从以下版本开始:
- 4.1
- 作者:
- Strong Liu, Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 已过时的方法 修饰符和类型 方法 说明 voidclose()已过时。Close this "cache", releasing all underlying resources.default voidevictQueries()已过时。Clean up the default query cacheSet<String>getCacheRegionNames()已过时。The unqualified name of all regions.CollectionDataAccessgetCollectionRegionAccess(NavigableRole collectionRole)已过时。UseEntityPersister.getNaturalIdCacheAccessStrategy()()} insteaddefault QueryCachegetDefaultQueryCache()已过时。UsegetDefaultQueryResultsCache()instead.QueryResultsCachegetDefaultQueryResultsCache()已过时。Access to the "default" region used to store query results when caching was requested but no region was explicitly named.EntityDataAccessgetEntityRegionAccess(NavigableRole rootEntityName)已过时。UseEntityPersister.getCacheAccessStrategy()insteadSet<NaturalIdDataAccess>getNaturalIdAccessesInRegion(String legacyQualifiedRegionName)已过时。No replacement - added just for support of the newly deprecated methods expecting a qualified region nameNaturalIdDataAccessgetNaturalIdCacheRegionAccessStrategy(NavigableRole rootEntityName)已过时。UseEntityPersister.getNaturalIdCacheAccessStrategy()()} insteaddefault QueryCachegetQueryCache()已过时。UsegetDefaultQueryResultsCache()instead.default QueryCachegetQueryCache(String regionName)已过时。UsegetQueryResultsCache(String)instead, but using unqualified nameQueryResultsCachegetQueryResultsCache(String regionName)已过时。Get query cache by region name or create a new one if none exist.QueryResultsCachegetQueryResultsCacheStrictly(String regionName)已过时。Get the named QueryResultRegionAccess but not creating one if it does not already exist.RegiongetRegion(String regionName)已过时。Get a cache Region by namedefault RegiongetRegionByLegacyName(String legacyName)已过时。No replacement - added just for support of the newly deprecated methods expecting a qualified region nameRegionFactorygetRegionFactory()已过时。The underlying RegionFactory in use.String[]getSecondLevelCacheRegionNames()已过时。(since 5.3) UsegetCacheRegionNames()insteadSessionFactoryImplementorgetSessionFactory()已过时。Access to the SessionFactory this Cache is bound to.TimestampsCachegetTimestampsCache()已过时。Find the cache data access strategy for Hibernate's timestamps cache.default UpdateTimestampsCachegetUpdateTimestampsCache()已过时。UsegetTimestampsCache()insteadvoidprime(Set<DomainDataRegionConfig> cacheRegionConfigs)已过时。An initialization phase allowing the caching provider to prime itself from the passed configsdefault StringunqualifyRegionName(String name)已过时。(since 5.3) No replacement - added just to continue some backwards compatibility in supporting the newly deprecated methods expecting a qualified (prefix +) region name-
从接口继承的方法 org.hibernate.Cache
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
-
-
-
-
方法详细资料
-
getSessionFactory
SessionFactoryImplementor getSessionFactory()
已过时。从接口复制的说明:CacheAccess to the SessionFactory this Cache is bound to.- 指定者:
getSessionFactory在接口中Cache- 返回:
- The SessionFactory
-
getRegionFactory
RegionFactory getRegionFactory()
已过时。The underlying RegionFactory in use.
-
prime
void prime(Set<DomainDataRegionConfig> cacheRegionConfigs)
已过时。An initialization phase allowing the caching provider to prime itself from the passed configs- 从以下版本开始:
- 5.3
-
getCacheRegionNames
Set<String> getCacheRegionNames()
已过时。The unqualified name of all regions. Intended for use withgetRegion(java.lang.String)- 从以下版本开始:
- 5.3
-
getTimestampsCache
TimestampsCache getTimestampsCache()
已过时。Find the cache data access strategy for Hibernate's timestamps cache. Will returnnullif Hibernate is not configured for query result caching- 从以下版本开始:
- 5.3
-
getDefaultQueryResultsCache
QueryResultsCache getDefaultQueryResultsCache()
已过时。Access to the "default" region used to store query results when caching was requested but no region was explicitly named. Will returnnullif Hibernate is not configured for query result caching
-
getQueryResultsCache
QueryResultsCache getQueryResultsCache(String regionName)
已过时。Get query cache by region name or create a new one if none exist. If the region name is null, then default query cache region will be returned. Will returnnullif Hibernate is not configured for query result caching
-
getQueryResultsCacheStrictly
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 returnnullif Hibernate is not configured for query result caching or if no such region (yet) exists- 从以下版本开始:
- 5.3
-
evictQueries
default void evictQueries() throws HibernateException已过时。Clean up the default query cache
-
close
void close()
已过时。Close this "cache", releasing all underlying resources.
-
getSecondLevelCacheRegionNames
@Deprecated String[] getSecondLevelCacheRegionNames()
已过时。(since 5.3) UsegetCacheRegionNames()insteadGet the *qualified* names of all regions caching entity and collection data.- 返回:
- All cache region names
-
getEntityRegionAccess
@Deprecated EntityDataAccess getEntityRegionAccess(NavigableRole rootEntityName)
已过时。UseEntityPersister.getCacheAccessStrategy()insteadFind the cache data access strategy for an entity. Will returnnullwhen the entity is not configured for caching.- 参数:
rootEntityName- The NavigableRole representation of the root entity
-
getNaturalIdCacheRegionAccessStrategy
@Deprecated NaturalIdDataAccess getNaturalIdCacheRegionAccessStrategy(NavigableRole rootEntityName)
已过时。UseEntityPersister.getNaturalIdCacheAccessStrategy()()} insteadFind the cache data access strategy for the given entity's natural-id cache. Will returnnullwhen 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
-
getCollectionRegionAccess
@Deprecated CollectionDataAccess getCollectionRegionAccess(NavigableRole collectionRole)
已过时。UseEntityPersister.getNaturalIdCacheAccessStrategy()()} insteadFind the cache data access strategy for the given collection. Will returnnullwhen the collection is not configured for caching.
-
getUpdateTimestampsCache
@Deprecated default UpdateTimestampsCache getUpdateTimestampsCache()
已过时。UsegetTimestampsCache()insteadGetUpdateTimestampsCacheinstance managed by theSessionFactory.
-
getQueryCache
@Deprecated default QueryCache getQueryCache()
已过时。UsegetDefaultQueryResultsCache()instead.Get the defaultQueryCache.
-
getDefaultQueryCache
@Deprecated default QueryCache getDefaultQueryCache()
已过时。UsegetDefaultQueryResultsCache()instead.Get the defaultQueryCache.
-
getQueryCache
@Deprecated default QueryCache getQueryCache(String regionName) throws HibernateException
已过时。UsegetQueryResultsCache(String)instead, but using unqualified name
-
unqualifyRegionName
@Deprecated default String unqualifyRegionName(String name)
已过时。(since 5.3) No replacement - added just to continue some backwards compatibility in supporting the newly deprecated methods expecting a qualified (prefix +) region name
-
getRegionByLegacyName
@Deprecated default Region getRegionByLegacyName(String legacyName)
已过时。No replacement - added just for support of the newly deprecated methods expecting a qualified region name
-
getNaturalIdAccessesInRegion
@Deprecated Set<NaturalIdDataAccess> getNaturalIdAccessesInRegion(String legacyQualifiedRegionName)
已过时。No replacement - added just for support of the newly deprecated methods expecting a qualified region name
-
-