public class StandardQueryCache extends Object implements QueryCache
| Constructor and Description |
|---|
StandardQueryCache(Settings settings,
Properties props,
UpdateTimestampsCache updateTimestampsCache,
String regionName) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
destroy() |
List |
get(QueryKey key,
Type[] returnTypes,
boolean isNaturalKeyLookup,
Set spaces,
SessionImplementor session) |
QueryResultsRegion |
getRegion() |
protected boolean |
isUpToDate(Set spaces,
Long timestamp) |
boolean |
put(QueryKey key,
Type[] returnTypes,
List result,
boolean isNaturalKeyLookup,
SessionImplementor session) |
String |
toString() |
public StandardQueryCache(Settings settings, Properties props, UpdateTimestampsCache updateTimestampsCache, String regionName) throws HibernateException
HibernateExceptionpublic void clear()
throws CacheException
clear in interface QueryCacheCacheExceptionpublic boolean put(QueryKey key, Type[] returnTypes, List result, boolean isNaturalKeyLookup, SessionImplementor session) throws HibernateException
put in interface QueryCacheHibernateExceptionpublic List get(QueryKey key, Type[] returnTypes, boolean isNaturalKeyLookup, Set spaces, SessionImplementor session) throws HibernateException
get in interface QueryCacheHibernateExceptionpublic void destroy()
destroy in interface QueryCachepublic QueryResultsRegion getRegion()
getRegion in interface QueryCacheCopyright © 2012 JBoss by Red Hat. All Rights Reserved.