类 QueryResultsCacheImpl
- java.lang.Object
-
- org.hibernate.cache.internal.QueryResultsCacheImpl
-
- 所有已实现的接口:
QueryCache,QueryResultsCache
public class QueryResultsCacheImpl extends Object implements QueryResultsCache
The standard implementation of the Hibernate QueryCache interface. Works hind-in-hand withTimestampsCacheto help in recognizing stale query results.- 作者:
- Gavin King, Steve Ebersole
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classQueryResultsCacheImpl.CacheItem
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.QueryResultsRegiongetRegion()The underlying cache region being used.booleanput(QueryKey key, List results, Type[] returnTypes, SharedSessionContractImplementor session)Put a result into the query cache.StringtoString()-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 org.hibernate.cache.spi.QueryResultsCache
clear, destroy, get, put
-
-
-
-
方法详细资料
-
getRegion
public QueryResultsRegion getRegion()
从接口复制的说明:QueryResultsCacheThe underlying cache region being used.- 指定者:
getRegion在接口中QueryCache- 指定者:
getRegion在接口中QueryResultsCache- 返回:
- The cache region.
-
put
public boolean put(QueryKey key, List results, Type[] returnTypes, SharedSessionContractImplementor session) throws HibernateException
从接口复制的说明:QueryResultsCachePut a result into the query cache.- 指定者:
put在接口中QueryResultsCache- 参数:
key- The cache keyresults- The results to cachesession- The originating session- 返回:
- Whether the put actually happened.
- 抛出:
HibernateException- Indicates a problem delegating to the underlying cache.
-
get
public List get(QueryKey key, Set<Serializable> spaces, Type[] returnTypes, SharedSessionContractImplementor session)
从接口复制的说明:QueryResultsCacheGet results from the cache.- 指定者:
get在接口中QueryResultsCache- 参数:
key- The cache keyspaces- The query spaces (used in invalidation plus validation checks)session- The originating session- 返回:
- The cached results; may be null.
-
get
public List get(QueryKey key, String[] spaces, Type[] returnTypes, SharedSessionContractImplementor session)
从接口复制的说明:QueryResultsCacheGet results from the cache.- 指定者:
get在接口中QueryResultsCache- 参数:
key- The cache keyspaces- The query spaces (used in invalidation plus validation checks)session- The originating session- 返回:
- The cached results; may be null.
-
-