public class

StandardQueryCache

extends Object
implements QueryCache
java.lang.Object
   ↳ org.hibernate.cache.StandardQueryCache

Class Overview

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.

Summary

Public Constructors
StandardQueryCache(Settings settings, Properties props, UpdateTimestampsCache updateTimestampsCache, String regionName)
Public Methods
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)
String toString()
Protected Methods
boolean isUpToDate(Set spaces, Long timestamp)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.cache.QueryCache

Public Constructors

public StandardQueryCache (Settings settings, Properties props, UpdateTimestampsCache updateTimestampsCache, String regionName)

Public Methods

public void clear ()

public void destroy ()

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

public QueryResultsRegion getRegion ()

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

public String toString ()

Protected Methods

protected boolean isUpToDate (Set spaces, Long timestamp)