当前页面:
在线文档首页 >
Hibernate 3.2.3 正式版 API 英文文档
StandardQueryCache (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档
org.hibernate.cache
Class StandardQueryCache
java.lang.Object
org.hibernate.cache.StandardQueryCache
- All Implemented Interfaces:
- QueryCache
- public class StandardQueryCache
- extends Object
- implements QueryCache
The standard implementation of the Hibernate QueryCache interface. This
implementation is very good at recognizing stale query results and
and re-running queries when it detects this condition, recaching the new
results.
- Author:
- Gavin King
StandardQueryCache
public StandardQueryCache(Settings settings,
Properties props,
UpdateTimestampsCache updateTimestampsCache,
String regionName)
throws HibernateException
clear
public void clear()
throws CacheException
- Specified by:
clear
in interface QueryCache
- Throws:
CacheException
put
public boolean put(QueryKey key,
Type[] returnTypes,
List result,
boolean isNaturalKeyLookup,
SessionImplementor session)
throws HibernateException
- Specified by:
put
in interface QueryCache
- Throws:
HibernateException
get
public List get(QueryKey key,
Type[] returnTypes,
boolean isNaturalKeyLookup,
Set spaces,
SessionImplementor session)
throws HibernateException
- Specified by:
get
in interface QueryCache
- Throws:
HibernateException
isUpToDate
protected boolean isUpToDate(Set spaces,
Long timestamp)
destroy
public void destroy()
- Specified by:
destroy
in interface QueryCache
getCache
public Cache getCache()
- Specified by:
getCache
in interface QueryCache
getRegionName
public String getRegionName()
- Specified by:
getRegionName
in interface QueryCache
toString
public String toString()