public interface QueryResultCache
Modifier and Type | Method and Description |
---|---|
void |
evict(javax.persistence.Query q)
Evict a query result from the cache.
|
void |
evictAll()
Clear the cache.
|
void |
evictAll(Class cls)
Evict all result for queries involving the given class.
|
QueryCache |
getDelegate()
Deprecated.
cast to
QueryResultCacheImpl instead. This
method pierces the published-API boundary, as does the SPI cast. |
void |
pin(javax.persistence.Query q)
Pin the given query's result to the cache.
|
void |
unpin(javax.persistence.Query q)
Unpin a previously-pinned query result.
|
void pin(javax.persistence.Query q)
void unpin(javax.persistence.Query q)
void evict(javax.persistence.Query q)
void evictAll()
void evictAll(Class cls)
@Deprecated QueryCache getDelegate()
QueryResultCacheImpl
instead. This
method pierces the published-API boundary, as does the SPI cast.Copyright © 2006–2020 Apache Software Foundation. All rights reserved.