|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.persistence.QueryResultCacheImpl
public class QueryResultCacheImpl
Implements Query result cache via delegation to QueryCache.
| Constructor Summary | |
|---|---|
QueryResultCacheImpl(QueryCache cache)
Constructor; supply delegate. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
void |
evict(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()
Delegate. |
int |
hashCode()
|
void |
pin(Query q)
Pin the given query's result to the cache. |
void |
unpin(Query q)
Unpin a previously-pinned query result. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryResultCacheImpl(QueryCache cache)
| Method Detail |
|---|
public QueryCache getDelegate()
getDelegate in interface QueryResultCachepublic void pin(Query q)
QueryResultCache
pin in interface QueryResultCachepublic void unpin(Query q)
QueryResultCache
unpin in interface QueryResultCachepublic void evict(Query q)
QueryResultCache
evict in interface QueryResultCachepublic void evictAll()
QueryResultCache
evictAll in interface QueryResultCachepublic void evictAll(Class cls)
QueryResultCache
evictAll in interface QueryResultCachepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||