Uses of Class
org.apache.cayenne.exp.Expression
Packages that use Expression
Package
Description
Cayenne data expression classes.
Contains expression parser and other expression internals.
Property API
Contains O/R mapping classes that store relational database
metadata information and map it to Java classes.
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
-
Uses of Expression in org.apache.cayenne.access.translator.select
Methods in org.apache.cayenne.access.translator.select that return ExpressionModifier and TypeMethodDescriptionFluentSelectWrapper.getHavingQualifier()
TranslatableQueryWrapper.getHavingQualifier()
FluentSelectWrapper.getQualifier()
TranslatableQueryWrapper.getQualifier()
-
Uses of Expression in org.apache.cayenne.exp
Methods in org.apache.cayenne.exp that return ExpressionModifier and TypeMethodDescriptionstatic Expression
static Expression
FunctionExpressionFactory.absExp
(Expression exp) static Expression
ExpressionFactory.all
(ColumnSelect<?> subquery) static Expression
ExpressionFactory.and
(Collection<Expression> expressions) static Expression
ExpressionFactory.and
(Expression... expressions) Expression.andExp
(Expression exp) Chains this expression with another expression using "and".Expression.andExp
(Expression exp, Expression... expressions) Chains this expression with other expressions using "and".static Expression
ExpressionFactory.any
(ColumnSelect<?> subquery) static Expression
FunctionExpressionFactory.avgExp
(Expression exp) static Expression
ExpressionFactory.betweenDbExp
(String pathSpec, Object value1, Object value2) A convenience shortcut for building BETWEEN expressions.static Expression
ExpressionFactory.betweenExp
(String pathSpec, Object value1, Object value2) A convenience shortcut for building BETWEEN expressions.static Expression
ExpressionFactory.betweenExp
(Expression exp, Object value1, Object value2) static Expression
ExpressionFactory.caseWhen
(List<Expression> whenExp, List<Expression> thenExp) static Expression
ExpressionFactory.caseWhen
(List<Expression> whenExp, List<Expression> thenExp, Expression caseDefault) static Expression
Factory method for expression to call CONCAT(string1, string2, ...) functionstatic Expression
FunctionExpressionFactory.concatExp
(Expression... expressions) Factory method for expression to call CONCAT(string1, string2, ...) functionstatic Expression
ExpressionFactory.containsExp
(String pathSpec, String value) static Expression
ExpressionFactory.containsExp
(Expression exp, String value) static Expression
ExpressionFactory.containsIgnoreCaseExp
(String pathSpec, String value) Same asExpressionFactory.containsExp(String, String)
only using case-insensitive comparison.static Expression
ExpressionFactory.containsIgnoreCaseExp
(Expression exp, String value) static Expression
FunctionExpressionFactory.countDistinctExp
(Expression exp) static Expression
FunctionExpressionFactory.countExp()
static Expression
FunctionExpressionFactory.countExp
(Expression exp) static Expression
FunctionExpressionFactory.currentDate()
static Expression
FunctionExpressionFactory.currentTime()
static Expression
FunctionExpressionFactory.currentTimestamp()
static Expression
FunctionExpressionFactory.customAggregateExp
(String function, Expression exp) static Expression
FunctionExpressionFactory.dayOfMonthExp
(String path) static Expression
FunctionExpressionFactory.dayOfMonthExp
(Expression exp) static Expression
FunctionExpressionFactory.dayOfWeekExp
(String path) static Expression
FunctionExpressionFactory.dayOfWeekExp
(Expression exp) static Expression
FunctionExpressionFactory.dayOfYearExp
(String path) static Expression
FunctionExpressionFactory.dayOfYearExp
(Expression exp) static Expression
ExpressionFactory.dbIdPathExp
(String pathSpec) static Expression
ExpressionFactory.dbIdPathExp
(CayennePath pathSpec) static Expression
static Expression
ExpressionFactory.dbPathExp
(CayennePath path) Expression.deepCopy()
Clones this expression.static Expression
ExpressionFactory.enclosingObjectExp
(Expression exp) static Expression
ExpressionFactory.endsWithExp
(String pathSpec, String value) static Expression
ExpressionFactory.endsWithExp
(Expression exp, String value) static Expression
ExpressionFactory.endsWithIgnoreCaseExp
(String pathSpec, String value) Same asExpressionFactory.endsWithExp(String, String)
only using case-insensitive comparison.static Expression
ExpressionFactory.endsWithIgnoreCaseExp
(Expression exp, String value) abstract Expression
Expression.exists()
Returns expression that will be dynamically resolved to proper subqueries based on a relationships used (if no relationships are present in the original expression no subqueries will be used).static Expression
ExpressionFactory.exists
(Expression exp) Builds expression representing EXIST subquery over a given pathstatic Expression
ExpressionFactory.exists
(FluentSelect<?, ?> subQuery) static Expression
Parses string, converting it to Expression and optionally binding positional parameters.static Expression
ExpressionFactory.expFalse()
A convenience shortcut for boolean false expression.static Expression
ExpressionFactory.expressionOfType
(int type) Creates a new expression for the type requested.static Expression
ExpressionFactory.expTrue()
A convenience shortcut for boolean true expression.static Expression
ExpressionFactory.fullObjectExp()
static Expression
ExpressionFactory.fullObjectExp
(Expression exp) static Expression
FunctionExpressionFactory.functionCall
(String function, Object... args) static Expression
ExpressionFactory.greaterDbExp
(String pathSpec, Object value) A convenience method to create an DB_PATH "greater than" expression.static Expression
ExpressionFactory.greaterExp
(String pathSpec, Object value) A convenience method to create an OBJ_PATH "greater than" expression.static Expression
ExpressionFactory.greaterExp
(Expression exp, Object value) static Expression
ExpressionFactory.greaterOrEqualDbExp
(String pathSpec, Object value) A convenience method to create an DB_PATH "greater than or equal to" expression.static Expression
ExpressionFactory.greaterOrEqualExp
(String pathSpec, Object value) A convenience method to create an OBJ_PATH "greater than or equal to" expression.static Expression
ExpressionFactory.greaterOrEqualExp
(Expression exp, Object value) static Expression
static Expression
FunctionExpressionFactory.hourExp
(Expression exp) static Expression
A convenience shortcut for building IN DB expression.static Expression
ExpressionFactory.inDbExp
(String pathSpec, Collection<?> values) A convenience shortcut for building IN DB expression.static Expression
A convenience shortcut for building IN DBID expression.static Expression
ExpressionFactory.inDbIdExp
(String pathSpec, Collection<?> values) A convenience shortcut for building IN DBID expression.static Expression
A convenience shortcut for building IN expression.static Expression
ExpressionFactory.inExp
(String pathSpec, Collection<?> values) A convenience shortcut for building IN expression.static Expression
ExpressionFactory.inExp
(Expression exp, Object... values) static Expression
ExpressionFactory.inExp
(Expression exp, Collection<?> values) static Expression
ExpressionFactory.inExp
(Expression exp, ColumnSelect<?> subQuery) Expression.joinExp
(int type, Expression exp) Creates a new expression that joins this object with another expression, using specified join type.Expression.joinExp
(int type, Expression exp, Expression... expressions) Creates a new expression that joins this object with other expressions, using specified join type.static Expression
ExpressionFactory.joinExp
(int type, Collection<Expression> expressions) Joins all expressions, making a single expression.static Expression
ExpressionFactory.joinExp
(int type, Expression... expressions) Joins all expressions, making a single expression.static Expression
static Expression
FunctionExpressionFactory.lengthExp
(Expression exp) static Expression
A convenience method to create an DB_PATH "less than" expression.static Expression
A convenience method to create an OBJ_PATH "less than" expression.static Expression
ExpressionFactory.lessExp
(Expression exp, Object value) static Expression
ExpressionFactory.lessOrEqualDbExp
(String pathSpec, Object value) A convenience method to create an DB_PATH "less than or equal to" expression.static Expression
ExpressionFactory.lessOrEqualExp
(String pathSpec, Object value) A convenience method to create an OBJ_PATH "less than or equal to" expression.static Expression
ExpressionFactory.lessOrEqualExp
(Expression exp, Object value) static Expression
A convenience shortcut for building LIKE DB_PATH expression.static Expression
A convenience shortcut for building LIKE DB_PATH expression.static Expression
A convenience shortcut for building LIKE expression.static Expression
A convenience shortcut for building LIKE expression.static Expression
ExpressionFactory.likeExp
(Expression exp, Object value) static Expression
ExpressionFactory.likeExp
(Expression exp, Object value, char escapeChar) static Expression
ExpressionFactory.likeIgnoreCaseDbExp
(String pathSpec, Object value) A convenience shortcut for building LIKE_IGNORE_CASE expression.static Expression
ExpressionFactory.likeIgnoreCaseDbExp
(String pathSpec, Object value, char escapeChar) A convenience shortcut for building LIKE_IGNORE_CASE expression.static Expression
ExpressionFactory.likeIgnoreCaseExp
(String pathSpec, Object value) A convenience shortcut for building LIKE_IGNORE_CASE expression.static Expression
ExpressionFactory.likeIgnoreCaseExp
(String pathSpec, Object value, char escapeChar) A convenience shortcut for building LIKE_IGNORE_CASE expression.static Expression
ExpressionFactory.likeIgnoreCaseExp
(Expression exp, Object value) static Expression
Call LOCATE(substring, string) function that return position of substring in string or 0 if it is not found.static Expression
FunctionExpressionFactory.locateExp
(String substring, Expression exp) Call LOCATE(substring, string) function that return position of substring in string or 0 if it is not found.static Expression
FunctionExpressionFactory.locateExp
(Expression substring, Expression exp) Call LOCATE(substring, string) function that return position of substring in string or 0 if it is not found.static Expression
static Expression
FunctionExpressionFactory.lowerExp
(Expression exp) static Expression
ExpressionFactory.matchAllDbExp
(Map<String, ?> map, int pairType) Creates an expression that matches all key-values pairs inmap
.static Expression
ExpressionFactory.matchAllExp
(String path, Object... values) static Expression
ExpressionFactory.matchAllExp
(String path, Collection<?> values) Creates an expression to match a collection of values against a single path expression.static Expression
ExpressionFactory.matchAllExp
(Map<String, ?> map, int pairType) Creates an expression that matches all key-values pairs inmap
.static Expression
ExpressionFactory.matchAnyDbExp
(Map<String, ?> map, int pairType) Creates an expression that matches any of the key-values pairs inmap
.static Expression
ExpressionFactory.matchAnyExp
(List<? extends Persistent> objects) Creates an expression that matches any of the objects contained in the listobjects
static Expression
ExpressionFactory.matchAnyExp
(Map<String, ?> map, int pairType) Creates an expression that matches any of the key-values pairs in themap
.static Expression
ExpressionFactory.matchAnyExp
(Persistent... objects) Creates an expression that matches any of the objects contained in theobjects
arraystatic Expression
ExpressionFactory.matchDbExp
(String pathSpec, Object value) A convenience method to create an DB_PATH "equal to" expression.static Expression
ExpressionFactory.matchDbIdExp
(String pathSpec, Object value) A convenience method to create an DBID_PATH "equal to" expression.static Expression
A convenience method to create an OBJ_PATH "equal to" expression.static Expression
ExpressionFactory.matchExp
(Expression exp, Object value) static Expression
ExpressionFactory.matchExp
(Persistent object) Creates an expression that matches the primary key of object inObjectId
'sIdSnapshot
for the argumentobject
.static Expression
FunctionExpressionFactory.maxExp
(Expression exp) static Expression
FunctionExpressionFactory.minExp
(Expression exp) static Expression
static Expression
FunctionExpressionFactory.minuteExp
(Expression exp) static Expression
static Expression
FunctionExpressionFactory.modExp
(Expression exp, Number number) static Expression
FunctionExpressionFactory.modExp
(Expression exp, Expression number) static Expression
static Expression
FunctionExpressionFactory.monthExp
(Expression exp) static Expression
ExpressionFactory.noMatchDbExp
(String pathSpec, Object value) A convenience method to create an DB_PATH "not equal to" expression.static Expression
ExpressionFactory.noMatchDbIdExp
(String pathSpec, Object value) A convenience method to create an DBID_PATH "not equal to" expression.static Expression
ExpressionFactory.noMatchExp
(String pathSpec, Object value) A convenience method to create an OBJ_PATH "not equal to" expression.static Expression
ExpressionFactory.noMatchExp
(Expression exp, Object value) static Expression
ExpressionFactory.notBetweenDbExp
(String pathSpec, Object value1, Object value2) A convenience shortcut for building NOT_BETWEEN expressions.static Expression
ExpressionFactory.notBetweenExp
(String pathSpec, Object value1, Object value2) A convenience shortcut for building NOT_BETWEEN expressions.static Expression
ExpressionFactory.notBetweenExp
(Expression exp, Object value1, Object value2) abstract Expression
Expression.notExists()
Returns expression that will be dynamically resolved to proper subqueries based on a relationships used (if no relationships are present in the original expression no subqueries will be used).static Expression
ExpressionFactory.notExists
(Expression exp) Builds expression representing NOT EXIST subquery over a given pathstatic Expression
ExpressionFactory.notExists
(FluentSelect<?, ?> subQuery) abstract Expression
Expression.notExp()
Returns a logical NOT of current expression.static Expression
ExpressionFactory.notInDbExp
(String pathSpec, Object... values) A convenience shortcut for building NOT_IN expression.static Expression
ExpressionFactory.notInDbExp
(String pathSpec, Collection<?> values) A convenience shortcut for building NOT_IN expression.static Expression
ExpressionFactory.notInDbIdExp
(String pathSpec, Object... values) A convenience shortcut for building NOT_IN expression.static Expression
ExpressionFactory.notInDbIdExp
(String pathSpec, Collection<?> values) A convenience shortcut for building NOT_IN expression.static Expression
A convenience shortcut for building NOT_IN expression.static Expression
ExpressionFactory.notInExp
(String pathSpec, Collection<?> values) A convenience shortcut for building NOT_IN expression.static Expression
ExpressionFactory.notInExp
(Expression exp, Object... values) static Expression
ExpressionFactory.notInExp
(Expression exp, Collection<?> values) static Expression
ExpressionFactory.notInExp
(Expression exp, ColumnSelect<?> subQuery) static Expression
ExpressionFactory.notLikeDbExp
(String pathSpec, Object value) A convenience shortcut for building NOT_LIKE expression.static Expression
ExpressionFactory.notLikeDbExp
(String pathSpec, Object value, char escapeChar) A convenience shortcut for building NOT_LIKE expression.static Expression
ExpressionFactory.notLikeExp
(String pathSpec, Object value) A convenience shortcut for building NOT_LIKE expression.static Expression
ExpressionFactory.notLikeExp
(String pathSpec, Object value, char escapeChar) A convenience shortcut for building NOT_LIKE expression.static Expression
ExpressionFactory.notLikeExp
(Expression exp, Object value) static Expression
ExpressionFactory.notLikeExp
(Expression exp, Object value, char escapeChar) static Expression
ExpressionFactory.notLikeIgnoreCaseDbExp
(String pathSpec, Object value) A convenience shortcut for building NOT_LIKE_IGNORE_CASE expression.static Expression
ExpressionFactory.notLikeIgnoreCaseDbExp
(String pathSpec, Object value, char escapeChar) A convenience shortcut for building NOT_LIKE_IGNORE_CASE expression.static Expression
ExpressionFactory.notLikeIgnoreCaseExp
(String pathSpec, Object value) A convenience shortcut for building NOT_LIKE_IGNORE_CASE expression.static Expression
ExpressionFactory.notLikeIgnoreCaseExp
(String pathSpec, Object value, char escapeChar) A convenience shortcut for building NOT_LIKE_IGNORE_CASE expression.static Expression
ExpressionFactory.notLikeIgnoreCaseExp
(Expression exp, Object value) static Expression
ExpressionFactory.notLikeIgnoreCaseExp
(Expression exp, Object value, char escapeChar) static Expression
static Expression
ExpressionFactory.or
(Collection<Expression> expressions) static Expression
ExpressionFactory.or
(Expression... expressions) Expression.orExp
(Expression exp) Chains this expression with another expression using "or".Expression.orExp
(Expression exp, Expression... expressions) Chains this expression with other expressions using "or".Creates and returns a new Expression instance based on this expression, but with named parameters substituted with provided values.Creates and returns a new Expression instance based on this expression, but with named parameters substituted with provided values.If any subexpressions containing parameters not matching the "name" argument are found, the behavior depends on "pruneMissing" argument.Expression.paramsArray
(Object... parameters) Creates and returns a new Expression instance based on this expression, but with parameters substituted with provided values.static Expression
static Expression
ExpressionFactory.pathExp
(CayennePath path) static Expression
static Expression
FunctionExpressionFactory.secondExp
(Expression exp) abstract Expression
Expression.shallowCopy()
Creates a copy of this expression node, without copying children.static Expression
static Expression
FunctionExpressionFactory.sqrtExp
(Expression exp) static Expression
ExpressionFactory.startsWithExp
(String pathSpec, String value) static Expression
ExpressionFactory.startsWithExp
(Expression exp, String value) static Expression
ExpressionFactory.startsWithIgnoreCaseExp
(String pathSpec, String value) Same asExpressionFactory.startsWithExp(String, String)
only using case-insensitive comparison.static Expression
ExpressionFactory.startsWithIgnoreCaseExp
(Expression exp, String value) static Expression
FunctionExpressionFactory.substringExp
(String path, int offset, int length) Call SUBSTRING(string, offset, length) functionstatic Expression
FunctionExpressionFactory.substringExp
(Expression exp, int offset, int length) Call SUBSTRING(string, offset, length) functionstatic Expression
FunctionExpressionFactory.substringExp
(Expression exp, Expression offset, Expression length) Call SUBSTRING(string, offset, length) functionstatic Expression
FunctionExpressionFactory.sumExp
(Expression exp) Creates a transformed copy of this expression, applying transformation provided by Transformer to all its nodes.static Expression
static Expression
FunctionExpressionFactory.trimExp
(Expression exp) static Expression
static Expression
FunctionExpressionFactory.upperExp
(Expression exp) static Expression
static Expression
FunctionExpressionFactory.weekExp
(Expression exp) static Expression
ExpressionFactory.wrapScalarValue
(Object value) Wrap value into ASTScalarstatic Expression
static Expression
FunctionExpressionFactory.yearExp
(Expression exp) Methods in org.apache.cayenne.exp with parameters of type ExpressionModifier and TypeMethodDescriptionstatic Expression
FunctionExpressionFactory.absExp
(Expression exp) static Expression
ExpressionFactory.and
(Expression... expressions) Expression.andExp
(Expression exp) Chains this expression with another expression using "and".Expression.andExp
(Expression exp, Expression... expressions) Chains this expression with other expressions using "and".static Expression
FunctionExpressionFactory.avgExp
(Expression exp) static Expression
ExpressionFactory.betweenExp
(Expression exp, Object value1, Object value2) static Expression
ExpressionFactory.caseWhen
(List<Expression> whenExp, List<Expression> thenExp, Expression caseDefault) static Expression
FunctionExpressionFactory.concatExp
(Expression... expressions) Factory method for expression to call CONCAT(string1, string2, ...) functionstatic Expression
ExpressionFactory.containsExp
(Expression exp, String value) static Expression
ExpressionFactory.containsIgnoreCaseExp
(Expression exp, String value) static Expression
FunctionExpressionFactory.countDistinctExp
(Expression exp) static Expression
FunctionExpressionFactory.countExp
(Expression exp) static Expression
FunctionExpressionFactory.customAggregateExp
(String function, Expression exp) static Expression
FunctionExpressionFactory.dayOfMonthExp
(Expression exp) static Expression
FunctionExpressionFactory.dayOfWeekExp
(Expression exp) static Expression
FunctionExpressionFactory.dayOfYearExp
(Expression exp) static Expression
ExpressionFactory.enclosingObjectExp
(Expression exp) default void
TraversalHandler.endNode
(Expression node, Expression parentNode) Called during the traversal after an expression node children processing is finished.static Expression
ExpressionFactory.endsWithExp
(Expression exp, String value) static Expression
ExpressionFactory.endsWithIgnoreCaseExp
(Expression exp, String value) static Expression
ExpressionFactory.exists
(Expression exp) Builds expression representing EXIST subquery over a given pathdefault void
TraversalHandler.finishedChild
(Expression node, int childIndex, boolean hasMoreChildren) Called during traversal after a child of expression has been visited.static Expression
ExpressionFactory.fullObjectExp
(Expression exp) static Expression
ExpressionFactory.greaterExp
(Expression exp, Object value) static Expression
ExpressionFactory.greaterOrEqualExp
(Expression exp, Object value) static Expression
FunctionExpressionFactory.hourExp
(Expression exp) static Expression
ExpressionFactory.inExp
(Expression exp, Object... values) static Expression
ExpressionFactory.inExp
(Expression exp, Collection<?> values) static Expression
ExpressionFactory.inExp
(Expression exp, ColumnSelect<?> subQuery) Expression.joinExp
(int type, Expression exp) Creates a new expression that joins this object with another expression, using specified join type.Expression.joinExp
(int type, Expression exp, Expression... expressions) Creates a new expression that joins this object with other expressions, using specified join type.static Expression
ExpressionFactory.joinExp
(int type, Expression... expressions) Joins all expressions, making a single expression.static Expression
FunctionExpressionFactory.lengthExp
(Expression exp) static Expression
ExpressionFactory.lessExp
(Expression exp, Object value) static Expression
ExpressionFactory.lessOrEqualExp
(Expression exp, Object value) static Expression
ExpressionFactory.likeExp
(Expression exp, Object value) static Expression
ExpressionFactory.likeExp
(Expression exp, Object value, char escapeChar) static Expression
ExpressionFactory.likeIgnoreCaseExp
(Expression exp, Object value) static Expression
FunctionExpressionFactory.locateExp
(String substring, Expression exp) Call LOCATE(substring, string) function that return position of substring in string or 0 if it is not found.static Expression
FunctionExpressionFactory.locateExp
(Expression substring, Expression exp) Call LOCATE(substring, string) function that return position of substring in string or 0 if it is not found.static Expression
FunctionExpressionFactory.lowerExp
(Expression exp) static Expression
ExpressionFactory.matchExp
(Expression exp, Object value) static Expression
FunctionExpressionFactory.maxExp
(Expression exp) static Expression
FunctionExpressionFactory.minExp
(Expression exp) static Expression
FunctionExpressionFactory.minuteExp
(Expression exp) static Expression
FunctionExpressionFactory.modExp
(Expression exp, Number number) static Expression
FunctionExpressionFactory.modExp
(Expression exp, Expression number) static Expression
FunctionExpressionFactory.monthExp
(Expression exp) static Expression
ExpressionFactory.noMatchExp
(Expression exp, Object value) static Expression
ExpressionFactory.notBetweenExp
(Expression exp, Object value1, Object value2) static Expression
ExpressionFactory.notExists
(Expression exp) Builds expression representing NOT EXIST subquery over a given pathstatic Expression
ExpressionFactory.notInExp
(Expression exp, Object... values) static Expression
ExpressionFactory.notInExp
(Expression exp, Collection<?> values) static Expression
ExpressionFactory.notInExp
(Expression exp, ColumnSelect<?> subQuery) static Expression
ExpressionFactory.notLikeExp
(Expression exp, Object value) static Expression
ExpressionFactory.notLikeExp
(Expression exp, Object value, char escapeChar) static Expression
ExpressionFactory.notLikeIgnoreCaseExp
(Expression exp, Object value) static Expression
ExpressionFactory.notLikeIgnoreCaseExp
(Expression exp, Object value, char escapeChar) default void
TraversalHandler.objectNode
(Object leaf, Expression parentNode) Called during the traversal when a leaf non-expression node is encountered.static Expression
ExpressionFactory.or
(Expression... expressions) Expression.orExp
(Expression exp) Chains this expression with another expression using "or".Expression.orExp
(Expression exp, Expression... expressions) Chains this expression with other expressions using "or".static Expression
FunctionExpressionFactory.secondExp
(Expression exp) static Expression
FunctionExpressionFactory.sqrtExp
(Expression exp) default void
TraversalHandler.startNode
(Expression node, Expression parentNode) Called during the traversal before an expression node children processing is started.static Expression
ExpressionFactory.startsWithExp
(Expression exp, String value) static Expression
ExpressionFactory.startsWithIgnoreCaseExp
(Expression exp, String value) static Expression
FunctionExpressionFactory.substringExp
(Expression exp, int offset, int length) Call SUBSTRING(string, offset, length) functionstatic Expression
FunctionExpressionFactory.substringExp
(Expression exp, Expression offset, Expression length) Call SUBSTRING(string, offset, length) functionstatic Expression
FunctionExpressionFactory.sumExp
(Expression exp) protected void
Expression.traverse
(Expression parentExp, TraversalHandler visitor) Traverses itself and child expressions, notifying visitor via callback methods as it goes.static Expression
FunctionExpressionFactory.trimExp
(Expression exp) static Expression
FunctionExpressionFactory.upperExp
(Expression exp) static Expression
FunctionExpressionFactory.weekExp
(Expression exp) static Expression
FunctionExpressionFactory.yearExp
(Expression exp) Method parameters in org.apache.cayenne.exp with type arguments of type ExpressionModifier and TypeMethodDescriptionstatic Expression
ExpressionFactory.and
(Collection<Expression> expressions) static Expression
ExpressionFactory.caseWhen
(List<Expression> whenExp, List<Expression> thenExp) static Expression
ExpressionFactory.caseWhen
(List<Expression> whenExp, List<Expression> thenExp, Expression caseDefault) static Expression
ExpressionFactory.joinExp
(int type, Collection<Expression> expressions) Joins all expressions, making a single expression.static Expression
ExpressionFactory.or
(Collection<Expression> expressions) -
Uses of Expression in org.apache.cayenne.exp.parser
Subclasses of Expression in org.apache.cayenne.exp.parserModifier and TypeClassDescriptionclass
Superclass of aggregated conditional nodes such as NOT, AND, OR.class
class
"Add" Expression.class
Base class for all aggregation functions expressions It's more like marker interface for now.class
class
"And" expression.class
class
Asterisk operator for COUNT(*) expression.class
class
"Between" expression.class
Bitwise conjunction (AND or '&') expressionclass
Bitwise left shift '<<' operation.class
Bitwise negation (NOT i.e.class
Bitwise disjunction (OR or '|') expression.class
Bitwise right shift '>>' operation.class
Bitwise exclusive disjunction (XOR or '^') operation.class
"CASE-WHEN" expression root node.class
class
class
class
class
class
Class for custom aggregation functions expressions.class
class
class
class
Path expression traversing DB relationships and attributes.class
class
"Divide" expression.class
"ELSE" part of the case-when expression.class
class
Scalar node that represents constant enumeration value.class
"Equal To" expression.class
class
class
Boolean false expression element Notice that there is one ASTTrue and one ASTFalse instead of a ASTBoolean with a Boolean value.class
class
class
"Greater Than" expression.class
"Greater Than Or Equal To" expression.class
"In" expression.class
class
"Less Then" expression.class
"Less than or equal to" expression.class
"Like" expression.class
"Case insensitive like" expression.class
A leaf expression representing an immutable collection of values.class
class
class
class
class
class
"Multiply" expression.class
A named expression parameter.class
"Negate" expression.class
"Not" expression.class
"Not Between" expression.class
"Not equal to" expression.class
class
"Not In" expression.class
"Not Like" expression.class
"Not like, ignore case" expression.class
class
"Or" expression.class
Generic path expression.class
A scalar value wrapper expression.class
class
class
class
"Subtract" expression.class
class
"THEN" part of the case-when expression.class
class
Boolean true expression element Notice that there is one ASTTrue and one ASTFalse instead of a ASTBoolean with a Boolean value.class
class
"WHEN" part of the case-when expression.class
Superclass of conditional expressions.class
class
class
class
Superclass of pattern matching nodes.class
Superclass of AST* expressions that implements Node interface defined by JavaCC framework.Methods in org.apache.cayenne.exp.parser that return ExpressionModifier and TypeMethodDescriptionAggregateConditionNode.exists()
ASTAll.exists()
ASTAny.exists()
ASTExists.exists()
ASTNotExists.exists()
ASTPath.exists()
ConditionNode.exists()
Returns expression that will be dynamically resolved to proper subqueries based on a relationships used (if no relationships are present in the original expression no subqueries will be used).SimpleNode.exists()
final Expression
ExpressionParser.expression()
AggregateConditionNode.notExists()
ASTAll.notExists()
ASTAny.notExists()
ASTExists.notExists()
ASTNotExists.notExists()
ASTPath.notExists()
ConditionNode.notExists()
Returns expression that will be dynamically resolved to proper subqueries based on a relationships used (if no relationships are present in the original expression no subqueries will be used).SimpleNode.notExists()
SimpleNode.notExp()
ASTAbs.shallowCopy()
ASTAdd.shallowCopy()
Creates a copy of this expression node, without copying children.ASTAll.shallowCopy()
ASTAnd.shallowCopy()
Creates a copy of this expression node, without copying children.ASTAny.shallowCopy()
ASTAsterisk.shallowCopy()
ASTAvg.shallowCopy()
ASTBetween.shallowCopy()
Creates a copy of this expression node, without copying children.ASTBitwiseAnd.shallowCopy()
ASTBitwiseLeftShift.shallowCopy()
ASTBitwiseNot.shallowCopy()
ASTBitwiseOr.shallowCopy()
ASTBitwiseRightShift.shallowCopy()
ASTBitwiseXor.shallowCopy()
ASTCaseWhen.shallowCopy()
Creates a copy of this expression node, without copying children.ASTConcat.shallowCopy()
ASTCount.shallowCopy()
ASTCurrentDate.shallowCopy()
ASTCurrentTime.shallowCopy()
ASTCurrentTimestamp.shallowCopy()
ASTCustomAggregate.shallowCopy()
ASTCustomFunction.shallowCopy()
ASTCustomOperator.shallowCopy()
ASTDbIdPath.shallowCopy()
Creates a copy of this expression node, without copying children.ASTDbPath.shallowCopy()
Creates a copy of this expression node, without copying children.ASTDistinct.shallowCopy()
ASTDivide.shallowCopy()
Creates a copy of this expression node, without copying children.ASTElse.shallowCopy()
ASTEnclosingObject.shallowCopy()
ASTEnum.shallowCopy()
ASTEqual.shallowCopy()
Creates a copy of this expression node, without copying children.ASTExists.shallowCopy()
ASTExtract.shallowCopy()
ASTFalse.shallowCopy()
ASTFullObject.shallowCopy()
ASTGreater.shallowCopy()
Creates a copy of this expression node, without copying children.ASTGreaterOrEqual.shallowCopy()
Creates a copy of this expression node, without copying children.ASTIn.shallowCopy()
Creates a copy of this expression node, without copying children.ASTLength.shallowCopy()
ASTLess.shallowCopy()
Creates a copy of this expression node, without copying children.ASTLessOrEqual.shallowCopy()
Creates a copy of this expression node, without copying children.ASTLike.shallowCopy()
Creates a copy of this expression node, without copying children.ASTLikeIgnoreCase.shallowCopy()
Creates a copy of this expression node, without copying children.ASTList.shallowCopy()
Creates a copy of this expression node, without copying children.ASTLocate.shallowCopy()
ASTLower.shallowCopy()
ASTMax.shallowCopy()
ASTMin.shallowCopy()
ASTMod.shallowCopy()
ASTMultiply.shallowCopy()
Creates a copy of this expression node, without copying children.ASTNamedParameter.shallowCopy()
Creates a copy of this expression node, without copying children.ASTNegate.shallowCopy()
Creates a copy of this expression node, without copying children.ASTNot.shallowCopy()
Creates a copy of this expression node, without copying children.ASTNotBetween.shallowCopy()
Creates a copy of this expression node, without copying children.ASTNotEqual.shallowCopy()
Creates a copy of this expression node, without copying children.ASTNotExists.shallowCopy()
ASTNotIn.shallowCopy()
Creates a copy of this expression node, without copying children.ASTNotLike.shallowCopy()
Creates a copy of this expression node, without copying children.ASTNotLikeIgnoreCase.shallowCopy()
Creates a copy of this expression node, without copying children.ASTObjPath.shallowCopy()
Creates a copy of this expression node, without copying children.ASTOr.shallowCopy()
Creates a copy of this expression node, without copying children.ASTScalar.shallowCopy()
Creates a copy of this expression node, without copying children.ASTSqrt.shallowCopy()
ASTSubquery.shallowCopy()
ASTSubstring.shallowCopy()
ASTSubtract.shallowCopy()
Creates a copy of this expression node, without copying children.ASTSum.shallowCopy()
ASTThen.shallowCopy()
Creates a copy of this expression node, without copying children.ASTTrim.shallowCopy()
ASTTrue.shallowCopy()
ASTUpper.shallowCopy()
ASTWhen.shallowCopy()
Constructors in org.apache.cayenne.exp.parser with parameters of type ExpressionModifierConstructorDescriptionASTAbs
(Expression expression) ASTAvg
(Expression expression) ASTCaseWhen
(boolean hasDefault, Expression... nodes) ASTConcat
(Expression... expressions) ASTCount
(Expression expression) ASTCustomAggregate
(String functionName, Expression... expressions) Creates a new aggregate function expression with provided name.ASTDistinct
(Expression expression) ASTEnclosingObject
(Expression expression) ASTExists
(Expression expression) ASTExtract
(Expression expression) ASTFullObject
(Expression expression) ASTLength
(Expression expression) ASTLocate
(Expression substring, Expression path) ASTLocate
(Expression substring, Expression path, Expression offset) ASTLower
(Expression expression) ASTMax
(Expression expression) ASTMin
(Expression expression) ASTMod
(Expression expression, Expression divisor) ASTNotExists
(Expression expression) ASTSqrt
(Expression expression) ASTSubstring
(Expression path, Expression length, Expression offset) ASTSum
(Expression expression) ASTTrim
(Expression path) ASTUpper
(Expression expression) ASTWhen
(Expression condition) -
Uses of Expression in org.apache.cayenne.exp.property
Fields in org.apache.cayenne.exp.property with type parameters of type ExpressionModifier and TypeFieldDescriptionprotected final Supplier
<Expression> BaseProperty.expressionSupplier
Expression provider for the propertyMethods in org.apache.cayenne.exp.property that return ExpressionModifier and TypeMethodDescriptiondefault Expression
default Expression
ComparableProperty.between
(ComparableProperty<?> lower, ComparableProperty<?> upper) CollectionProperty.contains
(Collection<V> values) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofCollectionProperty.containsValue(V)
Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofCollectionProperty.containsValues(V...)
MapProperty.contains
(Collection<V> values) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofMapProperty.containsValuesCollection(Collection)
final Expression
Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofMapProperty.containsValues(V...)
Creates an expression for a database "LIKE" query with the value converted to a pattern matching anywhere in the String.CollectionProperty.containsId
(Object id) CollectionProperty.containsId
(Object firstId, Object... moreId) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofCollectionProperty.containsIds(Object...)
CollectionProperty.containsId
(Collection<Object> ids) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofCollectionProperty.containsIdsCollection(Collection)
MapProperty.containsId
(Object id) MapProperty.containsId
(Object firstId, Object... moreId) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofMapProperty.containsIds(Object...)
MapProperty.containsId
(Collection<Object> ids) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofMapProperty.containsIdsCollection(Collection)
CollectionProperty.containsIds
(Object... ids) MapProperty.containsIds
(Object... ids) CollectionProperty.containsIdsCollection
(Collection<?> ids) MapProperty.containsIdsCollection
(Collection<?> ids) StringProperty.containsIgnoreCase
(String value) Same asStringProperty.contains(String)
, only using case-insensitive comparison.CollectionProperty.containsValue
(V value) final Expression
CollectionProperty.containsValues
(V... values) final Expression
MapProperty.containsValues
(V... values) CollectionProperty.containsValuesCollection
(Collection<V> values) MapProperty.containsValuesCollection
(Collection<V> values) Creates an expression for a database "LIKE" query with the value converted to a pattern matching the tail of a String.StringProperty.endsWithIgnoreCase
(String value) Same asStringProperty.endsWith(String)
, only using case-insensitive comparison.BaseProperty.eq
(BaseProperty<?> value) default Expression
default Expression
RelationshipProperty.exists()
SelfProperty.exists
(Expression where) BaseProperty.getExpression()
This method returns fresh copy of the expression for each call.Property.getExpression()
default Expression
default Expression
ComparableProperty.gt
(ComparableProperty<?> value) default Expression
ComparableProperty.gtAll
(ColumnSelect<E> subquery) default Expression
ComparableProperty.gtAny
(ColumnSelect<E> subquery) default Expression
default Expression
ComparableProperty.gte
(ComparableProperty<?> value) default Expression
ComparableProperty.gteAll
(ColumnSelect<E> subquery) default Expression
ComparableProperty.gteAny
(ColumnSelect<E> subquery) EntityProperty.idsInCollection
(Collection<?> ids) EntityProperty.idsNotInCollection
(Collection<?> ids) BaseProperty.in
(Collection<E> values) BaseProperty.in
(ColumnSelect<? extends E> subquery) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofEntityProperty.idsIn(Object...)
EntityProperty.inId
(Collection<Object> ids) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofEntityProperty.idsInCollection(Collection)
BaseProperty.isFalse()
BaseProperty.isNotNull()
BaseProperty.isNull()
BaseProperty.isTrue()
StringProperty.like
(StringProperty<?> pattern) StringProperty.likeIgnoreCase
(String pattern) StringProperty.likeIgnoreCase
(StringProperty<?> pattern) default Expression
default Expression
ComparableProperty.lt
(ComparableProperty<?> value) default Expression
ComparableProperty.ltAll
(ColumnSelect<E> subquery) default Expression
ComparableProperty.ltAny
(ColumnSelect<E> subquery) default Expression
default Expression
ComparableProperty.lte
(ComparableProperty<?> value) default Expression
ComparableProperty.lteAll
(ColumnSelect<E> subquery) default Expression
ComparableProperty.lteAny
(ColumnSelect<E> subquery) BaseProperty.ne
(BaseProperty<?> value) BaseProperty.nin
(Collection<E> values) BaseProperty.nin
(ColumnSelect<? extends E> subquery) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofEntityProperty.idsNotIn(Object...)
EntityProperty.ninId
(Collection<Object> ids) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofEntityProperty.idsNotInCollection(Collection)
StringProperty.nlike
(StringProperty<?> value) StringProperty.nlikeIgnoreCase
(String value) StringProperty.nlikeIgnoreCase
(StringProperty<?> value) CollectionProperty.notContains
(Collection<V> values) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofCollectionProperty.notContainsValuesCollection(Collection)
CollectionProperty.notContains
(V value) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofCollectionProperty.notContainsValue(V)
final Expression
CollectionProperty.notContains
(V firstValue, V... moreValues) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofCollectionProperty.notContainsValues(V...)
MapProperty.notContains
(Collection<V> values) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofMapProperty.notContainsValuesCollection(Collection)
MapProperty.notContains
(V value) final Expression
MapProperty.notContains
(V firstValue, V... moreValues) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofMapProperty.notContainsValues(V...)
CollectionProperty.notContainsId
(Object id) CollectionProperty.notContainsId
(Object firstId, Object... moreId) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofCollectionProperty.notContainsIds(Object...)
CollectionProperty.notContainsId
(Collection<Object> ids) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofCollectionProperty.notContainsIdsCollection(Collection)
MapProperty.notContainsId
(Object id) MapProperty.notContainsId
(Object firstId, Object... moreId) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofMapProperty.notContainsIds(Object...)
MapProperty.notContainsId
(Collection<Object> ids) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofMapProperty.notContainsIdsCollection(Collection)
CollectionProperty.notContainsIds
(Object... ids) MapProperty.notContainsIds
(Object... ids) CollectionProperty.notContainsIdsCollection
(Collection<?> ids) MapProperty.notContainsIdsCollection
(Collection<?> ids) CollectionProperty.notContainsValue
(V value) final Expression
CollectionProperty.notContainsValues
(V... values) final Expression
MapProperty.notContainsValues
(V... values) CollectionProperty.notContainsValuesCollection
(Collection<V> values) MapProperty.notContainsValuesCollection
(Collection<V> values) default Expression
RelationshipProperty.notExists()
SelfProperty.notExists
(Expression where) StringProperty.startsWith
(String value) Creates an expression for a database "LIKE" query with the value converted to a pattern matching the beginning of a String.StringProperty.startsWithIgnoreCase
(String value) Same asStringProperty.startsWith(String)
, only using case-insensitive comparison.Methods in org.apache.cayenne.exp.property with parameters of type ExpressionModifier and TypeMethodDescriptionstatic <T> BaseProperty
<T> PropertyFactory.createBase
(String name, Expression expression, Class<T> type) Create base propertystatic <T> BaseProperty
<T> PropertyFactory.createBase
(Expression expression, Class<T> type) Create base propertystatic <T> BaseProperty
<T> PropertyFactory.createBase
(CayennePath path, Expression expression, Class<T> type) Create base propertystatic <T> DateProperty
<T> PropertyFactory.createDate
(String name, Expression expression, Class<T> type) Create date propertystatic <T> DateProperty
<T> PropertyFactory.createDate
(Expression expression, Class<T> type) Create date propertystatic <T> DateProperty
<T> PropertyFactory.createDate
(CayennePath path, Expression expression, Class<T> type) Create date propertystatic <T extends EmbeddableObject>
EmbeddableProperty<T> PropertyFactory.createEmbeddable
(String name, Expression exp, Class<T> embeddableType) Create property that represents embeddablestatic <T extends EmbeddableObject>
EmbeddableProperty<T> PropertyFactory.createEmbeddable
(CayennePath path, Expression exp, Class<T> embeddableType) Create property that represents embeddablestatic <T extends Persistent>
EntityProperty<T> PropertyFactory.createEntity
(String name, Expression expression, Class<T> entityType) Create entity propertystatic <T extends Persistent>
EntityProperty<T> PropertyFactory.createEntity
(Expression expression, Class<T> type) Create entity propertystatic <T extends Persistent>
EntityProperty<T> PropertyFactory.createEntity
(CayennePath path, Expression expression, Class<T> entityType) Create entity propertystatic <T extends Persistent>
ListProperty<T> PropertyFactory.createList
(String name, Expression expression, Class<T> entityType) Create to-many relationship mapped on list propertystatic <T extends Persistent>
ListProperty<T> PropertyFactory.createList
(CayennePath path, Expression expression, Class<T> entityType) Create to-many relationship mapped on list propertystatic <K,
V extends Persistent>
MapProperty<K, V> PropertyFactory.createMap
(String name, Expression expression, Class<K> keyType, Class<V> entityType) Create to-many relationship mapped on map propertystatic <K,
V extends Persistent>
MapProperty<K, V> PropertyFactory.createMap
(CayennePath path, Expression expression, Class<K> keyType, Class<V> entityType) Create to-many relationship mapped on map propertystatic <T extends Number>
NumericProperty<T> PropertyFactory.createNumeric
(String name, Expression expression, Class<T> type) Create numeric propertystatic <T extends Number>
NumericProperty<T> PropertyFactory.createNumeric
(Expression expression, Class<T> type) Create numeric propertystatic <T extends Number>
NumericProperty<T> PropertyFactory.createNumeric
(CayennePath path, Expression expression, Class<T> type) Create numeric propertystatic <T extends Persistent>
EntityProperty<T> PropertyFactory.createSelf
(Expression expression, Class<T> type) Self property allows to create column queries that return full objects along with custom column set.static <T extends Persistent>
SetProperty<T> PropertyFactory.createSet
(String name, Expression expression, Class<T> entityType) Create to-many relationship mapped on set propertystatic <T extends Persistent>
SetProperty<T> PropertyFactory.createSet
(CayennePath path, Expression expression, Class<T> entityType) Create to-many relationship mapped on set propertystatic <T extends CharSequence>
StringProperty<T> PropertyFactory.createString
(String name, Expression expression, Class<T> type) Create string propertystatic <T extends CharSequence>
StringProperty<T> PropertyFactory.createString
(Expression expression, Class<T> type) Create string propertystatic <T extends CharSequence>
StringProperty<T> PropertyFactory.createString
(CayennePath path, Expression expression, Class<T> type) Create string propertySelfProperty.exists
(Expression where) SelfProperty.notExists
(Expression where) SelfProperty.query
(Expression where) Constructors in org.apache.cayenne.exp.property with parameters of type ExpressionModifierConstructorDescriptionprotected
BaseProperty
(CayennePath path, Expression expression, Class<? super E> type) Constructs a new property with the given name and expressionprotected
CollectionProperty
(CayennePath path, Expression expression, Class<? super E> collectionType, Class<V> entityType) Constructs a new property with the given name and expressionprotected
DateProperty
(CayennePath path, Expression expression, Class<E> type) Constructs a new property with the given name and expressionprotected
EmbeddableProperty
(CayennePath path, Expression exp, Class<? super E> type) Constructs a new property with the given name and typeprotected
EntityProperty
(CayennePath path, Expression expression, Class<E> type) Constructs a new property with the given name and expressionprotected
ListProperty
(CayennePath path, Expression expression, Class<V> entityType) Constructs a new property with the given path and expressionprotected
MapProperty
(CayennePath path, Expression expression, Class<K> keyType, Class<V> entityType) Constructs a new property with the given path and expressionprotected
NumericProperty
(CayennePath path, Expression expression, Class<E> type) Constructs a new property with the given name and expressionprotected
SelfProperty
(CayennePath path, Expression expression, Class<E> type) Constructs a new property with the given name and expressionprotected
SetProperty
(CayennePath path, Expression expression, Class<V> entityType) Constructs a new property with the given path and expressionprotected
StringProperty
(CayennePath path, Expression expression, Class<E> type) Constructs a new property with the given name and expression -
Uses of Expression in org.apache.cayenne.map
Fields in org.apache.cayenne.map declared as ExpressionModifier and TypeFieldDescriptionprotected Expression
EntityInheritanceTree.normalizedQualifier
protected Expression
DbEntity.qualifier
Qualifier, that will be applied to all select queries and joins with this DbEntityprotected Expression
ObjEntity.qualifier
protected Expression
QueryDescriptorLoader.qualifier
protected Expression
SelectQueryDescriptor.qualifier
Methods in org.apache.cayenne.map that return ExpressionModifier and TypeMethodDescriptionEntityInheritanceTree.getDbQualifier()
Returns entity qualifier expressed as DB path qualifier or null if entity has no qualifier.ObjEntity.getDeclaredQualifier()
Returns a qualifier that imposes a restriction on what objects belong to this entity.DbEntity.getQualifier()
SelectQueryDescriptor.getQualifier()
Returns qualifier of this query.EntityInheritanceTree.qualifierForEntityAndSubclasses()
Returns a qualifier Expression that matches root entity of this tree and all its subentities.ObjEntity.translateToDbPath
(Expression expression) Transforms an Expression to an analogous expression in terms of the underlying DbEntity.DbEntity.translateToRelatedEntity
(Expression expression, CayennePath relationshipPath) Transforms Expression rooted in this entity to an analogous expression rooted in related entity.Entity.translateToRelatedEntity
(Expression expression, String relationshipPath) Translates Expression rooted in this entity to an analogous expression rooted in related entity.abstract Expression
Entity.translateToRelatedEntity
(Expression expression, CayennePath relationshipPath) Transforms Expression rooted in this entity to an analogous expression rooted in related entity.ObjEntity.translateToRelatedEntity
(Expression expression, String relationshipPath) Transforms an Expression rooted in this entity to an analogous expression rooted in related entity.ObjEntity.translateToRelatedEntity
(Expression expression, CayennePath relationshipPath) Transforms an Expression rooted in this entity to an analogous expression rooted in related entity.Methods in org.apache.cayenne.map with parameters of type ExpressionModifier and TypeMethodDescriptionEntity.lastPathComponent
(Expression path, Map<String, String> aliasMap) Convenience method returning the last component in the path iterator.DbEntity.resolvePath
(Expression pathExp, Map<String, String> aliasMap) Returns an Iterable instance over expression path components based on this entity.abstract Iterable
<PathComponent<A, R>> Entity.resolvePath
(Expression pathExp, Map<String, String> aliasMap) Returns an Iterable over the path components with elements represented asPathComponent
instances, encapsulating a relationship, an attribute or a subpath alias.ObjEntity.resolvePath
(Expression pathExp, Map<String, String> aliasMap) Returns an Iterable instance over expression path components based on this entity.DbEntity.resolvePathComponents
(Expression pathExp) abstract Iterator
<CayenneMapEntry> Entity.resolvePathComponents
(Expression pathExp) Processes expressionpathExp
and returns an Iterator of path components that contains a sequence of Attributes and Relationships.ObjEntity.resolvePathComponents
(Expression pathExp) void
ObjEntity.setDeclaredQualifier
(Expression qualifier) Sets a qualifier that imposes a limit on what objects belong to this entity.void
DbEntity.setQualifier
(Expression qualifier) Sets qualifier for this entityvoid
SelectQueryDescriptor.setQualifier
(Expression qualifier) Sets qualifier for this query.ObjEntity.translateToDbPath
(Expression expression) Transforms an Expression to an analogous expression in terms of the underlying DbEntity.DbEntity.translateToRelatedEntity
(Expression expression, CayennePath relationshipPath) Transforms Expression rooted in this entity to an analogous expression rooted in related entity.Entity.translateToRelatedEntity
(Expression expression, String relationshipPath) Translates Expression rooted in this entity to an analogous expression rooted in related entity.abstract Expression
Entity.translateToRelatedEntity
(Expression expression, CayennePath relationshipPath) Transforms Expression rooted in this entity to an analogous expression rooted in related entity.ObjEntity.translateToRelatedEntity
(Expression expression, String relationshipPath) Transforms an Expression rooted in this entity to an analogous expression rooted in related entity.ObjEntity.translateToRelatedEntity
(Expression expression, CayennePath relationshipPath) Transforms an Expression rooted in this entity to an analogous expression rooted in related entity. -
Uses of Expression in org.apache.cayenne.query
Fields in org.apache.cayenne.query declared as ExpressionModifier and TypeFieldDescriptionprotected Expression
FluentSelect.having
protected Expression
Ordering.sortSpec
protected Expression
FluentSelect.where
Methods in org.apache.cayenne.query that return ExpressionModifier and TypeMethodDescriptionprotected Expression
FluentSelect.getActiveExpression()
FluentSelect.getHaving()
Returns a HAVING clause Expression of this query.SelectById.IdSpec.getQualifier
(ObjEntity entity) SelectById.MultiMapIdSpec.getQualifier
(ObjEntity entity) SelectById.MultiScalarIdSpec.getQualifier
(ObjEntity entity) SelectById.SingleMapIdSpec.getQualifier
(ObjEntity entity) SelectById.SingleScalarIdSpec.getQualifier
(ObjEntity entity) Ordering.getSortSpec()
Returns the expression defining a ordering Java Bean property.FluentSelect.getWhere()
Returns a WHERE clause Expression of this query.Methods in org.apache.cayenne.query with parameters of type ExpressionModifier and TypeMethodDescriptionvoid
PrefetchSelectQuery.addResultPath
(Expression path) Configures an "extra" path that will resolve to an extra column (or columns) in the result set.FluentSelect.and
(Expression... expressions) AND's provided expressions to the existing WHERE clause expression.static ObjectSelect
<DataRow> ObjectSelect.dataRowQuery
(Class<?> entityType, Expression expression) Creates a ObjectSelect that fetches data for anObjEntity
determined from a provided class and uses provided expression for its qualifier.static ObjectSelect
<DataRow> ObjectSelect.dbQuery
(String dbEntityName, Expression expression) Creates a ObjectSelect that fetches DataRows for aDbEntity
determined from provided "dbEntityName" and uses provided expression for its qualifier.ColumnSelect.having
(Expression expression) Appends a having qualifier expression of this query.ObjectSelect.having
(Expression expression) Appends a having qualifier expression of this query.FluentSelect.or
(Expression... expressions) OR's provided expressions to the existing WHERE clause expression.static <T> ObjectSelect
<T> ObjectSelect.query
(Class<T> entityType, Expression expression) Creates a ObjectSelect that selects objects of a given persistent class and uses provided expression for its qualifier.static <T> ObjectSelect
<T> ObjectSelect.query
(Class<T> entityType, Expression expression, List<Ordering> orderings) Creates a ObjectSelect that selects objects of a given persistent class and uses provided expression for its qualifier.protected void
FluentSelect.setActiveExpression
(Expression exp) void
Ordering.setSortSpec
(Expression sortSpec) Sets the expression defining a ordering Java Bean property.FluentSelect.where
(Expression expression) Appends a qualifier expression of this query.Method parameters in org.apache.cayenne.query with type arguments of type ExpressionModifier and TypeMethodDescriptionFluentSelect.and
(Collection<Expression> expressions) AND's provided expressions to the existing WHERE clause expression.protected S
FluentSelect.joinExpression
(Collection<Expression> expressions, Function<Collection<Expression>, Expression> joiner) protected S
FluentSelect.joinExpression
(Collection<Expression> expressions, Function<Collection<Expression>, Expression> joiner) protected S
FluentSelect.joinExpression
(Collection<Expression> expressions, Function<Collection<Expression>, Expression> joiner) FluentSelect.or
(Collection<Expression> expressions) OR's provided expressions to the existing WHERE clause expression.Constructors in org.apache.cayenne.query with parameters of type ExpressionModifierConstructorDescriptionOrdering
(Expression sortSpec) Ordering
(Expression sortSpec, SortOrder sortOrder) -
Uses of Expression in org.apache.cayenne.reflect
Fields in org.apache.cayenne.reflect declared as ExpressionMethods in org.apache.cayenne.reflect that return ExpressionModifier and TypeMethodDescriptionClassDescriptor.getEntityQualifier()
Returns entity qualifier as a Cayenne expression that includes qualifiers for this entity and all subentities.LazyClassDescriptorDecorator.getEntityQualifier()
PersistentDescriptor.getEntityQualifier()
Methods in org.apache.cayenne.reflect with parameters of type ExpressionModifier and TypeMethodDescriptionvoid
PersistentDescriptor.setEntityQualifier
(Expression entityQualifier)
CollectionProperty.containsValuesCollection(Collection)