org.apache.openjpa.persistence
Class QueryResultCache

java.lang.Object
  extended by org.apache.openjpa.persistence.QueryResultCache

public class QueryResultCache
extends java.lang.Object

Query result cache.

Since:
4.0
Author:
Abe White

Constructor Summary
QueryResultCache(org.apache.openjpa.datacache.QueryCache cache)
          Constructor; supply delegate.
 
Method Summary
 boolean equals(java.lang.Object other)
           
 void evict(javax.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.
 org.apache.openjpa.datacache.QueryCache getDelegate()
          Delegate.
 int hashCode()
           
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResultCache

public QueryResultCache(org.apache.openjpa.datacache.QueryCache cache)
Constructor; supply delegate.

Method Detail

getDelegate

public org.apache.openjpa.datacache.QueryCache getDelegate()
Delegate.


pin

public void pin(javax.persistence.Query q)
Pin the given query's result to the cache.


unpin

public void unpin(javax.persistence.Query q)
Unpin a previously-pinned query result.


evict

public void evict(javax.persistence.Query q)
Evict a query result from the cache.


evictAll

public void evictAll()
Clear the cache.


evictAll

public void evictAll(java.lang.Class cls)
Evict all result for queries involving the given class.


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object


Copyright © 2006 Apache Software Foundation. All Rights Reserved.