Package org.hibernate.cache.spi
Interface QueryCache
-
- All Known Subinterfaces:
QueryResultsCache
@Deprecated public interface QueryCache
Deprecated.UseQueryResultsCache
instead -CacheImplementor.getQueryResultsCache(java.lang.String)
rather thanCacheImplementor.getQueryCache()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
clear()
Deprecated.Clear items from the query cache.void
destroy()
Deprecated.Destroy the cache.java.util.List
get(QueryKey key, Type[] returnTypes, boolean isNaturalKeyLookup, java.util.Set<java.io.Serializable> spaces, SharedSessionContractImplementor session)
Deprecated.Get results from the cache.QueryResultsRegion
getRegion()
Deprecated.The underlying cache factory region being used.boolean
put(QueryKey key, Type[] returnTypes, java.util.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, java.util.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
java.util.List get(QueryKey key, Type[] returnTypes, boolean isNaturalKeyLookup, java.util.Set<java.io.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.
-
-