|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.jpa.JPAQueryCache
public class JPAQueryCache
Implementation of the JPA QueryCache. Provides a wrapper and hands off calls to the underlying query cache.
| Constructor Summary | |
|---|---|
JPAQueryCache(org.datanucleus.store.query.cache.QueryResultsCache cache)
Constructor. |
|
| Method Summary | |
|---|---|
void |
evict(javax.persistence.Query query)
Evict all cached results for the provided query. |
void |
evict(javax.persistence.Query query,
java.util.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,
java.util.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,
java.util.Map params)
Method to unpin the specified query from the cache, allowing garbage collection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPAQueryCache(org.datanucleus.store.query.cache.QueryResultsCache cache)
cache - Query results cache| Method Detail |
|---|
public org.datanucleus.store.query.cache.QueryResultsCache getQueryCache()
public void evict(javax.persistence.Query query)
query - The JPA query
public void evict(javax.persistence.Query query,
java.util.Map params)
query - The JPA queryparams - The input paramspublic void evictAll()
public void pin(javax.persistence.Query query)
query - The query
public void pin(javax.persistence.Query query,
java.util.Map params)
query - The queryparams - Its paramspublic void unpin(javax.persistence.Query query)
query - The query
public void unpin(javax.persistence.Query query,
java.util.Map params)
query - The queryparams - Its params
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||