public interface QueryCache
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
Clear items from the query cache. 
 | 
void | 
destroy()
Destroy the cache. 
 | 
List | 
get(QueryKey key,
   Type[] returnTypes,
   boolean isNaturalKeyLookup,
   Set<Serializable> spaces,
   SessionImplementor session)
Get results from the cache. 
 | 
QueryResultsRegion | 
getRegion()
The underlying cache factory region being used. 
 | 
boolean | 
put(QueryKey key,
   Type[] returnTypes,
   List result,
   boolean isNaturalKeyLookup,
   SessionImplementor 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, List result, boolean isNaturalKeyLookup, SessionImplementor 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.List get(QueryKey key, Type[] returnTypes, boolean isNaturalKeyLookup, Set<Serializable> spaces, SessionImplementor 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-2015 Red Hat, Inc. All Rights Reserved.