org.apache.openjpa.persistence
Interface QueryResultCache

All Known Implementing Classes:
QueryResultCacheImpl

public interface QueryResultCache

Query result cache.

Since:
0.4.1
Author:
Abe White

Method Summary
 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.
 void pin(Query q)
          Pin the given query's result to the cache.
 void unpin(Query q)
          Unpin a previously-pinned query result.
 

Method Detail

pin

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


unpin

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


evict

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


evictAll

void evictAll()
Clear the cache.


evictAll

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



Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.