public interface QueryManager
Modifier and Type | Method and Description |
---|---|
void |
addDatastoreQueryCompilation(String datastore,
String language,
String query,
Object compilation)
Method to store the datastore-specific compilation for a query.
|
void |
addQueryCompilation(String language,
String query,
QueryCompilation compilation)
Method to store the compilation for a query.
|
void |
addQueryResult(Query query,
Map params,
List<Object> results)
Method to store the results for a query.
|
void |
close()
Close the QueryManager, releasing all cached compilations and results.
|
void |
evictQueryResultsForType(Class cls)
Method to evict all query results for the specified candidate type.
|
Object |
getDatastoreQueryCompilation(String datastore,
String language,
String query)
Accessor for the datastore-specific compilation for a query.
|
InvocationEvaluator |
getInMemoryEvaluatorForMethod(Class type,
String methodName)
Accessor for an evaluator for invocation of the specified method for the supplied type.
|
QueryCompilationCache |
getQueryCompilationCache()
Accessor for the generic compilation cache.
|
QueryCompilation |
getQueryCompilationForQuery(String language,
String query)
Accessor for a Query compilation for the specified query and language.
|
QueryDatastoreCompilationCache |
getQueryDatastoreCompilationCache()
Accessor for the datastore compilation cache.
|
Map<String,String> |
getQueryMethodAliasesByPrefix()
Accessor for JDOQL/JPQL query method aliases keyed by the prefix.
|
List<Object> |
getQueryResult(Query query,
Map params)
Accessor for the results for a query.
|
QueryResultsCache |
getQueryResultsCache()
Accessor for the query results cache.
|
void |
removeDatastoreQueryCompilation(String datastore,
String language,
String query)
Method to remove a cached datastore query compilation.
|
void |
removeQueryCompilation(String language,
String query)
Method to remove a query compilation.
|
void close()
QueryCompilationCache getQueryCompilationCache()
void addQueryCompilation(String language, String query, QueryCompilation compilation)
language
- Language of the queryquery
- The query stringcompilation
- The compilation of this queryvoid removeQueryCompilation(String language, String query)
language
- The query languagequery
- The query stringQueryCompilation getQueryCompilationForQuery(String language, String query)
language
- Language of the queryquery
- Query stringQueryDatastoreCompilationCache getQueryDatastoreCompilationCache()
Object getDatastoreQueryCompilation(String datastore, String language, String query)
datastore
- The datastore identifierlanguage
- The query languagequery
- The query (string form)void addDatastoreQueryCompilation(String datastore, String language, String query, Object compilation)
datastore
- The datastore identifierlanguage
- The query languagequery
- The query (string form)compilation
- The compiled informationvoid removeDatastoreQueryCompilation(String datastore, String language, String query)
datastore
- The datastorelanguage
- The languagequery
- The query (string form)QueryResultsCache getQueryResultsCache()
List<Object> getQueryResult(Query query, Map params)
query
- The queryparams
- Map of parameter values keyed by param namevoid evictQueryResultsForType(Class cls)
cls
- Candidate typevoid addQueryResult(Query query, Map params, List<Object> results)
query
- The queryparams
- Map of parameter values keyed by param nameresults
- The results (List of object identities)InvocationEvaluator getInMemoryEvaluatorForMethod(Class type, String methodName)
type
- The class namemethodName
- Name of the methodCopyright © 2019. All rights reserved.