Package org.datanucleus.api.jdo.query
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 String
Alias for the candidate of this query.protected Class
Candidate class for the query.protected ExpressionImpl
Candidate expression for the queryprotected org.datanucleus.store.query.compiler.QueryCompilation
The generic query compilation that this equates to (cached).protected org.datanucleus.ExecutionContext
protected BooleanExpressionImpl
Filter expression.protected List
<ExpressionImpl> Grouping expression(s).protected ExpressionImpl
Having expression.protected List
<OrderExpressionImpl> Ordering expression(s).protected AbstractJDOQLTypedQuery
protected javax.jdo.PersistenceManager
protected String
The single-string query that this equates to (cached).protected ExpressionImpl
Range : lower limit expression.protected ExpressionImpl
Range : upper limit expression.protected List
<ExpressionImpl> Result expression(s).protected Class
protected Boolean
Whether the results are distinct (no dups).protected boolean
Whether to include subclasses of the candidate in the query.protected org.datanucleus.store.query.Query.QueryType
protected boolean
Whether 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.QueryCompilation
compile
(org.datanucleus.metadata.MetaDataManager mmgr, org.datanucleus.ClassLoaderResolver clr) Method to compile the query as it is currently defined.protected void
Called when something is set on the query making any compilation invalid.org.datanucleus.store.query.compiler.QueryCompilation
Accessor 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
Method to return the single-string form of this JDOQL query. -
getJDOQLForExpression
-