public class JavaxCacheQueryCompilationCache extends Object implements QueryCompilationCache, Serializable
| Constructor and Description | 
|---|
| JavaxCacheQueryCompilationCache(NucleusContext nucleusCtx) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Method to clear the cache. | 
| void | close()Method to close the cache when no longer needed. | 
| boolean | contains(String queryKey)Accessor for whether the specified query is in the cache | 
| void | evict(String queryKey)Evict the query from the compilation cache. | 
| QueryCompilation | get(String queryKey)Accessor for a (generic) compilation from the cache. | 
| boolean | isEmpty()Accessor for whether the cache is empty. | 
| QueryCompilation | put(String queryKey,
   QueryCompilation compilation)Method to put an object in the cache. | 
| int | size()Accessor for the total number of compilations in the query cache. | 
public JavaxCacheQueryCompilationCache(NucleusContext nucleusCtx)
public void close()
QueryCompilationCacheclose in interface QueryCompilationCachepublic void evict(String queryKey)
QueryCompilationCacheevict in interface QueryCompilationCachequeryKey - Key for the query to evict.public void clear()
QueryCompilationCacheclear in interface QueryCompilationCachepublic boolean isEmpty()
QueryCompilationCacheisEmpty in interface QueryCompilationCachepublic int size()
QueryCompilationCachesize in interface QueryCompilationCachepublic QueryCompilation get(String queryKey)
QueryCompilationCacheget in interface QueryCompilationCachequeryKey - The query keypublic QueryCompilation put(String queryKey, QueryCompilation compilation)
QueryCompilationCacheput in interface QueryCompilationCachequeryKey - The query keycompilation - The compilation to cachepublic boolean contains(String queryKey)
QueryCompilationCachecontains in interface QueryCompilationCachequeryKey - The query keyCopyright © 2019. All rights reserved.