Package | Description |
---|---|
org.datanucleus.query |
This package provides general classes for querying across all datastores in particular languages.
|
org.datanucleus.query.compiler |
Package handling the compilation of queries.
|
org.datanucleus.query.expression |
Package providing expressions from which a (generically) compiled query is made up.
|
org.datanucleus.query.inmemory |
Package providing the evaluation of queries using an in-memory process with evaluators for JDOQL and JPQL.
|
org.datanucleus.query.inmemory.method |
Package providing the evaluation of Java methods/functions for use by JDOQL/JPQL in-memory query evaluators.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
QueryUtils.expressionHasNotOperator(Expression expr)
Convenience method to return if there is a NOT operator in the expression.
|
static boolean |
QueryUtils.expressionHasOrOperator(Expression expr)
Convenience method to return if there is an OR operator in the expression.
|
static String |
JDOQLQueryHelper.getJDOQLForExpression(Expression expr) |
static String |
JPQLQueryHelper.getJPQLForExpression(Expression expr)
Convenience method to return the JPQL single-string query text for the provided expression.
|
static ParameterExpression |
QueryUtils.getParameterExpressionForPosition(Expression rootExpr,
int pos)
Convenience method to return the ParameterExpression for the specified position
if found in the expression tree starting at
|
static String |
QueryUtils.getStringValueForExpression(Expression expr,
Map parameters)
Convenience method to get the String value for an Expression.
|
static List |
QueryUtils.orderCandidates(List candidates,
Expression[] ordering,
Map state,
String candidateAlias,
ExecutionContext ec,
ClassLoaderResolver clr,
Map parameterValues,
Imports imports,
String queryLanguage)
Convenience method to order the input List of objects to the ordering defined by the compilation.
|
Modifier and Type | Field and Description |
---|---|
protected Expression |
QueryCompilation.exprFilter
Compiled filter expression
|
protected Expression[] |
QueryCompilation.exprFrom
Compiled from expression.
|
protected Expression[] |
QueryCompilation.exprGrouping
Compiled grouping expression.
|
protected Expression |
QueryCompilation.exprHaving
Compiled having expression.
|
protected Expression[] |
QueryCompilation.exprOrdering
Compiled ordering expression.
|
protected Expression[] |
QueryCompilation.exprResult
Compiled result expression.
|
protected Expression[] |
QueryCompilation.exprUpdate
Compiled update expression.
|
Modifier and Type | Method and Description |
---|---|
Expression |
JavaQueryCompiler.compileFilter()
Compile the filter and return the compiled expression.
|
protected Expression[] |
JavaQueryCompiler.compileFrom()
Method to compile the "from" clause (if present for the query language).
|
Expression[] |
JavaQueryCompiler.compileGrouping() |
Expression |
JavaQueryCompiler.compileHaving() |
Expression[] |
JavaQueryCompiler.compileOrdering() |
Expression[] |
JavaQueryCompiler.compileResult() |
Expression[] |
JavaQueryCompiler.compileUpdate() |
Expression[] |
JDOQLCompiler.compileUpdate() |
Expression |
QueryCompilation.getExprFilter()
Accessor for the filter expression.
|
Expression[] |
QueryCompilation.getExprFrom()
Accessor for any from expression(s).
|
Expression[] |
QueryCompilation.getExprGrouping()
Accessor for any grouping expression(s).
|
Expression |
QueryCompilation.getExprHaving()
Accessor for any having expression.
|
Expression[] |
QueryCompilation.getExprOrdering()
Accessor for any ordering expression(s).
|
Expression[] |
QueryCompilation.getExprResult()
Accessor for any result expression(s).
|
Expression[] |
QueryCompilation.getExprUpdate()
Accessor for any update expression(s).
|
Modifier and Type | Method and Description |
---|---|
void |
QueryCompilation.setExprFilter(Expression filter) |
void |
QueryCompilation.setExprHaving(Expression having) |
Constructor and Description |
---|
QueryCompilation(Class candidateCls,
String candidateAlias,
SymbolTable symtbl,
Expression[] results,
Expression[] froms,
Expression filter,
Expression[] groupings,
Expression having,
Expression[] orderings,
Expression[] updates) |
QueryCompilation(Class candidateCls,
String candidateAlias,
SymbolTable symtbl,
Expression[] results,
Expression[] froms,
Expression filter,
Expression[] groupings,
Expression having,
Expression[] orderings,
Expression[] updates) |
QueryCompilation(Class candidateCls,
String candidateAlias,
SymbolTable symtbl,
Expression[] results,
Expression[] froms,
Expression filter,
Expression[] groupings,
Expression having,
Expression[] orderings,
Expression[] updates) |
QueryCompilation(Class candidateCls,
String candidateAlias,
SymbolTable symtbl,
Expression[] results,
Expression[] froms,
Expression filter,
Expression[] groupings,
Expression having,
Expression[] orderings,
Expression[] updates) |
QueryCompilation(Class candidateCls,
String candidateAlias,
SymbolTable symtbl,
Expression[] results,
Expression[] froms,
Expression filter,
Expression[] groupings,
Expression having,
Expression[] orderings,
Expression[] updates) |
QueryCompilation(Class candidateCls,
String candidateAlias,
SymbolTable symtbl,
Expression[] results,
Expression[] froms,
Expression filter,
Expression[] groupings,
Expression having,
Expression[] orderings,
Expression[] updates) |
Modifier and Type | Class and Description |
---|---|
class |
ArrayExpression
Expression representing an input array of expressions (or at least some of the array is of expressions).
|
class |
CaseExpression
Expression representing a case series of when expressions and their action expressions.
|
class |
ClassExpression
Expression representing a candidate in a FROM clause.
|
class |
CreatorExpression
Expression representing something like "new X.Y.Z([param1[,param2[,param3]]])".
|
class |
DyadicExpression
Expression between two other expressions and an operation.
|
class |
InvokeExpression
Expression representing invocation of a method.
|
class |
JoinExpression
Expression representing a join between a candidate class, and the class of a field of the first class.
|
class |
Literal
Literal of some type (String, Double, Long, BigDecimal, etc).
|
class |
OrderExpression
Expression as part of an ordering clause.
|
class |
ParameterExpression
Expression representing a parameter.
|
class |
PrimaryExpression
Expression for a primary object.
|
class |
SubqueryExpression
Expression containing a subquery.
|
class |
TypeExpression
Expression representing a the type of the contained expression.
|
class |
VariableExpression
Expression representing a variable.
|
Modifier and Type | Field and Description |
---|---|
protected Expression |
Expression.left |
protected Expression |
Expression.parent
Parent of this expression in the tree (if any).
|
protected Expression |
Expression.right |
Modifier and Type | Method and Description |
---|---|
Expression |
ExpressionCompiler.compileExpression(Node node)
Primary entry point for compiling a node for the filter, grouping, having, result clauses.
|
Expression |
ExpressionCompiler.compileFromExpression(Node node,
boolean classIsExpression)
Primary entry point for compiling a node for the from clause.
|
Expression |
ExpressionCompiler.compileOrderExpression(Node node)
Primary entry point for compiling a node for the order clause.
|
Expression |
CaseExpression.ExpressionPair.getActionExpression() |
Expression |
TypeExpression.getContainedExpression() |
Expression |
ArrayExpression.getElement(int index)
Accessor for an element of the array.
|
Expression |
CaseExpression.getElseExpression() |
Expression |
JoinExpression.getJoinedExpression() |
Expression |
Expression.getLeft()
Accessor for the left hand expression.
|
Expression |
JoinExpression.getOnExpression() |
Expression |
Expression.getParent()
Accessor for the parent expression where this expression is access from.
|
Expression |
Expression.getRight()
Accessor for the right hand expression.
|
Expression |
CaseExpression.ExpressionPair.getWhenExpression() |
Modifier and Type | Method and Description |
---|---|
List<Expression> |
CreatorExpression.getArguments()
Accessor for the arguments to use in the creation call.
|
List<Expression> |
InvokeExpression.getArguments()
Accessor for any arguments to be passed in the invocation.
|
Modifier and Type | Method and Description |
---|---|
void |
CaseExpression.addCondition(Expression whenExpr,
Expression actionExpr) |
protected Object |
AbstractExpressionEvaluator.compileAdditiveMultiplicativeExpression(Expression expr) |
protected Object |
AbstractExpressionEvaluator.compileOrAndExpression(Expression expr)
This method deals with the OR/AND conditions.
|
protected Object |
AbstractExpressionEvaluator.compilePrimaryExpression(Expression expr) |
protected Object |
AbstractExpressionEvaluator.compileRelationalExpression(Expression expr)
Method to handle a relational expression comparing two expressions and returning a BooleanExpression.
|
protected Object |
AbstractExpressionEvaluator.compileUnaryExpression(Expression expr) |
Object |
AbstractExpressionEvaluator.evaluate(Expression expr)
Method to "evaluate" the expression.
|
Object |
ExpressionEvaluator.evaluate(Expression expr)
Method to evaluate the provided expression.
|
protected Object |
AbstractExpressionEvaluator.processAddExpression(Expression expr)
Method to process the supplied ADD expression.
|
protected Object |
AbstractExpressionEvaluator.processAndExpression(Expression expr)
Method to process the supplied AND expression.
|
protected Object |
AbstractExpressionEvaluator.processBitAndExpression(Expression expr)
Method to process the supplied BITWISE AND expression.
|
protected Object |
AbstractExpressionEvaluator.processBitOrExpression(Expression expr)
Method to process the supplied BITWISE OR expression.
|
protected Object |
AbstractExpressionEvaluator.processBitXorExpression(Expression expr)
Method to process the supplied BITWISE XOR expression.
|
protected Object |
AbstractExpressionEvaluator.processCastExpression(Expression expr)
Method to process the supplied cast expression.
|
protected Object |
AbstractExpressionEvaluator.processComExpression(Expression expr)
Method to process the supplied COM expression.
|
protected Object |
AbstractExpressionEvaluator.processDistinctExpression(Expression expr)
Method to process the supplied DISTINCT expression.
|
protected Object |
AbstractExpressionEvaluator.processDivExpression(Expression expr)
Method to process the supplied DIV expression.
|
protected Object |
AbstractExpressionEvaluator.processEqExpression(Expression expr)
Method to process the supplied EQ expression.
|
protected Object |
AbstractExpressionEvaluator.processGteqExpression(Expression expr)
Method to process the supplied GTEQ expression.
|
protected Object |
AbstractExpressionEvaluator.processGtExpression(Expression expr)
Method to process the supplied GT expression.
|
protected Object |
AbstractExpressionEvaluator.processInExpression(Expression expr)
Method to process the supplied IN expression.
|
protected Object |
AbstractExpressionEvaluator.processIsExpression(Expression expr)
Method to process the supplied IS (instanceof) expression.
|
protected Object |
AbstractExpressionEvaluator.processIsnotExpression(Expression expr)
Method to process the supplied ISNOT (!instanceof) expression.
|
protected Object |
AbstractExpressionEvaluator.processLikeExpression(Expression expr)
Method to process the supplied LIKE expression.
|
protected Object |
AbstractExpressionEvaluator.processLteqExpression(Expression expr)
Method to process the supplied LTEQ expression.
|
protected Object |
AbstractExpressionEvaluator.processLtExpression(Expression expr)
Method to process the supplied LT expression.
|
protected Object |
AbstractExpressionEvaluator.processModExpression(Expression expr)
Method to process the supplied MOD expression.
|
protected Object |
AbstractExpressionEvaluator.processMulExpression(Expression expr)
Method to process the supplied MUL expression.
|
protected Object |
AbstractExpressionEvaluator.processNegExpression(Expression expr)
Method to process the supplied NEG expression.
|
protected Object |
AbstractExpressionEvaluator.processNoteqExpression(Expression expr)
Method to process the supplied NOTEQ expression.
|
protected Object |
AbstractExpressionEvaluator.processNotExpression(Expression expr)
Method to process the supplied NOT expression.
|
protected Object |
AbstractExpressionEvaluator.processNotInExpression(Expression expr)
Method to process the supplied NOT IN expression.
|
protected Object |
AbstractExpressionEvaluator.processOrExpression(Expression expr)
Method to process the supplied OR expression.
|
protected Object |
AbstractExpressionEvaluator.processSubExpression(Expression expr)
Method to process the supplied SUB expression.
|
void |
CaseExpression.setElseExpression(Expression elseExpr) |
void |
Expression.setLeft(Expression expr) |
void |
JoinExpression.setOnExpression(Expression expr) |
void |
Expression.setRight(Expression expr) |
Constructor and Description |
---|
ArrayExpression(Expression[] elements) |
DyadicExpression(Expression.MonadicOperator op,
Expression operand)
Perform a function
op on operand |
DyadicExpression(Expression operand1,
Expression.DyadicOperator op,
Expression operand2)
Performs a function on two arguments.
|
Expression(Expression.MonadicOperator op,
Expression operand)
Perform a function
op on operand |
Expression(Expression operand1,
Expression.DyadicOperator op,
Expression operand2)
Performs a function on two arguments.
|
ExpressionPair(Expression when,
Expression action) |
InvokeExpression(Expression invoked,
String methodName,
List<Expression> args)
Constructor for an expression for the invocation of a method/function.
|
JoinExpression(Expression expr,
String alias,
JoinExpression.JoinType type) |
OrderExpression(Expression expr) |
OrderExpression(Expression expr,
String sortOrder)
Constructor.
|
OrderExpression(Expression expr,
String sortOrder,
String nullOrder)
Constructor.
|
PrimaryExpression(Expression left,
List<String> tuples)
PrimaryExpression on an expression.
|
TypeExpression(Expression containedExpr) |
Constructor and Description |
---|
CreatorExpression(List<String> tuples,
List<Expression> args) |
InvokeExpression(Expression invoked,
String methodName,
List<Expression> args)
Constructor for an expression for the invocation of a method/function.
|
Modifier and Type | Method and Description |
---|---|
Object |
SetExpression.avg(Expression paramExpr,
ExpressionEvaluator eval,
Map<String,Object> state) |
Object |
SetExpression.count(Expression expr,
ExpressionEvaluator eval) |
Object |
InMemoryExpressionEvaluator.getValueForExpression(Expression expr) |
Collection |
AbstractResultClassMapper.map(Collection inputResults,
Expression[] resultNames)
Method to map the input results to the required result class type.
|
Object |
SetExpression.max(Expression paramExpr,
ExpressionEvaluator eval,
Map<String,Object> state) |
Object |
SetExpression.min(Expression paramExpr,
ExpressionEvaluator eval,
Map<String,Object> state) |
protected Object |
InMemoryExpressionEvaluator.processAddExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processAndExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processBitAndExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processBitOrExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processBitXorExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processCastExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processComExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processDivExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processEqExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processGteqExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processGtExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processInExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processIsExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processIsnotExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processLikeExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processLteqExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processLtExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processModExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processMulExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processNegExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processNoteqExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processNotExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processNotInExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processOrExpression(Expression expr) |
protected Object |
InMemoryExpressionEvaluator.processSubExpression(Expression expr) |
Object |
SetExpression.sum(Expression paramExpr,
ExpressionEvaluator eval,
Map<String,Object> state) |
Modifier and Type | Method and Description |
---|---|
protected Object |
NullIfFunction.getValueForArgExpression(Expression argExpr,
InMemoryExpressionEvaluator eval) |
protected Object |
CoalesceFunction.getValueForArgExpression(Expression argExpr,
InMemoryExpressionEvaluator eval) |
Copyright © 2019. All rights reserved.