public class QueryResultsCacheImpl extends Object implements QueryResultsCache
TimestampsCache to help in recognizing
stale query results.| Modifier and Type | Class and Description |
|---|---|
static class |
QueryResultsCacheImpl.CacheItem |
| Modifier and Type | Method and Description |
|---|---|
List |
get(QueryKey key,
Set<Serializable> spaces,
Type[] returnTypes,
SharedSessionContractImplementor session)
Get results from the cache.
|
List |
get(QueryKey key,
String[] spaces,
Type[] returnTypes,
SharedSessionContractImplementor session)
Get results from the cache.
|
QueryResultsRegion |
getRegion()
The underlying cache region being used.
|
boolean |
put(QueryKey key,
List results,
Type[] returnTypes,
SharedSessionContractImplementor session)
Put a result into the query cache.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, destroy, get, putpublic QueryResultsRegion getRegion()
QueryResultsCachegetRegion in interface QueryCachegetRegion in interface QueryResultsCachepublic boolean put(QueryKey key, List results, Type[] returnTypes, SharedSessionContractImplementor session) throws HibernateException
QueryResultsCacheput in interface QueryResultsCachekey - The cache keyresults - The results to cachesession - The originating sessionHibernateException - Indicates a problem delegating to the underlying cache.public List get(QueryKey key, Set<Serializable> spaces, Type[] returnTypes, SharedSessionContractImplementor session)
QueryResultsCacheget in interface QueryResultsCachekey - The cache keyspaces - The query spaces (used in invalidation plus validation checks)session - The originating sessionpublic List get(QueryKey key, String[] spaces, Type[] returnTypes, SharedSessionContractImplementor session)
QueryResultsCacheget in interface QueryResultsCachekey - The cache keyspaces - The query spaces (used in invalidation plus validation checks)session - The originating sessionCopyright © 2019 JBoss by Red Hat. All rights reserved.