net.sf.hibernate.cache
Class QueryCache
java.lang.Object
net.sf.hibernate.cache.QueryCache
- public class QueryCache
- extends Object
A cache for query result sets. The transactional semantics are necessarily
less strict than the semantics of an item cache. Note that the actual
entities in the result set are not kept in this cache, only their ids.
- Author:
- Gavin King
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryCache
public QueryCache(CacheProvider provider,
Properties props,
UpdateTimestampsCache updateTimestampsCache,
String regionName)
throws HibernateException
clear
public void clear()
throws CacheException
- Throws:
CacheException
put
public void put(QueryKey key,
Type[] returnTypes,
List result,
SessionImplementor session)
throws HibernateException
- Throws:
HibernateException
get
public List get(QueryKey key,
Type[] returnTypes,
Set spaces,
SessionImplementor session)
throws HibernateException
- Throws:
HibernateException
destroy
public void destroy()