接口 QueryCache
-
- 所有已知子接口:
QueryResultsCache
- 所有已知实现类:
QueryResultsCacheImpl
@Deprecated public interface QueryCache
已过时。UseQueryResultsCacheinstead -CacheImplementor.getQueryResultsCache(java.lang.String)rather thanCacheImplementor.getQueryCache()- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 voidclear()已过时。Clear items from the query cache.voiddestroy()已过时。Destroy the cache.Listget(QueryKey key, Type[] returnTypes, boolean isNaturalKeyLookup, Set<Serializable> spaces, SharedSessionContractImplementor session)已过时。Get results from the cache.QueryResultsRegiongetRegion()已过时。The underlying cache factory region being used.booleanput(QueryKey key, Type[] returnTypes, List result, boolean isNaturalKeyLookup, SharedSessionContractImplementor session)已过时。Put a result into the query cache.
-
-
-
方法详细资料
-
clear
void clear()
已过时。Clear items from the query cache.- 抛出:
CacheException- Indicates a problem delegating to the underlying cache.
-
put
boolean put(QueryKey key, Type[] returnTypes, List result, boolean isNaturalKeyLookup, SharedSessionContractImplementor session)
已过时。Put a result into the query cache.- 参数:
key- The cache keyreturnTypes- The result typesresult- The results to cacheisNaturalKeyLookup- Was this a natural id lookup?session- The originating session- 返回:
- Whether the put actually happened.
-
get
List get(QueryKey key, Type[] returnTypes, boolean isNaturalKeyLookup, Set<Serializable> spaces, SharedSessionContractImplementor session)
已过时。Get results from the cache.- 参数:
key- The cache keyreturnTypes- The result typesisNaturalKeyLookup- Was this a natural id lookup?spaces- The query spaces (used in invalidation plus validation checks)session- The originating session- 返回:
- The cached results; may be null.
-
destroy
void destroy()
已过时。Destroy the cache.
-
getRegion
QueryResultsRegion getRegion()
已过时。The underlying cache factory region being used.- 返回:
- The cache region.
-
-