Uses of Class
org.datanucleus.store.query.expression.Expression
Packages that use Expression
Package
Description
Package providing query language support for datastores.
Package handling the (generic) compilation of queries.
Package providing expressions from which a (generically) compiled query is made up.
Package providing the evaluation of queries using an in-memory process with evaluators for JDOQL and JPQL.
Package providing the evaluation of Java methods/functions for use by JDOQL/JPQL in-memory query evaluators.
-
Uses of Expression in org.datanucleus.store.query
Methods in org.datanucleus.store.query with parameters of type ExpressionModifier and TypeMethodDescriptionstatic 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 atstatic 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. -
Uses of Expression in org.datanucleus.store.query.compiler
Fields in org.datanucleus.store.query.compiler declared as ExpressionModifier and TypeFieldDescriptionprotected Expression
QueryCompilation.exprFilter
Compiled filter expressionprotected 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.Methods in org.datanucleus.store.query.compiler that return ExpressionModifier and TypeMethodDescriptionJavaQueryCompiler.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).JavaQueryCompiler.compileGrouping()
JavaQueryCompiler.compileHaving()
JavaQueryCompiler.compileOrdering()
JavaQueryCompiler.compileResult()
JavaQueryCompiler.compileUpdate()
JDOQLCompiler.compileUpdate()
QueryCompilation.getExprFilter()
Accessor for the filter expression.QueryCompilation.getExprFrom()
Accessor for any from expression(s).QueryCompilation.getExprGrouping()
Accessor for any grouping expression(s).QueryCompilation.getExprHaving()
Accessor for any having expression.QueryCompilation.getExprOrdering()
Accessor for any ordering expression(s).QueryCompilation.getExprResult()
Accessor for any result expression(s).QueryCompilation.getExprUpdate()
Accessor for any update expression(s).private Expression
VarThisCompilationOptimiser.replaceVariableWithCandidateInExpression
(String varName, Expression expr) Method that replaces any occurrence of the specified variable in the provided expression with the candidate primary expression.Methods in org.datanucleus.store.query.compiler with parameters of type ExpressionModifier and TypeMethodDescriptionprivate static boolean
JDOQLCompiler.containsOnlyGroupingOrAggregates
(Expression expr, Expression[] exprGrouping) Convenience method to check the provided expression for whether it contains only grouping expressions or aggregatesprivate void
VarThisCompilationOptimiser.findRedundantFilterVariables
(Expression filterExpr, Set<String> varNames) Method to process the provided filter expression and find any variables that are to all intents and purposes redundant.private static boolean
JDOQLCompiler.isExpressionGroupingOrAggregate
(Expression expr, Expression[] exprGrouping) Convenience method to check of the provided expression is either an aggregate expression or is a grouping expression (or literal, parameter, or variable).private void
NavigationNullCompilationOptimiser.processPrimaryExpressionNavigationNullCheck
(Expression expr) private Expression
VarThisCompilationOptimiser.replaceVariableWithCandidateInExpression
(String varName, Expression expr) Method that replaces any occurrence of the specified variable in the provided expression with the candidate primary expression.void
QueryCompilation.setExprFilter
(Expression filter) void
QueryCompilation.setExprHaving
(Expression having) Constructors in org.datanucleus.store.query.compiler with parameters of type ExpressionModifierConstructorDescriptionQueryCompilation
(Class candidateCls, String candidateAlias, SymbolTable symtbl, Expression[] results, Expression[] froms, Expression filter, Expression[] groupings, Expression having, Expression[] orderings, Expression[] updates) -
Uses of Expression in org.datanucleus.store.query.expression
Subclasses of Expression in org.datanucleus.store.query.expressionModifier and TypeClassDescriptionclass
Expression representing an input array of expressions (or at least some of the array is of expressions).class
Expression representing a case series of when expressions and their action expressions.class
Expression representing a candidate in a FROM clause.class
Expression representing something like "new X.Y.Z([param1[,param2[,param3]]])".class
Expression between two other expressions and an operation.class
Expression representing invocation of a method.class
Expression representing a join between a candidate class, and the class of a field of the first class.class
Literal of some type (String, Double, Long, BigDecimal, etc).class
Expression as part of an ordering clause.class
Expression representing a parameter.class
Expression for a primary object.class
Expression containing a subquery.class
Expression representing a the type of the contained expression.class
Expression representing a variable.Fields in org.datanucleus.store.query.expression declared as ExpressionModifier and TypeFieldDescription(package private) Expression
CaseExpression.ExpressionPair.actionExpr
(package private) Expression
TypeExpression.containedExpression
(package private) Expression
CaseExpression.elseExpr
(package private) Expression
JoinExpression.joinedExpr
protected Expression
Expression.left
(package private) Expression
JoinExpression.onExpr
protected Expression
Expression.parent
Parent of this expression in the tree (if any).protected Expression
Expression.right
(package private) Expression
CaseExpression.ExpressionPair.whenExpr
Fields in org.datanucleus.store.query.expression with type parameters of type ExpressionModifier and TypeFieldDescription(package private) List
<Expression> CreatorExpression.arguments
Arguments for the creation call.(package private) List
<Expression> InvokeExpression.arguments
Arguments for the method invocation.(package private) List
<Expression> ArrayExpression.elements
Elements of the array.Methods in org.datanucleus.store.query.expression that return ExpressionModifier and TypeMethodDescriptionprivate Expression
ExpressionCompiler.compileAdditiveMultiplicativeExpression
(Node node) ExpressionCompiler.compileExpression
(Node node) Primary entry point for compiling a node for the filter, grouping, having, result clauses.ExpressionCompiler.compileFromExpression
(Node node, boolean classIsExpression) Primary entry point for compiling a node for the from clause.private Expression
ExpressionCompiler.compileOrAndExpression
(Node node) This method deals with the OR/AND conditions.ExpressionCompiler.compileOrderExpression
(Node node) Primary entry point for compiling a node for the order clause.private Expression
ExpressionCompiler.compilePrimaryExpression
(Node node) private Expression
ExpressionCompiler.compileRelationalExpression
(Node node) private Expression
ExpressionCompiler.compileUnaryExpression
(Node node) CaseExpression.ExpressionPair.getActionExpression()
TypeExpression.getContainedExpression()
ArrayExpression.getElement
(int index) Accessor for an element of the array.CaseExpression.getElseExpression()
JoinExpression.getJoinedExpression()
Expression.getLeft()
Accessor for the left hand expression.JoinExpression.getOnExpression()
Expression.getParent()
Accessor for the parent expression where this expression is access from.Expression.getRight()
Accessor for the right hand expression.CaseExpression.ExpressionPair.getWhenExpression()
Methods in org.datanucleus.store.query.expression that return types with arguments of type ExpressionModifier and TypeMethodDescriptionCreatorExpression.getArguments()
Accessor for the arguments to use in the creation call.InvokeExpression.getArguments()
Accessor for any arguments to be passed in the invocation.private List
<Expression> ExpressionCompiler.getExpressionsForPropertiesOfNode
(Node node) Convenience method to extract properties for this node and return the associated list of expressions.Methods in org.datanucleus.store.query.expression with parameters of type ExpressionModifier and TypeMethodDescriptionvoid
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) AbstractExpressionEvaluator.evaluate
(Expression expr) Method to "evaluate" the expression.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) Constructors in org.datanucleus.store.query.expression with parameters of type ExpressionModifierConstructorDescriptionArrayExpression
(Expression[] elements) DyadicExpression
(Expression.MonadicOperator op, Expression operand) Perform a functionop
onoperand
DyadicExpression
(Expression operand1, Expression.DyadicOperator op, Expression operand2) Performs a function on two arguments.protected
Expression
(Expression.MonadicOperator op, Expression operand) Perform a functionop
onoperand
protected
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 parameters in org.datanucleus.store.query.expression with type arguments of type ExpressionModifierConstructorDescriptionInvokeExpression
(Expression invoked, String methodName, List<Expression> args) Constructor for an expression for the invocation of a method/function. -
Uses of Expression in org.datanucleus.store.query.inmemory
Methods in org.datanucleus.store.query.inmemory with parameters of type ExpressionModifier and TypeMethodDescriptionSetExpression.avg
(Expression paramExpr, ExpressionEvaluator eval, Map<String, Object> state) SetExpression.count
(Expression expr, ExpressionEvaluator eval) private Boolean
JavaQueryInMemoryEvaluator.evaluateBooleanExpression
(Expression expr, InMemoryExpressionEvaluator eval) Convenience method to evaluate the provided expression returning a boolean.InMemoryExpressionEvaluator.getValueForExpression
(Expression expr) AbstractResultClassMapper.map
(Collection inputResults, Expression[] resultNames) Method to map the input results to the required result class type.SetExpression.max
(Expression paramExpr, ExpressionEvaluator eval, Map<String, Object> state) 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) SetExpression.sum
(Expression paramExpr, ExpressionEvaluator eval, Map<String, Object> state) -
Uses of Expression in org.datanucleus.store.query.inmemory.method
Methods in org.datanucleus.store.query.inmemory.method with parameters of type ExpressionModifier and TypeMethodDescriptionprotected Object
CoalesceFunction.getValueForArgExpression
(Expression argExpr, InMemoryExpressionEvaluator eval) protected Object
NullIfFunction.getValueForArgExpression
(Expression argExpr, InMemoryExpressionEvaluator eval) protected Object
PowerFunction.getValueForArgExpression
(Expression argExpr, InMemoryExpressionEvaluator eval) protected Object
RoundFunction.getValueForArgExpression
(Expression argExpr, InMemoryExpressionEvaluator eval)