Package org.apache.openjpa.persistence
Class QueryResultCacheImpl
java.lang.Object
org.apache.openjpa.persistence.QueryResultCacheImpl
- All Implemented Interfaces:
QueryResultCache
Implements Query result cache via delegation to QueryCache.
- Since:
- 0.4.1
- Author:
- Abe White
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
evict
(jakarta.persistence.Query q) Evict a query result from the cache.void
evictAll()
Clear the cache.void
Evict all result for queries involving the given class.Delegate.int
hashCode()
void
pin
(jakarta.persistence.Query q) Pin the given query's result to the cache.void
unpin
(jakarta.persistence.Query q) Unpin a previously-pinned query result.
-
Constructor Details
-
QueryResultCacheImpl
Constructor; supply delegate.
-
-
Method Details
-
getDelegate
Delegate.- Specified by:
getDelegate
in interfaceQueryResultCache
-
pin
public void pin(jakarta.persistence.Query q) Description copied from interface:QueryResultCache
Pin the given query's result to the cache.- Specified by:
pin
in interfaceQueryResultCache
-
unpin
public void unpin(jakarta.persistence.Query q) Description copied from interface:QueryResultCache
Unpin a previously-pinned query result.- Specified by:
unpin
in interfaceQueryResultCache
-
evict
public void evict(jakarta.persistence.Query q) Description copied from interface:QueryResultCache
Evict a query result from the cache.- Specified by:
evict
in interfaceQueryResultCache
-
evictAll
public void evictAll()Description copied from interface:QueryResultCache
Clear the cache.- Specified by:
evictAll
in interfaceQueryResultCache
-
evictAll
Description copied from interface:QueryResultCache
Evict all result for queries involving the given class.- Specified by:
evictAll
in interfaceQueryResultCache
-
hashCode
public int hashCode() -
equals
-