|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.query.evaluator.JavaQueryEvaluator
public abstract class JavaQueryEvaluator
Class to evaluate a Java "string-based" query in whole or part. Takes in a list of instances and applies the required restrictions to the input giving a final result. Typically extended for JDOQL, JPQL, SQL specifics.
| Field Summary | |
|---|---|
protected java.lang.String |
candidateAlias
|
protected ClassLoaderResolver |
clr
|
protected InMemoryExpressionEvaluator |
evaluator
|
protected Expression |
filter
|
protected Expression[] |
grouping
|
protected Expression |
having
|
protected java.lang.String |
language
|
protected static Localiser |
LOCALISER
Localisation utility for output messages |
protected Expression[] |
ordering
|
protected java.util.Map |
parameterValues
|
protected Query |
query
Underlying "string-based" query. |
protected Expression[] |
result
|
protected java.util.List |
sourceObjects
List of input objects. |
protected SymbolTable |
symtbl
|
| Constructor Summary | |
|---|---|
JavaQueryEvaluator(java.lang.String language)
Constructor for the evaluator of a query in the specified language. |
|
| Method Summary | |
|---|---|
java.util.Collection |
execute(boolean applyFilter,
boolean applyOrdering,
boolean applyResult,
boolean applyResultClass,
boolean applyRange)
Method to perform the evaluation, applying the query restrictions that are required. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Localiser LOCALISER
protected final java.lang.String language
protected java.lang.String candidateAlias
protected Expression filter
protected Expression[] result
protected Expression[] ordering
protected Expression[] grouping
protected Expression having
protected SymbolTable symtbl
protected InMemoryExpressionEvaluator evaluator
protected java.util.Map parameterValues
protected java.util.List sourceObjects
protected Query query
protected ClassLoaderResolver clr
| Constructor Detail |
|---|
public JavaQueryEvaluator(java.lang.String language)
language - Name of the language| Method Detail |
|---|
public java.util.Collection execute(boolean applyFilter,
boolean applyOrdering,
boolean applyResult,
boolean applyResultClass,
boolean applyRange)
applyFilter - Whether to apply any filter constraints on the resultsapplyOrdering - Whether to apply any order constraints on the resultsapplyResult - Whether to apply any result/grouping/having on the resultsapplyResultClass - Whether to apply any resultClass constraint on the resultsapplyRange - Whether to apply any range constraint on the results
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||