net.sf.hibernate.cache
Class QueryCache

java.lang.Object
  extended bynet.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

Constructor Summary
QueryCache(CacheProvider provider, Properties props, UpdateTimestampsCache updateTimestampsCache, String regionName)
           
 
Method Summary
 void clear()
           
 void destroy()
           
 List get(QueryKey key, Type[] returnTypes, Set spaces, SessionImplementor session)
           
 void put(QueryKey key, Type[] returnTypes, List result, SessionImplementor session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryCache

public QueryCache(CacheProvider provider,
                  Properties props,
                  UpdateTimestampsCache updateTimestampsCache,
                  String regionName)
           throws HibernateException
Method Detail

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()