org.datanucleus.jdo.query
Class AbstractTypesafeQuery<T>

java.lang.Object
  extended by org.datanucleus.jdo.query.AbstractTypesafeQuery<T>
Direct Known Subclasses:
JDOTypesafeQuery, JDOTypesafeSubquery

public abstract class AbstractTypesafeQuery<T>
extends java.lang.Object

Abstract base for a typesafe query. Extended by JDOTypesafeQuery and JDOTypesafeSubquery.


Field Summary
protected  java.lang.String candidateAlias
          Alias for the candidate of this query.
protected  java.lang.Class candidateCls
          Candidate class for the query.
protected  BooleanExpressionImpl filter
          Filter expression.
protected  java.util.List<ExpressionImpl> grouping
          Grouping expression(s).
protected  ExpressionImpl having
          Having expression.
protected  ObjectManager om
           
protected  java.util.List<OrderExpressionImpl> ordering
          Ordering expression(s).
protected  javax.jdo.PersistenceManager pm
           
protected  java.util.List<ExpressionImpl> result
          Result expression(s).
protected  java.lang.Boolean resultDistinct
          Whether the results are distinct (no dups).
 
Constructor Summary
AbstractTypesafeQuery(javax.jdo.PersistenceManager pm, java.lang.Class<T> cls, java.lang.String alias)
           
 
Method Summary
protected  QueryCompilation compile(MetaDataManager mmgr, 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.
 QueryCompilation getCompilation()
          Accessor for the generic compilation that this criteria query equates to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

candidateCls

protected java.lang.Class candidateCls
Candidate class for the query.


candidateAlias

protected java.lang.String candidateAlias
Alias for the candidate of this query.


result

protected java.util.List<ExpressionImpl> result
Result expression(s).


resultDistinct

protected java.lang.Boolean resultDistinct
Whether the results are distinct (no dups).


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).


pm

protected javax.jdo.PersistenceManager pm

om

protected ObjectManager om
Constructor Detail

AbstractTypesafeQuery

public AbstractTypesafeQuery(javax.jdo.PersistenceManager pm,
                             java.lang.Class<T> cls,
                             java.lang.String alias)
Method Detail

discardCompiled

protected void discardCompiled()
Called when something is set on the query making any compilation invalid.


compile

protected QueryCompilation compile(MetaDataManager mmgr,
                                   ClassLoaderResolver clr)
Method to compile the query as it is currently defined.

Parameters:
mmgr - Metadata manager
clr - ClassLoader resolver
Returns:
The generic compilation

getCompilation

public QueryCompilation getCompilation()
Accessor for the generic compilation that this criteria query equates to.

Returns:
The generic compilation


Copyright © 2011. All Rights Reserved.