|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.query.cache.AbstractQueryDatastoreCompilationCache
public class AbstractQueryDatastoreCompilationCache
Abstract representation of a query compilation cache for the query specific to the datastore.
| Constructor Summary | |
|---|---|
AbstractQueryDatastoreCompilationCache()
|
|
| Method Summary | |
|---|---|
void |
clear()
Method to clear the cache. |
void |
close()
Method to close the cache when no longer needed. |
boolean |
contains(java.lang.String queryKey)
Accessor for whether the specified query is in the cache |
void |
evict(java.lang.String queryKey)
Evict the query from the compilation cache. |
java.lang.Object |
get(java.lang.String queryKey)
Accessor for a (generic) compilation from the cache. |
boolean |
isEmpty()
Accessor for whether the cache is empty. |
java.lang.Object |
put(java.lang.String queryKey,
java.lang.Object compilation)
Method to put an object in the cache. |
int |
size()
Accessor for the total number of compilations in the query cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractQueryDatastoreCompilationCache()
| Method Detail |
|---|
public void clear()
QueryDatastoreCompilationCache
clear in interface QueryDatastoreCompilationCachepublic void close()
QueryDatastoreCompilationCache
close in interface QueryDatastoreCompilationCachepublic boolean contains(java.lang.String queryKey)
QueryDatastoreCompilationCache
contains in interface QueryDatastoreCompilationCachequeryKey - The query key
public void evict(java.lang.String queryKey)
QueryDatastoreCompilationCache
evict in interface QueryDatastoreCompilationCachequeryKey - Key for the query to evict.public java.lang.Object get(java.lang.String queryKey)
QueryDatastoreCompilationCache
get in interface QueryDatastoreCompilationCachequeryKey - The query key
public boolean isEmpty()
QueryDatastoreCompilationCache
isEmpty in interface QueryDatastoreCompilationCache
public java.lang.Object put(java.lang.String queryKey,
java.lang.Object compilation)
QueryDatastoreCompilationCache
put in interface QueryDatastoreCompilationCachequeryKey - The query keycompilation - The compilation for this datastore
public int size()
QueryDatastoreCompilationCache
size in interface QueryDatastoreCompilationCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||