|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.query.Query
org.datanucleus.store.query.AbstractJavaQuery
org.datanucleus.store.neodatis.query.NativeQuery
public class NativeQuery
Representation of a NeoDatis "Native" query for use in DataNucleus. Created by passing in the NativeQuery object.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.datanucleus.store.query.Query |
|---|
org.datanucleus.store.query.Query.SubqueryDefinition |
| Field Summary | |
|---|---|
protected static org.datanucleus.util.Localiser |
LOCALISER_NEODATIS
Localiser for messages. |
| Fields inherited from class org.datanucleus.store.query.AbstractJavaQuery |
|---|
candidateCollection, candidateExtent, singleString |
| Fields inherited from class org.datanucleus.store.query.Query |
|---|
BULK_DELETE, BULK_UPDATE, candidateClass, candidateClassName, compilation, explicitParameters, explicitVariables, extensions, filter, from, fromInclNo, grouping, having, ignoreCache, implicitParameters, imports, LOCALISER, om, ordering, parameterNames, parsedImports, queryResults, range, result, resultClass, resultClassName, resultDistinct, SELECT, subclasses, subqueries, tasks, toExclNo, type, unique, unmodifiable, update |
| Constructor Summary | |
|---|---|
NativeQuery(org.datanucleus.ObjectManager om)
Constructs a new query instance that uses the given persistence manager. |
|
NativeQuery(org.datanucleus.ObjectManager om,
java.lang.Object nativeQuery)
Constructor for a query using NeoDatis "native" query language. |
|
| Method Summary | |
|---|---|
protected void |
compileInternal(boolean forExecute,
java.util.Map parameterValues)
Method to compile the query. |
java.lang.String |
getSingleStringQuery()
Method to return the query as a single string. |
protected boolean |
isCompiled()
Method to return if the query is compiled. |
protected java.lang.Object |
performExecute(java.util.Map parameters)
Method to execute the query. |
protected boolean |
shouldReturnSingleRow()
Convenience method to return whether the query should return a single row. |
| Methods inherited from class org.datanucleus.store.query.AbstractJavaQuery |
|---|
discardCompiled, evaluateInMemory, getCandidateCollection, getCandidateExtent, getSupportedExtensions, performDeletePersistentAll, setCandidates, setCandidates, toString |
| Methods inherited from class org.datanucleus.store.query.Query |
|---|
addExtension, addSubquery, applyImplicitParameterValueToCompilation, applyRangeChecks, assertIsModifiable, assertSupportsCancel, cancel, cancel, checkParameterTypesAgainstCompilation, close, closeAll, compile, declareExplicitParameters, declareExplicitVariables, declareImports, deletePersistentAll, deletePersistentAll, deletePersistentAll, equals, execute, executeQuery, executeWithArray, executeWithMap, getBooleanExtensionProperty, getCandidateClass, getCandidateClassName, getCompilation, getExplicitParameters, getExplicitVariables, getExtension, getExtensions, getFetchPlan, getFilter, getFrom, getGrouping, getHaving, getIgnoreCache, getImplicitParameters, getImports, getInputParameters, getObjectManager, getOrdering, getParameterMapForValues, getParsedImports, getPerformExecuteTask, getRange, getRangeFromIncl, getRangeToExcl, getResult, getResultClass, getResultClassName, getResultDistinct, getSerializeRead, getStoreManager, getSubqueryForVariable, getTimeoutMillis, getType, getUpdate, hashCode, hasSubqueryForVariable, isSubclasses, isUnique, isUnmodifiable, performExecuteInternal, performExecuteTask, prepareDatastore, resolveClassDeclaration, setCandidateClassName, setClass, setExtensions, setFetchPlan, setFilter, setFrom, setGrouping, setHaving, setIgnoreCache, setImplicitParameter, setImplicitParameter, setOrdering, setRange, setRange, setResult, setResultClass, setResultClassName, setResultDistinct, setResultMetaData, setSerializeRead, setSubclasses, setTimeoutMillis, setType, setUnique, setUnmodifiable, setUpdate, useFetchPlan |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.datanucleus.util.Localiser LOCALISER_NEODATIS
| Constructor Detail |
|---|
public NativeQuery(org.datanucleus.ObjectManager om)
om - the associated ObjectManager for this query.
public NativeQuery(org.datanucleus.ObjectManager om,
java.lang.Object nativeQuery)
om - The persistence managernativeQuery - The native query
org.datanucleus.exceptions.NucleusUserException - When the second parameter isn't an implementation of a Query| Method Detail |
|---|
protected void compileInternal(boolean forExecute,
java.util.Map parameterValues)
compileInternal in class org.datanucleus.store.query.QueryforExecute - Whether to compile ready for executionprotected boolean isCompiled()
isCompiled in class org.datanucleus.store.query.Queryprotected java.lang.Object performExecute(java.util.Map parameters)
performExecute in class org.datanucleus.store.query.Queryparameters - Map of parameter values keyed by the name
protected boolean shouldReturnSingleRow()
shouldReturnSingleRow in class org.datanucleus.store.query.Querypublic java.lang.String getSingleStringQuery()
getSingleStringQuery in class org.datanucleus.store.query.AbstractJavaQuery
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||