Package org.apache.openjpa.persistence
Interface QueryResultCache
-
- All Known Implementing Classes:
QueryResultCacheImpl
public interface QueryResultCache
Query result cache.- Since:
- 0.4.1
- Author:
- Abe White
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
evict(jakarta.persistence.Query q)
Evict a query result from the cache.void
evictAll()
Clear the cache.void
evictAll(java.lang.Class cls)
Evict all result for queries involving the given class.QueryCache
getDelegate()
Deprecated.cast toQueryResultCacheImpl
instead.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.
-
-
-
Method Detail
-
pin
void pin(jakarta.persistence.Query q)
Pin the given query's result to the cache.
-
unpin
void unpin(jakarta.persistence.Query q)
Unpin a previously-pinned query result.
-
evict
void evict(jakarta.persistence.Query q)
Evict a query result from the cache.
-
evictAll
void evictAll()
Clear the cache.
-
evictAll
void evictAll(java.lang.Class cls)
Evict all result for queries involving the given class.
-
getDelegate
@Deprecated QueryCache getDelegate()
Deprecated.cast toQueryResultCacheImpl
instead. This method pierces the published-API boundary, as does the SPI cast.
-
-