Package org.hibernate.cache.spi
Interface QueryCache
-
- All Known Subinterfaces:
QueryResultsCache
@Deprecated public interface QueryCache
Deprecated.UseQueryResultsCacheinstead -CacheImplementor.getQueryResultsCache(java.lang.String)rather thanCacheImplementor.getQueryCache()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidclear()Deprecated.Clear items from the query cache.voiddestroy()Deprecated.Destroy the cache.Listget(QueryKey key, Type[] returnTypes, boolean isNaturalKeyLookup, Set<Serializable> spaces, SharedSessionContractImplementor session)Deprecated.Get results from the cache.QueryResultsRegiongetRegion()Deprecated.The underlying cache factory region being used.booleanput(QueryKey key, Type[] returnTypes, List result, boolean isNaturalKeyLookup, SharedSessionContractImplementor session)Deprecated.Put a result into the query cache.
-
-
-
Method Detail
-
clear
void clear()
Deprecated.Clear items from the query cache.- Throws:
CacheException- Indicates a problem delegating to the underlying cache.
-
put
boolean put(QueryKey key, Type[] returnTypes, List result, boolean isNaturalKeyLookup, SharedSessionContractImplementor session)
Deprecated.Put a result into the query cache.- Parameters:
key- The cache keyreturnTypes- The result typesresult- The results to cacheisNaturalKeyLookup- Was this a natural id lookup?session- The originating session- Returns:
- Whether the put actually happened.
-
get
List get(QueryKey key, Type[] returnTypes, boolean isNaturalKeyLookup, Set<Serializable> spaces, SharedSessionContractImplementor session)
Deprecated.Get results from the cache.- Parameters:
key- The cache keyreturnTypes- The result typesisNaturalKeyLookup- Was this a natural id lookup?spaces- The query spaces (used in invalidation plus validation checks)session- The originating session- Returns:
- The cached results; may be null.
-
destroy
void destroy()
Deprecated.Destroy the cache.
-
getRegion
QueryResultsRegion getRegion()
Deprecated.The underlying cache factory region being used.- Returns:
- The cache region.
-
-