public abstract class AbstractJPQLQuery extends AbstractJavaQuery
Query
,
Serialized FormQuery.QueryType, Query.SubqueryDefinition
candidateCollection, singleString
candidateClass, candidateClassName, clr, compilation, ec, explicitParameters, explicitVariables, EXTENSION_CHECK_UNUSED_PARAMETERS, EXTENSION_CLOSE_RESULTS_AT_EC_CLOSE, EXTENSION_COMPILATION_CACHED, EXTENSION_EVALUATE_IN_MEMORY, EXTENSION_EXCLUDE_SUBCLASSES, EXTENSION_FLUSH_BEFORE_EXECUTION, EXTENSION_JDOQL_STRICT, EXTENSION_JPQL_STRICT, EXTENSION_LOAD_RESULTS_AT_COMMIT, EXTENSION_MULTITHREAD, EXTENSION_RESULT_CACHE_TYPE, EXTENSION_RESULT_SIZE_METHOD, EXTENSION_RESULTS_CACHED, EXTENSION_SQL_SYNTAX_CHECKS, EXTENSION_USE_FETCH_PLAN, extensions, filter, from, fromInclNo, fromInclParam, grouping, having, ignoreCache, implicitParameters, imports, inputParameters, insertFields, insertSelectQuery, LANGUAGE_JDOQL, LANGUAGE_JPQL, LANGUAGE_SQL, ordering, parameterNames, parsedImports, queryResults, range, result, resultClass, resultClassName, resultDistinct, storeMgr, subclasses, subqueries, tasks, toExclNo, toExclParam, type, unique, unmodifiable, update
Constructor and Description |
---|
AbstractJPQLQuery(StoreManager storeMgr,
ExecutionContext ec)
Constructor.
|
AbstractJPQLQuery(StoreManager storeMgr,
ExecutionContext ec,
AbstractJPQLQuery q)
Constructs a new query instance having the same criteria as the given query.
|
AbstractJPQLQuery(StoreManager storeMgr,
ExecutionContext ec,
String query)
Constructor for a JPQL query where the query is specified using the "Single-String" format.
|
Modifier and Type | Method and Description |
---|---|
void |
compileGeneric(Map parameterValues)
Method to generate the generic compilation of this query.
|
protected void |
compileInternal(Map parameterValues)
Method to compile the JPQL query.
|
protected void |
compileSubqueries(Map<String,Query.SubqueryDefinition> subqueryMap,
QueryCompilation parentCompilation,
JavaQueryCompiler parentCompiler,
Map parameterValues)
Recursively compile the subqueries
|
String |
getLanguage()
Accessor for the query language.
|
protected String |
getQueryCacheKey()
Method to get key for query cache
|
String |
getSingleStringQuery()
Method to take the defined parameters for the query and form a single string.
|
Class |
resolveClassDeclaration(String classDecl)
Utility to resolve the declaration to a particular class.
|
void |
setResult(String result)
Set the result for the results.
|
dereferenceFilter, discardCompiled, evaluateInMemory, performDeletePersistentAll, setCandidates, setCandidates, toString
addExtension, addSubquery, applyImplicitParameterValueToCompilation, applyImplicitParameterValueToSubqueries, assertIsModifiable, assertIsOpen, assertSupportsCancel, cancel, cancel, cancelTaskObject, checkForMissingParameters, checkParameterTypesAgainstCompilation, checkUnusedParameters, close, closeAll, compile, declareExplicitParameters, declareExplicitVariables, declareImports, deepFindSymbolForParameterInCompilation, deletePersistentAll, deletePersistentAll, deletePersistentAll, deregisterTask, equals, execute, executeQuery, executeWithArray, executeWithMap, executionContextClosing, getBooleanExtensionProperty, getCandidateClass, getCandidateClassMetaData, getCandidateClassName, getCompilation, getDatastoreReadTimeoutMillis, getDatastoreWriteTimeoutMillis, getExecutionContext, getExplicitParametersDeclaration, getExplicitVariablesDeclaration, getExtension, getExtensions, getFetchPlan, getFilter, getFrom, getGrouping, getHaving, getIgnoreCache, getImplicitParameters, getImportsDeclaration, getInputParameters, getInsertFields, getInsertSelectQuery, getNativeQuery, getOrdering, getParameterMapForValues, getParsedImports, getQueryManager, getRange, getRangeFromIncl, getRangeFromInclParam, getRangeToExcl, getRangeToExclParam, getResult, getResultClass, getResultClassName, getResultDistinct, getSerializeRead, getStoreManager, getStringExtensionProperty, getSubqueryForVariable, getSupportedExtensions, getType, getUpdate, hashCode, hasSubqueryForVariable, isCompiled, isSubclasses, isUnique, isUnmodifiable, performExecute, prepareDatastore, processesRangeInDatastoreQuery, registerTask, setCacheResults, setCandidateClass, setCandidateClassName, setCompilation, setDatastoreReadTimeoutMillis, setDatastoreWriteTimeoutMillis, setExtensions, setFetchPlan, setFilter, setFrom, setGrouping, setHaving, setIgnoreCache, setImplicitParameter, setImplicitParameter, setInsertFields, setInsertSelectQuery, setOrdering, setRange, setRange, setResultClass, setResultClassName, setResultDistinct, setResultMetaData, setSerializeRead, setSubclasses, setType, setUnique, setUnmodifiable, setUpdate, shouldReturnSingleRow, supportsTimeout, useCaching, useFetchPlan, useResultsCaching
public AbstractJPQLQuery(StoreManager storeMgr, ExecutionContext ec)
storeMgr
- StoreManager for this queryec
- ExecutionContextpublic AbstractJPQLQuery(StoreManager storeMgr, ExecutionContext ec, AbstractJPQLQuery q)
storeMgr
- StoreManager for this queryec
- ExecutionContextq
- The query from which to copy criteria.public AbstractJPQLQuery(StoreManager storeMgr, ExecutionContext ec, String query)
storeMgr
- StoreManager for this queryec
- ExecutionContextquery
- The query stringpublic void setResult(String result)
protected String getQueryCacheKey()
public String getSingleStringQuery()
getSingleStringQuery
in class AbstractJavaQuery
public void compileGeneric(Map parameterValues)
AbstractJavaQuery
compileGeneric
in class AbstractJavaQuery
parameterValues
- Values for any parametersprotected void compileInternal(Map parameterValues)
compileInternal
in class Query
parameterValues
- Map of param values keyed by param name.protected void compileSubqueries(Map<String,Query.SubqueryDefinition> subqueryMap, QueryCompilation parentCompilation, JavaQueryCompiler parentCompiler, Map parameterValues)
subqueryMap
- The subquery definition mapparentCompilation
- The parent compilationparentCompiler
- The parent compilerparameterValues
- The parameters mappublic Class resolveClassDeclaration(String classDecl)
resolveClassDeclaration
in class Query
classDecl
- The declarationNucleusUserException
- Thrown if the class cannot be resolved.public String getLanguage()
getLanguage
in class Query
Copyright © 2019. All rights reserved.