Package org.hibernate.cache.internal
Class QueryResultsCacheImpl
java.lang.Object
org.hibernate.cache.internal.QueryResultsCacheImpl
- All Implemented Interfaces:
QueryResultsCache
The standard implementation of the Hibernate QueryCache interface. Works
hind-in-hand with
TimestampsCache
to help in recognizing
stale query results.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionList<?>
get
(QueryKey key, String[] spaces, SharedSessionContractImplementor session) Attempt to retrieve a cached query result list for the givenQueryKey
from the cache region, and then check if the cached results, if any, are stale.List<?>
get
(QueryKey key, Set<String> spaces, SharedSessionContractImplementor session) Attempt to retrieve a cached query result list for the givenQueryKey
from the cache region, and then check if the cached results, if any, are stale.The underlying cache region being used.boolean
put
(QueryKey key, List<?> results, SharedSessionContractImplementor session) Store a result list of a query with the givenQueryKey
in the query result cache.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.cache.spi.QueryResultsCache
clear, destroy
-
Method Details
-
getRegion
Description copied from interface:QueryResultsCache
The underlying cache region being used.- Specified by:
getRegion
in interfaceQueryResultsCache
-
toString
-