public class NativeQuery
extends org.datanucleus.store.query.AbstractJavaQuery
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_USE_FETCH_PLAN, extensions, filter, from, fromInclNo, fromInclParam, grouping, having, ignoreCache, implicitParameters, imports, inputParameters, insertFields, insertSelectQuery, ordering, parameterNames, parsedImports, queryResults, range, result, resultClass, resultClassName, resultDistinct, 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, 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, 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, setInsertFields, setInsertSelectQuery, setOrdering, setRange, setRange, setResult, setResultClass, setResultClassName, setResultDistinct, setResultMetaData, setSerializeRead, setSubclasses, setType, setUnique, setUnmodifiable, setUpdate, supportsTimeout, useCaching, useFetchPlan, useResultsCaching
public 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.AbstractJavaQuery
protected void compileInternal(Map parameterValues)
compileInternal
in class org.datanucleus.store.query.Query
protected boolean isCompiled()
isCompiled
in class org.datanucleus.store.query.Query
protected Object performExecute(Map parameters)
performExecute
in class org.datanucleus.store.query.Query
parameters
- Map of parameter values keyed by the nameprotected boolean shouldReturnSingleRow()
shouldReturnSingleRow
in class org.datanucleus.store.query.Query
public String getSingleStringQuery()
getSingleStringQuery
in class org.datanucleus.store.query.AbstractJavaQuery
Copyright © 2016. All rights reserved.