org.datanucleus.query.evaluator
Class JPQLEvaluator

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

public class JPQLEvaluator
extends JavaQueryEvaluator

Class to evaluate a JPQL 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
JPQLEvaluator(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

JPQLEvaluator

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

Parameters:
query - The underlying JPQL query
candidates - List of objects as input to the evaluation process
compilation - Compiled query
parameterValues - Input parameter values
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.