org.datanucleus.cache.javaxcache
Class JavaxCacheQueryResultCache

java.lang.Object
  extended by org.datanucleus.cache.javaxcache.JavaxCacheQueryResultCache
All Implemented Interfaces:
org.datanucleus.store.query.cache.QueryResultsCache

public class JavaxCacheQueryResultCache
extends java.lang.Object
implements org.datanucleus.store.query.cache.QueryResultsCache

Implementation of a query results cache using javax.cache interface.


Constructor Summary
JavaxCacheQueryResultCache(org.datanucleus.OMFContext omfCtx)
          Constructor.
 
Method Summary
 void close()
           
 boolean contains(java.lang.String queryKey)
           
 void evict(org.datanucleus.store.query.Query query)
           
 void evict(org.datanucleus.store.query.Query query, java.util.Map params)
           
 void evictAll()
           
 java.util.List<java.lang.Object> get(java.lang.String queryKey)
           
 boolean isEmpty()
           
 void pin(org.datanucleus.store.query.Query query)
           
 void pin(org.datanucleus.store.query.Query query, java.util.Map params)
           
 java.util.List<java.lang.Object> put(java.lang.String queryKey, java.util.List<java.lang.Object> results)
           
 int size()
           
 void unpin(org.datanucleus.store.query.Query query)
           
 void unpin(org.datanucleus.store.query.Query query, java.util.Map params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaxCacheQueryResultCache

public JavaxCacheQueryResultCache(org.datanucleus.OMFContext omfCtx)
Constructor.

Parameters:
omfCtx - OMF Context
Method Detail

close

public void close()
Specified by:
close in interface org.datanucleus.store.query.cache.QueryResultsCache

contains

public boolean contains(java.lang.String queryKey)
Specified by:
contains in interface org.datanucleus.store.query.cache.QueryResultsCache

evict

public void evict(org.datanucleus.store.query.Query query)
Specified by:
evict in interface org.datanucleus.store.query.cache.QueryResultsCache

evict

public void evict(org.datanucleus.store.query.Query query,
                  java.util.Map params)
Specified by:
evict in interface org.datanucleus.store.query.cache.QueryResultsCache

evictAll

public void evictAll()
Specified by:
evictAll in interface org.datanucleus.store.query.cache.QueryResultsCache

pin

public void pin(org.datanucleus.store.query.Query query,
                java.util.Map params)
Specified by:
pin in interface org.datanucleus.store.query.cache.QueryResultsCache

pin

public void pin(org.datanucleus.store.query.Query query)
Specified by:
pin in interface org.datanucleus.store.query.cache.QueryResultsCache

unpin

public void unpin(org.datanucleus.store.query.Query query,
                  java.util.Map params)
Specified by:
unpin in interface org.datanucleus.store.query.cache.QueryResultsCache

unpin

public void unpin(org.datanucleus.store.query.Query query)
Specified by:
unpin in interface org.datanucleus.store.query.cache.QueryResultsCache

get

public java.util.List<java.lang.Object> get(java.lang.String queryKey)
Specified by:
get in interface org.datanucleus.store.query.cache.QueryResultsCache

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface org.datanucleus.store.query.cache.QueryResultsCache

put

public java.util.List<java.lang.Object> put(java.lang.String queryKey,
                                            java.util.List<java.lang.Object> results)
Specified by:
put in interface org.datanucleus.store.query.cache.QueryResultsCache

size

public int size()
Specified by:
size in interface org.datanucleus.store.query.cache.QueryResultsCache


Copyright © 2010. All Rights Reserved.