org.datanucleus.query.evaluator
Class JDOQLEvaluator

java.lang.Object
  extended by org.datanucleus.query.evaluator.JavaQueryEvaluator
      extended by org.datanucleus.query.evaluator.JDOQLEvaluator

public class JDOQLEvaluator
extends JavaQueryEvaluator

Class to evaluate a JDOQL query in whole or part.


Field Summary
 
Fields inherited from class org.datanucleus.query.evaluator.JavaQueryEvaluator
candidateAlias, candidates, clr, compilation, evaluator, language, LOCALISER, parameterValues, query, RESULTS_SET, state
 
Constructor Summary
JDOQLEvaluator(Query query, java.util.Collection candidates, QueryCompilation compilation, java.util.Map parameterValues, ClassLoaderResolver clr)
          Constructor.
 
Method Summary
protected  java.util.Collection evaluateSubquery(Query query, QueryCompilation compilation, java.util.Collection candidates, java.lang.Object outerCandidate)
          Method to evaluate a subquery of the query being evaluated.
 
Methods inherited from class org.datanucleus.query.evaluator.JavaQueryEvaluator
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOQLEvaluator

public JDOQLEvaluator(Query query,
                      java.util.Collection candidates,
                      QueryCompilation compilation,
                      java.util.Map parameterValues,
                      ClassLoaderResolver clr)
Constructor.

Parameters:
query - The underlying JDOQL query
candidates - List of objects as input to the evaluation process
compilation - Query compilation
parameterValues - Input parameter values keyed by the param name
clr - ClassLoader resolver
Method Detail

evaluateSubquery

protected java.util.Collection evaluateSubquery(Query query,
                                                QueryCompilation compilation,
                                                java.util.Collection candidates,
                                                java.lang.Object outerCandidate)
Method to evaluate a subquery of the query being evaluated.

Specified by:
evaluateSubquery in class JavaQueryEvaluator
Parameters:
query - The subquery
compilation - The subquery compilation
candidates - The candidates for the subquery
outerCandidate - Current candidate in the outer query (for use when linking back)
Returns:
The result


Copyright © 2011. All Rights Reserved.