public interface QueryCache
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear items from the query cache.
|
void |
destroy()
Destroy the cache.
|
java.util.List |
get(QueryKey key,
Type[] returnTypes,
boolean isNaturalKeyLookup,
java.util.Set<java.io.Serializable> spaces,
SharedSessionContractImplementor session)
Get results from the cache.
|
QueryResultsRegion |
getRegion()
The underlying cache factory region being used.
|
boolean |
put(QueryKey key,
Type[] returnTypes,
java.util.List result,
boolean isNaturalKeyLookup,
SharedSessionContractImplementor session)
Put a result into the query cache.
|
void clear()
throws CacheException
CacheException - Indicates a problem delegating to the underlying cache.boolean put(QueryKey key, Type[] returnTypes, java.util.List result, boolean isNaturalKeyLookup, SharedSessionContractImplementor session) throws HibernateException
key - The cache keyreturnTypes - The result typesresult - The results to cacheisNaturalKeyLookup - Was this a natural id lookup?session - The originating sessionHibernateException - Indicates a problem delegating to the underlying cache.java.util.List get(QueryKey key, Type[] returnTypes, boolean isNaturalKeyLookup, java.util.Set<java.io.Serializable> spaces, SharedSessionContractImplementor session) throws HibernateException
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 sessionHibernateException - Indicates a problem delegating to the underlying cache.void destroy()
QueryResultsRegion getRegion()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.