public class JPAQueryCache extends Object implements Serializable
| Constructor and Description |
|---|
JPAQueryCache(org.datanucleus.store.query.cache.QueryResultsCache cache)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
evict(javax.persistence.Query query)
Evict all cached results for the provided query.
|
void |
evict(javax.persistence.Query query,
Map params)
Evict the cached results for the provided query and params.
|
void |
evictAll()
Evict the parameter instances from the second-level cache.
|
org.datanucleus.store.query.cache.QueryResultsCache |
getQueryCache()
Accessor for the underlying query cache.
|
void |
pin(javax.persistence.Query query)
Method to pin the specified query in the cache, preventing garbage collection.
|
void |
pin(javax.persistence.Query query,
Map params)
Method to pin the specified query in the cache, preventing garbage collection.
|
void |
unpin(javax.persistence.Query query)
Method to unpin the specified query from the cache, allowing garbage collection.
|
void |
unpin(javax.persistence.Query query,
Map params)
Method to unpin the specified query from the cache, allowing garbage collection.
|
public JPAQueryCache(org.datanucleus.store.query.cache.QueryResultsCache cache)
cache - Query results cachepublic org.datanucleus.store.query.cache.QueryResultsCache getQueryCache()
public void evict(javax.persistence.Query query)
query - The JPA querypublic void evict(javax.persistence.Query query,
Map params)
query - The JPA queryparams - The input paramspublic void evictAll()
public void pin(javax.persistence.Query query)
query - The querypublic void pin(javax.persistence.Query query,
Map params)
query - The queryparams - Its paramspublic void unpin(javax.persistence.Query query)
query - The querypublic void unpin(javax.persistence.Query query,
Map params)
query - The queryparams - Its paramsCopyright © 2020. All rights reserved.