public class StoredProcedureQuery
extends org.datanucleus.store.query.AbstractStoredProcedureQuery
outputParamValues, procedureName, resultClasses, resultMetaDatas, resultSetNumber, 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 |
---|
StoredProcedureQuery(org.datanucleus.store.StoreManager storeMgr,
org.datanucleus.ExecutionContext ec) |
StoredProcedureQuery(org.datanucleus.store.StoreManager storeMgr,
org.datanucleus.ExecutionContext ec,
StoredProcedureQuery query) |
StoredProcedureQuery(org.datanucleus.store.StoreManager storeMgr,
org.datanucleus.ExecutionContext ec,
String procName)
Constructs a new query instance for the specified stored procedure name.
|
Modifier and Type | Method and Description |
---|---|
protected void |
compileInternal(Map parameterValues) |
protected Object |
executeQuery(Map parameters)
Method to execute the actual query.
|
Object |
getNextResults() |
protected org.datanucleus.store.query.QueryResult |
getResultsForResultSet(RDBMSStoreManager storeMgr,
ResultSet rs,
org.datanucleus.store.connection.ManagedConnection mconn) |
int |
getUpdateCount() |
boolean |
hasMoreResults() |
protected Object |
performExecute(Map parameters) |
boolean |
processesRangeInDatastoreQuery() |
getLanguage, getOutputParameterValue, getOutputParameterValue, registerParameter, registerParameter, setCandidates, setCandidates, setResultClasses, setResultMetaData
addExtension, addSubquery, applyImplicitParameterValueToCompilation, applyImplicitParameterValueToSubqueries, assertIsModifiable, assertIsOpen, assertSupportsCancel, cancel, cancel, cancelTaskObject, checkForMissingParameters, checkParameterTypesAgainstCompilation, checkUnusedParameters, close, closeAll, compile, declareExplicitParameters, declareExplicitVariables, declareImports, deepFindSymbolForParameterInCompilation, deletePersistentAll, deletePersistentAll, deletePersistentAll, deregisterTask, discardCompiled, equals, execute, 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, prepareDatastore, 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
public StoredProcedureQuery(org.datanucleus.store.StoreManager storeMgr, org.datanucleus.ExecutionContext ec, StoredProcedureQuery query)
storeMgr
- StoreManagerec
- Execution Contextquery
- Existing query to base this onepublic StoredProcedureQuery(org.datanucleus.store.StoreManager storeMgr, org.datanucleus.ExecutionContext ec)
storeMgr
- StoreManagerec
- ExecutionContextpublic StoredProcedureQuery(org.datanucleus.store.StoreManager storeMgr, org.datanucleus.ExecutionContext ec, String procName)
storeMgr
- StoreManager for this queryec
- execution contextprocName
- Name of the stored procedureprotected void compileInternal(Map parameterValues)
compileInternal
in class org.datanucleus.store.query.Query
public boolean processesRangeInDatastoreQuery()
processesRangeInDatastoreQuery
in class org.datanucleus.store.query.Query
protected Object executeQuery(Map parameters)
executeQuery
in class org.datanucleus.store.query.Query
parameters
- Map of parameter values keyed by parameter nameprotected Object performExecute(Map parameters)
performExecute
in class org.datanucleus.store.query.Query
public boolean hasMoreResults()
hasMoreResults
in class org.datanucleus.store.query.AbstractStoredProcedureQuery
public int getUpdateCount()
getUpdateCount
in class org.datanucleus.store.query.AbstractStoredProcedureQuery
public Object getNextResults()
getNextResults
in class org.datanucleus.store.query.AbstractStoredProcedureQuery
protected org.datanucleus.store.query.QueryResult getResultsForResultSet(RDBMSStoreManager storeMgr, ResultSet rs, org.datanucleus.store.connection.ManagedConnection mconn) throws SQLException
SQLException
Copyright © 2020. All rights reserved.