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, wait
clear, destroy, get, put
public QueryResultsRegion getRegion()
QueryResultsCache
getRegion
in interface QueryCache
getRegion
in interface QueryResultsCache
public boolean put(QueryKey key, List results, Type[] returnTypes, SharedSessionContractImplementor session) throws HibernateException
QueryResultsCache
put
in interface QueryResultsCache
key
- 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)
QueryResultsCache
get
in interface QueryResultsCache
key
- 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)
QueryResultsCache
get
in interface QueryResultsCache
key
- The cache keyspaces
- The query spaces (used in invalidation plus validation checks)session
- The originating sessionCopyright © 2019 JBoss by Red Hat. All rights reserved.