|
||||||||||
| 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.query.AbstractJDOQLQuery
public abstract class AbstractJDOQLQuery
Abstract representation of a JDOQL query. The query can be specified via method calls, or via a single-string form.
Query,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.datanucleus.store.query.Query |
|---|
Query.SubqueryDefinition |
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.store.query.AbstractJavaQuery |
|---|
candidateCollection, candidateExtent, resultMetaData, singleString, userDefinedScalarExpressions |
| 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, IMPLICIT_POSITIONAL_PARAM_PREFIX, implicitParameters, imports, LOCALISER, om, ordering, parameterNames, parsedImports, queryResults, range, result, resultClass, resultClassName, resultDistinct, SELECT, subclasses, subqueries, toExclNo, type, unique, unmodifiable, update |
| Constructor Summary | |
|---|---|
AbstractJDOQLQuery(ObjectManager om)
Constructor. |
|
AbstractJDOQLQuery(ObjectManager om,
AbstractJDOQLQuery q)
Constructs a new query instance having the same criteria as the given query. |
|
AbstractJDOQLQuery(ObjectManager om,
java.lang.String query)
Constructor for a JDOQL query where the query is specified using the "Single-String" format. |
|
| Method Summary | |
|---|---|
protected void |
compileInternal(boolean forExecute,
java.util.Map parameterValues)
Method to compile the JDOQL query. |
java.lang.String |
getSingleStringQuery()
Method to take the defined parameters for the query and form a single string. |
void |
setGrouping(java.lang.String grouping)
Set the grouping specification for the result Collection. |
void |
setResult(java.lang.String result)
Set the result for the results. |
| Methods inherited from class org.datanucleus.store.query.AbstractJavaQuery |
|---|
discardCompiled, evaluateInMemory, getCandidateCollection, getCandidateExtent, getParsedImports, getResultSetMetaData, getUserDefinedScalarExpressions, performDeletePersistentAll, registerScalarExpression, registerScalarExpressions, setCandidates, setCandidates, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractJDOQLQuery(ObjectManager om)
om - ObjectManager
public AbstractJDOQLQuery(ObjectManager om,
AbstractJDOQLQuery q)
om - The ObjectManagerq - The query from which to copy criteria.
public AbstractJDOQLQuery(ObjectManager om,
java.lang.String query)
om - The persistence managerquery - The query string| Method Detail |
|---|
public void setGrouping(java.lang.String grouping)
setGrouping in class Querygrouping - the grouping specification.public void setResult(java.lang.String result)
setResult in class Queryresult - Optional keyword "distinct" followed by comma-separated list of
result expressions or a result classpublic java.lang.String getSingleStringQuery()
getSingleStringQuery in class AbstractJavaQuery
protected void compileInternal(boolean forExecute,
java.util.Map parameterValues)
compileInternal in class QueryforExecute - Whether compiling for execution NOT USED HERE. TODO Remove this when possibleparameterValues - Map of param values keyed by param name. TODO Remove this when possible
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||