Class AbstractJDOQLTypedQuery<T>
java.lang.Object
org.datanucleus.api.jdo.query.AbstractJDOQLTypedQuery<T>
- Direct Known Subclasses:
JDOQLTypedQueryImpl, JDOQLTypedSubqueryImpl
Abstract base for a typesafe query. Extended by JDOTypesafeQuery and JDOTypesafeSubquery.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringAlias for the candidate of this query.protected ClassCandidate class for the query.protected ExpressionImplCandidate expression for the queryprotected org.datanucleus.store.query.compiler.QueryCompilationThe generic query compilation that this equates to (cached).protected org.datanucleus.ExecutionContextprotected BooleanExpressionImplFilter expression.protected List<ExpressionImpl> Grouping expression(s).protected ExpressionImplHaving expression.protected List<OrderExpressionImpl> Ordering expression(s).protected AbstractJDOQLTypedQueryprotected javax.jdo.PersistenceManagerprotected StringThe single-string query that this equates to (cached).protected ExpressionImplRange : lower limit expression.protected ExpressionImplRange : upper limit expression.protected List<ExpressionImpl> Result expression(s).protected Classprotected BooleanWhether the results are distinct (no dups).protected booleanWhether to include subclasses of the candidate in the query.protected org.datanucleus.store.query.Query.QueryTypeprotected booleanWhether the result is unique (single row).protected List<ExpressionImpl> protected List<ExpressionImpl> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractJDOQLTypedQuery(javax.jdo.PersistenceManager pm, Class<T> cls, String alias, AbstractJDOQLTypedQuery parentQuery) AbstractJDOQLTypedQuery(javax.jdo.PersistenceManager pm, Class<T> cls, ExpressionImpl<T> candidates, String alias, AbstractJDOQLTypedQuery parentQuery) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.datanucleus.store.query.compiler.QueryCompilationcompile(org.datanucleus.metadata.MetaDataManager mmgr, org.datanucleus.ClassLoaderResolver clr) Method to compile the query as it is currently defined.protected voidCalled when something is set on the query making any compilation invalid.org.datanucleus.store.query.compiler.QueryCompilationAccessor for the generic compilation that this criteria query equates to.getJDOQLForExpression(org.datanucleus.store.query.expression.Expression expr) toString()Method to return the single-string form of this JDOQL query.
-
Field Details
-
parentQuery
-
type
protected org.datanucleus.store.query.Query.QueryType type -
candidateCls
Candidate class for the query. -
candidates
Candidate expression for the query -
subclasses
protected boolean subclassesWhether to include subclasses of the candidate in the query. -
candidateAlias
Alias for the candidate of this query. -
updateExprs
-
updateVals
-
result
Result expression(s). -
resultDistinct
Whether the results are distinct (no dups). -
unique
protected boolean uniqueWhether the result is unique (single row). -
resultClass
-
filter
Filter expression. -
grouping
Grouping expression(s). -
having
Having expression. -
ordering
Ordering expression(s). -
rangeLowerExpr
Range : lower limit expression. -
rangeUpperExpr
Range : upper limit expression. -
pm
protected javax.jdo.PersistenceManager pm -
ec
protected org.datanucleus.ExecutionContext ec -
compilation
protected org.datanucleus.store.query.compiler.QueryCompilation compilationThe generic query compilation that this equates to (cached). -
queryString
The single-string query that this equates to (cached).
-
-
Constructor Details
-
AbstractJDOQLTypedQuery
public AbstractJDOQLTypedQuery(javax.jdo.PersistenceManager pm, Class<T> cls, String alias, AbstractJDOQLTypedQuery parentQuery) -
AbstractJDOQLTypedQuery
public AbstractJDOQLTypedQuery(javax.jdo.PersistenceManager pm, Class<T> cls, ExpressionImpl<T> candidates, String alias, AbstractJDOQLTypedQuery parentQuery)
-
-
Method Details
-
discardCompiled
protected void discardCompiled()Called when something is set on the query making any compilation invalid. -
compile
protected org.datanucleus.store.query.compiler.QueryCompilation compile(org.datanucleus.metadata.MetaDataManager mmgr, org.datanucleus.ClassLoaderResolver clr) Method to compile the query as it is currently defined.- Parameters:
mmgr- Metadata managerclr- ClassLoader resolver- Returns:
- The generic compilation
-
getCompilation
public org.datanucleus.store.query.compiler.QueryCompilation getCompilation()Accessor for the generic compilation that this criteria query equates to.- Returns:
- The generic compilation
-
toString
-
getJDOQLForExpression
-