org.hibernate.cache

Interface QueryCache

Known Implementing Classes:
StandardQueryCache

public interface QueryCache

Defines the contract for caches capable of storing query results. These caches should only concern themselves with storing the matching result ids. The transactional semantics are necessarily less strict than the semantics of an item cache.
Author:
Gavin King

Method Summary

void
clear()
void
destroy()
List
get(QueryKey key, Type[] returnTypes, boolean isNaturalKeyLookup, Set spaces, SessionImplementor session)
QueryResultsRegion
getRegion()
boolean
put(QueryKey key, Type[] returnTypes, List result, boolean isNaturalKeyLookup, SessionImplementor session)

Method Details

clear

public void clear()
            throws CacheException

destroy

public void destroy()

get

public List get(QueryKey key,
                Type[] returnTypes,
                boolean isNaturalKeyLookup,
                Set spaces,
                SessionImplementor session)
            throws HibernateException

getRegion

public QueryResultsRegion getRegion()

put

public boolean put(QueryKey key,
                   Type[] returnTypes,
                   List result,
                   boolean isNaturalKeyLookup,
                   SessionImplementor session)
            throws HibernateException