public abstract class AbstractJavaQuery<T> extends Query<T>
Query.QueryType, Query.SubqueryDefinition
Modifier and Type | Field and Description |
---|---|
protected Collection |
candidateCollection
Collection of candidates for this query.
|
protected String |
singleString
Cached form of the single string form of the query.
|
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 |
---|
AbstractJavaQuery(StoreManager storeMgr,
ExecutionContext ec)
Constructor for a Java-based query.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
compileGeneric(Map parameterValues)
Method to generate the generic compilation of this query.
|
protected String |
dereferenceFilter(String input)
Method to expand the subqueries defined in a filter.
|
protected void |
discardCompiled()
Method to discard our current compiled query due to changes.
|
protected boolean |
evaluateInMemory()
Convenience method to return whether the query should be evaluated in-memory.
|
abstract String |
getSingleStringQuery()
Accessor for a single string form of the query.
|
protected long |
performDeletePersistentAll(Map parameters)
Execute the query to delete persistent objects.
|
void |
setCandidates(Collection<T> pcs)
Set the candidate collection to query.
|
void |
setCandidates(Extent<T> pcs)
Set the candidate Extent to query.
|
String |
toString()
Stringifier method
|
addExtension, addSubquery, applyImplicitParameterValueToCompilation, applyImplicitParameterValueToSubqueries, assertIsModifiable, assertIsOpen, assertSupportsCancel, cancel, cancel, cancelTaskObject, checkForMissingParameters, checkParameterTypesAgainstCompilation, checkUnusedParameters, close, closeAll, compile, compileInternal, 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, getLanguage, 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, resolveClassDeclaration, setCacheResults, setCandidateClass, setCandidateClassName, setCompilation, setDatastoreReadTimeoutMillis, setDatastoreWriteTimeoutMillis, setExtensions, setFetchPlan, setFilter, setFrom, setGrouping, setHaving, setIgnoreCache, setImplicitParameter, setImplicitParameter, setInsertFields, setInsertSelectQuery, setOrdering, setRange, setRange, setResult, setResultClass, setResultClassName, setResultDistinct, setResultMetaData, setSerializeRead, setSubclasses, setType, setUnique, setUnmodifiable, setUpdate, shouldReturnSingleRow, supportsTimeout, useCaching, useFetchPlan, useResultsCaching
protected transient Collection candidateCollection
protected String singleString
public AbstractJavaQuery(StoreManager storeMgr, ExecutionContext ec)
storeMgr
- StoreManager for this queryec
- ExecutionContextpublic void setCandidates(Extent<T> pcs)
setCandidates
in class Query<T>
pcs
- the Candidate Extent.public void setCandidates(Collection<T> pcs)
setCandidates
in class Query<T>
pcs
- the Candidate collection.protected void discardCompiled()
discardCompiled
in class Query<T>
Query.discardCompiled()
public abstract void compileGeneric(Map parameterValues)
parameterValues
- Values for any parametersprotected long performDeletePersistentAll(Map parameters)
performDeletePersistentAll
in class Query<T>
parameters
- the Map containing all of the parameters.public abstract String getSingleStringQuery()
public String toString()
protected boolean evaluateInMemory()
Copyright © 2019. All rights reserved.