public class NativeQuery
extends org.datanucleus.store.query.AbstractJavaQuery
candidateCollection, singleStringBULK_DELETE, BULK_UPDATE, 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_FLUSH_BEFORE_EXECUTION, EXTENSION_LOAD_RESULTS_AT_COMMIT, EXTENSION_MULTITHREAD, EXTENSION_RESULT_CACHE_TYPE, EXTENSION_RESULT_SIZE_METHOD, EXTENSION_RESULTS_CACHED, EXTENSION_USE_FETCH_PLAN, extensions, filter, from, fromInclNo, fromInclParam, grouping, having, ignoreCache, implicitParameters, imports, inputParameters, ordering, OTHER, parameterNames, parsedImports, queryResults, range, result, resultClass, resultClassName, resultDistinct, SELECT, storeMgr, subclasses, subqueries, tasks, toExclNo, toExclParam, type, unique, unmodifiable, update| Constructor and Description |
|---|
NativeQuery(org.datanucleus.store.StoreManager storeMgr,
org.datanucleus.ExecutionContext ec)
Constructs a new query instance that uses the given persistence manager.
|
NativeQuery(org.datanucleus.store.StoreManager storeMgr,
org.datanucleus.ExecutionContext ec,
Object nativeQuery)
Constructor for a query using NeoDatis "native" query language.
|
| Modifier and Type | Method and Description |
|---|---|
void |
compileGeneric(Map parameterValues) |
protected void |
compileInternal(Map parameterValues)
Method to compile the query.
|
String |
getSingleStringQuery()
Method to return the query as a single string.
|
protected boolean |
isCompiled()
Method to return if the query is compiled.
|
protected Object |
performExecute(Map parameters)
Method to execute the query.
|
protected boolean |
shouldReturnSingleRow()
Convenience method to return whether the query should return a single row.
|
dereferenceFilter, discardCompiled, evaluateInMemory, performDeletePersistentAll, setCandidates, setCandidates, toStringaddExtension, 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, getExplicitParameters, getExplicitVariables, getExtension, getExtensions, getFetchPlan, getFilter, getFrom, getGrouping, getHaving, getIgnoreCache, getImplicitParameters, getImports, getInputParameters, getLanguage, getNativeQuery, getOrdering, getParameterMapForValues, getParsedImports, getQueryManager, getRange, getRangeFromIncl, getRangeFromInclParam, getRangeToExcl, getRangeToExclParam, getResult, getResultClass, getResultClassName, getResultDistinct, getSerializeRead, getStoreManager, getStringExtensionProperty, getSubqueryForVariable, getSupportedExtensions, getType, getUpdate, hashCode, hasSubqueryForVariable, isSubclasses, isUnique, isUnmodifiable, prepareDatastore, processesRangeInDatastoreQuery, registerTask, resolveClassDeclaration, setCacheResults, setCandidateClass, setCandidateClassName, setCompilation, setDatastoreReadTimeoutMillis, setDatastoreWriteTimeoutMillis, setExtensions, setFetchPlan, setFilter, setFrom, setGrouping, setHaving, setIgnoreCache, setImplicitParameter, setImplicitParameter, setOrdering, setRange, setRange, setResult, setResultClass, setResultClassName, setResultDistinct, setResultMetaData, setSerializeRead, setSubclasses, setType, setUnique, setUnmodifiable, setUpdate, supportsTimeout, useCaching, useFetchPlan, useResultsCachingpublic NativeQuery(org.datanucleus.store.StoreManager storeMgr,
org.datanucleus.ExecutionContext ec)
storeMgr - StoreManager for this queryec - execution contextpublic NativeQuery(org.datanucleus.store.StoreManager storeMgr,
org.datanucleus.ExecutionContext ec,
Object nativeQuery)
storeMgr - StoreManager for this queryec - execution contextnativeQuery - The native queryorg.datanucleus.exceptions.NucleusUserException - When the second parameter isn't an implementation of a Querypublic void compileGeneric(Map parameterValues)
compileGeneric in class org.datanucleus.store.query.AbstractJavaQueryprotected void compileInternal(Map parameterValues)
compileInternal in class org.datanucleus.store.query.Queryprotected boolean isCompiled()
isCompiled in class org.datanucleus.store.query.Queryprotected Object performExecute(Map parameters)
performExecute in class org.datanucleus.store.query.Queryparameters - Map of parameter values keyed by the nameprotected boolean shouldReturnSingleRow()
shouldReturnSingleRow in class org.datanucleus.store.query.Querypublic String getSingleStringQuery()
getSingleStringQuery in class org.datanucleus.store.query.AbstractJavaQueryCopyright © 2015. All rights reserved.