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
HibernateException
public void clear() throws CacheException
clear
in interface QueryCache
CacheException
public boolean put(QueryKey key, Type[] returnTypes, List result, boolean isNaturalKeyLookup, SessionImplementor session) throws HibernateException
put
in interface QueryCache
HibernateException
public List get(QueryKey key, Type[] returnTypes, boolean isNaturalKeyLookup, Set spaces, SessionImplementor session) throws HibernateException
get
in interface QueryCache
HibernateException
public void destroy()
destroy
in interface QueryCache
public QueryResultsRegion getRegion()
getRegion
in interface QueryCache
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.