public abstract class AbstractStoredProcedureQuery extends Query
Modifier and Type | Class and Description |
---|---|
static class |
AbstractStoredProcedureQuery.StoredProcedureParameter |
Query.QueryType, Query.SubqueryDefinition
Modifier and Type | Field and Description |
---|---|
protected Map |
outputParamValues
Repository for holding output parameter values after execution.
|
protected String |
procedureName |
protected Class[] |
resultClasses
Result classes for the result sets (optional).
|
protected QueryResultMetaData[] |
resultMetaDatas
MetaData defining the results of the query (optional).
|
protected int |
resultSetNumber |
protected Set<AbstractStoredProcedureQuery.StoredProcedureParameter> |
storedProcParams |
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 |
---|
AbstractStoredProcedureQuery(StoreManager storeMgr,
ExecutionContext ec,
AbstractStoredProcedureQuery query)
Constructs a new query instance from the existing query.
|
AbstractStoredProcedureQuery(StoreManager storeMgr,
ExecutionContext ec,
String procName)
Constructs a new query instance having the same criteria as the given query.
|
Modifier and Type | Method and Description |
---|---|
String |
getLanguage()
Accessor for the query language.
|
abstract Object |
getNextResults()
Accessor for the next result set.
|
Object |
getOutputParameterValue(int pos)
Accessor for the value of the output parameter at the specified position.
|
Object |
getOutputParameterValue(String name)
Accessor for the value of the output parameter with the specified name.
|
abstract int |
getUpdateCount()
Accessor for the update count.
|
abstract boolean |
hasMoreResults()
Accessor for whether there are more results after the current one.
|
void |
registerParameter(int pos,
Class type,
StoredProcQueryParameterMode mode) |
void |
registerParameter(String name,
Class type,
StoredProcQueryParameterMode mode) |
void |
setCandidates(Collection pcs)
Set the candidate Collection to query.
|
void |
setCandidates(Extent pcs)
Set the candidate Extent to query.
|
void |
setResultClasses(Class[] resultClasses)
Set the result class for the results.
|
void |
setResultMetaData(QueryResultMetaData[] qrmds)
Method to set the MetaData defining the result.
|
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, discardCompiled, 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, performDeletePersistentAll, 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 String procedureName
protected Set<AbstractStoredProcedureQuery.StoredProcedureParameter> storedProcParams
protected int resultSetNumber
protected QueryResultMetaData[] resultMetaDatas
protected Class[] resultClasses
protected Map outputParamValues
public AbstractStoredProcedureQuery(StoreManager storeMgr, ExecutionContext ec, AbstractStoredProcedureQuery query)
storeMgr
- StoreManager for this queryec
- ExecutionContextquery
- Existing querypublic AbstractStoredProcedureQuery(StoreManager storeMgr, ExecutionContext ec, String procName)
storeMgr
- StoreManager for this queryec
- The ExecutionContextprocName
- Name of the stored procedure in the datastorepublic String getLanguage()
Query
getLanguage
in class Query
public void setCandidates(Extent pcs)
Query
setCandidates
in class Query
pcs
- the Candidate Extent.public void setCandidates(Collection pcs)
Query
setCandidates
in class Query
pcs
- the Candidate collection.public void setResultMetaData(QueryResultMetaData[] qrmds)
qrmds
- Query Result MetaDatapublic void setResultClasses(Class[] resultClasses)
resultClasses
- The result classpublic void registerParameter(int pos, Class type, StoredProcQueryParameterMode mode)
public void registerParameter(String name, Class type, StoredProcQueryParameterMode mode)
public abstract boolean hasMoreResults()
public abstract Object getNextResults()
public abstract int getUpdateCount()
public Object getOutputParameterValue(int pos)
pos
- PositionCopyright © 2019. All rights reserved.