接口 QueryResultsCache
-
- 所有超级接口:
QueryCache
- 所有已知实现类:
QueryResultsCacheImpl
public interface QueryResultsCache extends QueryCache
Defines the responsibility for managing query result data caching in regards to a specific region.- 作者:
- Gavin King, Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default voidclear()Clear items from the query cache.default voiddestroy()Destroy the cache.Listget(QueryKey key, String[] spaces, Type[] returnTypes, SharedSessionContractImplementor session)Get results from the cache.Listget(QueryKey key, Set<Serializable> spaces, Type[] returnTypes, SharedSessionContractImplementor session)Get results from the cache.default Listget(QueryKey key, Type[] returnTypes, boolean isNaturalKeyLookup, Set<Serializable> spaces, SharedSessionContractImplementor session)Get results from the cache.QueryResultsRegiongetRegion()The underlying cache region being used.booleanput(QueryKey key, List result, Type[] returnTypes, SharedSessionContractImplementor session)Put a result into the query cache.default booleanput(QueryKey key, Type[] returnTypes, List result, boolean isNaturalKeyLookup, SharedSessionContractImplementor session)Put a result into the query cache.
-
-
-
方法详细资料
-
getRegion
QueryResultsRegion getRegion()
The underlying cache region being used.- 指定者:
getRegion在接口中QueryCache- 返回:
- The cache region.
-
clear
default void clear() throws CacheExceptionClear items from the query cache.- 指定者:
clear在接口中QueryCache- 抛出:
CacheException- Indicates a problem delegating to the underlying cache.
-
put
boolean put(QueryKey key, List result, Type[] returnTypes, SharedSessionContractImplementor session) throws HibernateException
Put a result into the query cache.- 参数:
key- The cache keyresult- The results to cachesession- The originating session- 返回:
- Whether the put actually happened.
- 抛出:
HibernateException- Indicates a problem delegating to the underlying cache.
-
get
List get(QueryKey key, Set<Serializable> spaces, Type[] returnTypes, SharedSessionContractImplementor session) throws HibernateException
Get results from the cache.- 参数:
key- The cache keyspaces- The query spaces (used in invalidation plus validation checks)session- The originating session- 返回:
- The cached results; may be null.
- 抛出:
HibernateException- Indicates a problem delegating to the underlying cache.
-
get
List get(QueryKey key, String[] spaces, Type[] returnTypes, SharedSessionContractImplementor session) throws HibernateException
Get results from the cache.- 参数:
key- The cache keyspaces- The query spaces (used in invalidation plus validation checks)session- The originating session- 返回:
- The cached results; may be null.
- 抛出:
HibernateException- Indicates a problem delegating to the underlying cache.
-
put
default boolean put(QueryKey key, Type[] returnTypes, List result, boolean isNaturalKeyLookup, SharedSessionContractImplementor session)
从接口复制的说明:QueryCachePut a result into the query cache.- 指定者:
put在接口中QueryCache- 参数:
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
default List get(QueryKey key, Type[] returnTypes, boolean isNaturalKeyLookup, Set<Serializable> spaces, SharedSessionContractImplementor session)
从接口复制的说明:QueryCacheGet results from the cache.- 指定者:
get在接口中QueryCache- 参数:
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
default void destroy()
从接口复制的说明:QueryCacheDestroy the cache.- 指定者:
destroy在接口中QueryCache
-
-