Package org.datanucleus.api.jdo.query
Class AbstractJDOQLTypedQuery<T>
- java.lang.Object
-
- org.datanucleus.api.jdo.query.AbstractJDOQLTypedQuery<T>
-
- Direct Known Subclasses:
JDOQLTypedQueryImpl
,JDOQLTypedSubqueryImpl
public abstract class AbstractJDOQLTypedQuery<T> extends java.lang.Object
Abstract base for a typesafe query. Extended by JDOTypesafeQuery and JDOTypesafeSubquery.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
candidateAlias
Alias for the candidate of this query.protected java.lang.Class
candidateCls
Candidate class for the query.protected ExpressionImpl
candidates
Candidate expression for the queryprotected org.datanucleus.store.query.compiler.QueryCompilation
compilation
The generic query compilation that this equates to (cached).protected org.datanucleus.ExecutionContext
ec
protected BooleanExpressionImpl
filter
Filter expression.protected java.util.List<ExpressionImpl>
grouping
Grouping expression(s).protected ExpressionImpl
having
Having expression.protected java.util.List<OrderExpressionImpl>
ordering
Ordering expression(s).protected AbstractJDOQLTypedQuery
parentQuery
protected javax.jdo.PersistenceManager
pm
protected java.lang.String
queryString
The single-string query that this equates to (cached).protected ExpressionImpl
rangeLowerExpr
Range : lower limit expression.protected ExpressionImpl
rangeUpperExpr
Range : upper limit expression.protected java.util.List<ExpressionImpl>
result
Result expression(s).protected java.lang.Class
resultClass
protected java.lang.Boolean
resultDistinct
Whether the results are distinct (no dups).protected boolean
subclasses
Whether to include subclasses of the candidate in the query.protected org.datanucleus.store.query.Query.QueryType
type
protected boolean
unique
Whether the result is unique (single row).protected java.util.List<ExpressionImpl>
updateExprs
protected java.util.List<ExpressionImpl>
updateVals
-
Constructor Summary
Constructors Constructor Description AbstractJDOQLTypedQuery(javax.jdo.PersistenceManager pm, java.lang.Class<T> cls, java.lang.String alias, AbstractJDOQLTypedQuery parentQuery)
AbstractJDOQLTypedQuery(javax.jdo.PersistenceManager pm, java.lang.Class<T> cls, ExpressionImpl<T> candidates, java.lang.String alias, AbstractJDOQLTypedQuery parentQuery)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.protected void
discardCompiled()
Called when something is set on the query making any compilation invalid.org.datanucleus.store.query.compiler.QueryCompilation
getCompilation()
Accessor for the generic compilation that this criteria query equates to.java.lang.String
getJDOQLForExpression(org.datanucleus.store.query.expression.Expression expr)
java.lang.String
toString()
Method to return the single-string form of this JDOQL query.
-
-
-
Field Detail
-
parentQuery
protected AbstractJDOQLTypedQuery parentQuery
-
type
protected org.datanucleus.store.query.Query.QueryType type
-
candidateCls
protected java.lang.Class candidateCls
Candidate class for the query.
-
candidates
protected ExpressionImpl candidates
Candidate expression for the query
-
subclasses
protected boolean subclasses
Whether to include subclasses of the candidate in the query.
-
candidateAlias
protected java.lang.String candidateAlias
Alias for the candidate of this query.
-
updateExprs
protected java.util.List<ExpressionImpl> updateExprs
-
updateVals
protected java.util.List<ExpressionImpl> updateVals
-
result
protected java.util.List<ExpressionImpl> result
Result expression(s).
-
resultDistinct
protected java.lang.Boolean resultDistinct
Whether the results are distinct (no dups).
-
unique
protected boolean unique
Whether the result is unique (single row).
-
resultClass
protected java.lang.Class resultClass
-
filter
protected BooleanExpressionImpl filter
Filter expression.
-
grouping
protected java.util.List<ExpressionImpl> grouping
Grouping expression(s).
-
having
protected ExpressionImpl having
Having expression.
-
ordering
protected java.util.List<OrderExpressionImpl> ordering
Ordering expression(s).
-
rangeLowerExpr
protected ExpressionImpl rangeLowerExpr
Range : lower limit expression.
-
rangeUpperExpr
protected ExpressionImpl 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 compilation
The generic query compilation that this equates to (cached).
-
queryString
protected java.lang.String queryString
The single-string query that this equates to (cached).
-
-
Constructor Detail
-
AbstractJDOQLTypedQuery
public AbstractJDOQLTypedQuery(javax.jdo.PersistenceManager pm, java.lang.Class<T> cls, java.lang.String alias, AbstractJDOQLTypedQuery parentQuery)
-
AbstractJDOQLTypedQuery
public AbstractJDOQLTypedQuery(javax.jdo.PersistenceManager pm, java.lang.Class<T> cls, ExpressionImpl<T> candidates, java.lang.String alias, AbstractJDOQLTypedQuery parentQuery)
-
-
Method Detail
-
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
public java.lang.String toString()
Method to return the single-string form of this JDOQL query.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Single-string form of the query
-
getJDOQLForExpression
public java.lang.String getJDOQLForExpression(org.datanucleus.store.query.expression.Expression expr)
-
-