Uses of Class
org.apache.cayenne.exp.Expression
Packages that use Expression
Package
Description
Property API
-
Uses of Expression in org.apache.cayenne.exp
Subclasses of Expression in org.apache.cayenne.expModifier and TypeClassDescriptionfinal classfinal class"Add" Expression.classSuperclass of aggregated conditional nodes such as NOT, AND, OR.classBase class for all aggregation functions expressions It's more like marker interface for now.final classfinal class"And" expression.final classclassfinal classAsterisk operator for COUNT(*) expression.final classfinal class"Between" expression.final classBitwise conjunction (AND or '&') expressionclassfinal classBitwise left shift '<<' operation.final classBitwise negation (NOT i.e. inventor or '~') operation .final classBitwise disjunction (OR or '|') expression.final classBitwise right shift '>>' operation.final classBitwise exclusive disjunction (XOR or '^') operation.final class"CASE-WHEN" expression root node.final classclassSuperclass of conditional expressions.final classfinal classfinal classfinal classclassClass for custom aggregation functions expressions.classclassfinal classfinal classPath expression traversing DB relationships and attributes.final classfinal class"Divide" expression.final class"ELSE" part of the case-when expression.final classfinal class"Equal To" expression.final classfinal classfinal classBoolean false expression element Notice that there is one TrueExp and one FalseExp instead of a single BooleanExp with a Boolean value.final classclassfinal class"Greater Than" expression.final class"Greater Than Or Equal To" expression.final class"In" expression.final classfinal class"Less Then" expression.final class"Less than or equal to" expression.final class"Like" expression.final class"Case insensitive like" expression.final classA leaf expression representing an immutable collection of values.final classfinal classfinal classfinal classfinal classfinal class"Multiply" expression.final class"Negate" expression.final class"Not Between" expression.final class"Not equal to" expression.final classfinal class"Not" expression.final class"Not In" expression.final class"Not Like" expression.final class"Not like, ignore case" expression.final classfinal class"Or" expression.classGeneric path expression.classSuperclass of pattern matching nodes.final classA plain value in the place of an expression, e.g. a constant select column or a whole where clause.final classfinal classfinal classfinal class"Subtract" expression.final classfinal class"THEN" part of the case-when expression.final classfinal classBoolean true expression element Notice that there is one TrueExp and one FalseExp instead of a single BooleanExp with a Boolean value.final classclassfinal class"WHEN" part of the case-when expression.Methods in org.apache.cayenne.exp that return ExpressionModifier and TypeMethodDescriptionstatic Expressionstatic ExpressionFunctionExpressionFactory.absExp(Expression exp) static ExpressionExpressionFactory.all(ColumnSelect<?> subquery) static ExpressionExpressionFactory.and(Collection<Expression> expressions) static ExpressionExpressionFactory.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 ExpressionExpressionFactory.any(ColumnSelect<?> subquery) static ExpressionFunctionExpressionFactory.avgExp(Expression exp) static ExpressionExpressionFactory.betweenDbExp(String pathSpec, Object value1, Object value2) A convenience shortcut for building BETWEEN expressions.static ExpressionExpressionFactory.betweenExp(String pathSpec, Object value1, Object value2) A convenience shortcut for building BETWEEN expressions.static ExpressionExpressionFactory.betweenExp(Expression exp, Object value1, Object value2) static ExpressionExpressionFactory.caseWhen(List<Expression> whenExp, List<Expression> thenExp) static ExpressionExpressionFactory.caseWhen(List<Expression> whenExp, List<Expression> thenExp, Expression caseDefault) static ExpressionFactory method for expression to call CONCAT(string1, string2, ...) functionstatic ExpressionFunctionExpressionFactory.concatExp(Expression... expressions) Factory method for expression to call CONCAT(string1, string2, ...) functionstatic ExpressionExpressionFactory.containsExp(String pathSpec, String value) static ExpressionExpressionFactory.containsExp(Expression exp, String value) static ExpressionExpressionFactory.containsIgnoreCaseExp(String pathSpec, String value) Same asExpressionFactory.containsExp(String, String)only using case-insensitive comparison.static ExpressionExpressionFactory.containsIgnoreCaseExp(Expression exp, String value) static ExpressionFunctionExpressionFactory.countDistinctExp(Expression exp) static ExpressionFunctionExpressionFactory.countExp()static ExpressionFunctionExpressionFactory.countExp(Expression exp) static ExpressionFunctionExpressionFactory.currentDate()static ExpressionFunctionExpressionFactory.currentTime()static ExpressionFunctionExpressionFactory.currentTimestamp()static ExpressionFunctionExpressionFactory.customAggregateExp(String function, Expression exp) static ExpressionFunctionExpressionFactory.dayOfMonthExp(String path) static ExpressionFunctionExpressionFactory.dayOfMonthExp(Expression exp) static ExpressionFunctionExpressionFactory.dayOfWeekExp(String path) static ExpressionFunctionExpressionFactory.dayOfWeekExp(Expression exp) static ExpressionFunctionExpressionFactory.dayOfYearExp(String path) static ExpressionFunctionExpressionFactory.dayOfYearExp(Expression exp) static ExpressionExpressionFactory.dbIdPathExp(String pathSpec) static ExpressionExpressionFactory.dbIdPathExp(CayennePath pathSpec) static Expressionstatic ExpressionExpressionFactory.dbPathExp(CayennePath path) Expression.deepCopy()Clones this expression.static ExpressionExpressionFactory.enclosingObjectExp(Expression exp) static ExpressionExpressionFactory.endsWithExp(String pathSpec, String value) static ExpressionExpressionFactory.endsWithExp(Expression exp, String value) static ExpressionExpressionFactory.endsWithIgnoreCaseExp(String pathSpec, String value) Same asExpressionFactory.endsWithExp(String, String)only using case-insensitive comparison.static ExpressionExpressionFactory.endsWithIgnoreCaseExp(Expression exp, String value) AggregateConditionExp.exists()AllExp.exists()AnyExp.exists()ConditionExp.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).ExistsExp.exists()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 ExpressionExpressionFactory.exists(Expression exp) Builds expression representing EXIST subquery over a given pathstatic ExpressionExpressionFactory.exists(FluentSelect<?, ?> subQuery) NotExistsExp.exists()PathExp.exists()static ExpressionParses string, converting it to Expression and optionally binding positional parameters.static ExpressionExpressionFactory.expFalse()A convenience shortcut for boolean false expression.static ExpressionExpressionFactory.expTrue()A convenience shortcut for boolean true expression.static ExpressionExpressionFactory.fullObjectExp()static ExpressionExpressionFactory.fullObjectExp(Expression exp) Deprecated, for removal: This API element is subject to removal in a future version.a relationship path expression is all that is needed to select related objects as a columnstatic ExpressionFunctionExpressionFactory.functionCall(String function, Object... args) static ExpressionExpressionFactory.greaterDbExp(String pathSpec, Object value) A convenience method to create an DB_PATH "greater than" expression.static ExpressionExpressionFactory.greaterExp(String pathSpec, Object value) A convenience method to create an OBJ_PATH "greater than" expression.static ExpressionExpressionFactory.greaterExp(Expression exp, Object value) static ExpressionExpressionFactory.greaterOrEqualDbExp(String pathSpec, Object value) A convenience method to create an DB_PATH "greater than or equal to" expression.static ExpressionExpressionFactory.greaterOrEqualExp(String pathSpec, Object value) A convenience method to create an OBJ_PATH "greater than or equal to" expression.static ExpressionExpressionFactory.greaterOrEqualExp(Expression exp, Object value) static Expressionstatic ExpressionFunctionExpressionFactory.hourExp(Expression exp) static ExpressionA convenience shortcut for building IN DB expression.static ExpressionExpressionFactory.inDbExp(String pathSpec, Collection<?> values) A convenience shortcut for building IN DB expression.static ExpressionA convenience shortcut for building IN DBID expression.static ExpressionExpressionFactory.inDbIdExp(String pathSpec, Collection<?> values) A convenience shortcut for building IN DBID expression.static ExpressionA convenience shortcut for building IN expression.static ExpressionExpressionFactory.inExp(String pathSpec, Collection<?> values) A convenience shortcut for building IN expression.static ExpressionExpressionFactory.inExp(Expression exp, Object... values) static ExpressionExpressionFactory.inExp(Expression exp, Collection<?> values) static ExpressionExpressionFactory.inExp(Expression exp, ColumnSelect<?> subQuery) static Expressionstatic ExpressionFunctionExpressionFactory.lengthExp(Expression exp) static ExpressionA convenience method to create an DB_PATH "less than" expression.static ExpressionA convenience method to create an OBJ_PATH "less than" expression.static ExpressionExpressionFactory.lessExp(Expression exp, Object value) static ExpressionExpressionFactory.lessOrEqualDbExp(String pathSpec, Object value) A convenience method to create an DB_PATH "less than or equal to" expression.static ExpressionExpressionFactory.lessOrEqualExp(String pathSpec, Object value) A convenience method to create an OBJ_PATH "less than or equal to" expression.static ExpressionExpressionFactory.lessOrEqualExp(Expression exp, Object value) static ExpressionA convenience shortcut for building LIKE DB_PATH expression.static ExpressionA convenience shortcut for building LIKE DB_PATH expression.static ExpressionA convenience shortcut for building LIKE expression.static ExpressionA convenience shortcut for building LIKE expression.static ExpressionExpressionFactory.likeExp(Expression exp, Object value) static ExpressionExpressionFactory.likeExp(Expression exp, Object value, char escapeChar) static ExpressionExpressionFactory.likeIgnoreCaseDbExp(String pathSpec, Object value) A convenience shortcut for building LIKE_IGNORE_CASE expression.static ExpressionExpressionFactory.likeIgnoreCaseDbExp(String pathSpec, Object value, char escapeChar) A convenience shortcut for building LIKE_IGNORE_CASE expression.static ExpressionExpressionFactory.likeIgnoreCaseExp(String pathSpec, Object value) A convenience shortcut for building LIKE_IGNORE_CASE expression.static ExpressionExpressionFactory.likeIgnoreCaseExp(String pathSpec, Object value, char escapeChar) A convenience shortcut for building LIKE_IGNORE_CASE expression.static ExpressionExpressionFactory.likeIgnoreCaseExp(Expression exp, Object value) static ExpressionCall LOCATE(substring, string) function that return position of substring in string or 0 if it is not found.static ExpressionFunctionExpressionFactory.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 ExpressionFunctionExpressionFactory.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 Expressionstatic ExpressionFunctionExpressionFactory.lowerExp(Expression exp) static ExpressionExpressionFactory.matchAllDbExp(Map<String, ?> map) Creates an expression that matches all key-values pairs inmap: an AND of "key = value" comparisons, each key taken as a DB_PATH.static ExpressionExpressionFactory.matchAllExp(String path, Object... values) static ExpressionExpressionFactory.matchAllExp(String path, Collection<?> values) Creates an expression to match a collection of values against a single path expression.static ExpressionExpressionFactory.matchAllExp(Map<String, ?> map) Creates an expression that matches all key-values pairs inmap: an AND of "key = value" comparisons, each key taken as an OBJ_PATH.static ExpressionExpressionFactory.matchAnyDbExp(Map<String, ?> map) Creates an expression that matches any of the key-values pairs inmap: an OR of "key = value" comparisons, each key taken as a DB_PATH.static ExpressionExpressionFactory.matchAnyExp(List<? extends Persistent> objects) Creates an expression that matches any of the objects contained in the listobjectsstatic ExpressionExpressionFactory.matchAnyExp(Map<String, ?> map) Creates an expression that matches any of the key-values pairs in themap: an OR of "key = value" comparisons, each key taken as an OBJ_PATH.static ExpressionExpressionFactory.matchAnyExp(Persistent... objects) Creates an expression that matches any of the objects contained in theobjectsarraystatic ExpressionExpressionFactory.matchDbExp(String pathSpec, Object value) A convenience method to create an DB_PATH "equal to" expression.static ExpressionExpressionFactory.matchDbIdExp(String pathSpec, Object value) A convenience method to create an DBID_PATH "equal to" expression.static ExpressionA convenience method to create an OBJ_PATH "equal to" expression.static ExpressionExpressionFactory.matchExp(Expression exp, Object value) static ExpressionExpressionFactory.matchExp(Persistent object) Creates an expression that matches the primary key of object inObjectId'sIdSnapshotfor the argumentobject.static ExpressionFunctionExpressionFactory.maxExp(Expression exp) static ExpressionFunctionExpressionFactory.minExp(Expression exp) static Expressionstatic ExpressionFunctionExpressionFactory.minuteExp(Expression exp) static Expressionstatic ExpressionFunctionExpressionFactory.modExp(Expression exp, Number number) static ExpressionFunctionExpressionFactory.modExp(Expression exp, Expression number) static Expressionstatic ExpressionFunctionExpressionFactory.monthExp(Expression exp) static ExpressionExpressionFactory.noMatchDbExp(String pathSpec, Object value) A convenience method to create an DB_PATH "not equal to" expression.static ExpressionExpressionFactory.noMatchDbIdExp(String pathSpec, Object value) A convenience method to create an DBID_PATH "not equal to" expression.static ExpressionExpressionFactory.noMatchExp(String pathSpec, Object value) A convenience method to create an OBJ_PATH "not equal to" expression.static ExpressionExpressionFactory.noMatchExp(Expression exp, Object value) static ExpressionExpressionFactory.notBetweenDbExp(String pathSpec, Object value1, Object value2) A convenience shortcut for building NOT_BETWEEN expressions.static ExpressionExpressionFactory.notBetweenExp(String pathSpec, Object value1, Object value2) A convenience shortcut for building NOT_BETWEEN expressions.static ExpressionExpressionFactory.notBetweenExp(Expression exp, Object value1, Object value2) AggregateConditionExp.notExists()AllExp.notExists()AnyExp.notExists()ConditionExp.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).ExistsExp.notExists()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 ExpressionExpressionFactory.notExists(Expression exp) Builds expression representing NOT EXIST subquery over a given pathstatic ExpressionExpressionFactory.notExists(FluentSelect<?, ?> subQuery) NotExistsExp.notExists()PathExp.notExists()Expression.notExp()Returns a logical NOT of current expression.static ExpressionExpressionFactory.notInDbExp(String pathSpec, Object... values) A convenience shortcut for building NOT_IN expression.static ExpressionExpressionFactory.notInDbExp(String pathSpec, Collection<?> values) A convenience shortcut for building NOT_IN expression.static ExpressionExpressionFactory.notInDbIdExp(String pathSpec, Object... values) A convenience shortcut for building NOT_IN expression.static ExpressionExpressionFactory.notInDbIdExp(String pathSpec, Collection<?> values) A convenience shortcut for building NOT_IN expression.static ExpressionA convenience shortcut for building NOT_IN expression.static ExpressionExpressionFactory.notInExp(String pathSpec, Collection<?> values) A convenience shortcut for building NOT_IN expression.static ExpressionExpressionFactory.notInExp(Expression exp, Object... values) static ExpressionExpressionFactory.notInExp(Expression exp, Collection<?> values) static ExpressionExpressionFactory.notInExp(Expression exp, ColumnSelect<?> subQuery) static ExpressionExpressionFactory.notLikeDbExp(String pathSpec, Object value) A convenience shortcut for building NOT_LIKE expression.static ExpressionExpressionFactory.notLikeDbExp(String pathSpec, Object value, char escapeChar) A convenience shortcut for building NOT_LIKE expression.static ExpressionExpressionFactory.notLikeExp(String pathSpec, Object value) A convenience shortcut for building NOT_LIKE expression.static ExpressionExpressionFactory.notLikeExp(String pathSpec, Object value, char escapeChar) A convenience shortcut for building NOT_LIKE expression.static ExpressionExpressionFactory.notLikeExp(Expression exp, Object value) static ExpressionExpressionFactory.notLikeExp(Expression exp, Object value, char escapeChar) static ExpressionExpressionFactory.notLikeIgnoreCaseDbExp(String pathSpec, Object value) A convenience shortcut for building NOT_LIKE_IGNORE_CASE expression.static ExpressionExpressionFactory.notLikeIgnoreCaseDbExp(String pathSpec, Object value, char escapeChar) A convenience shortcut for building NOT_LIKE_IGNORE_CASE expression.static ExpressionExpressionFactory.notLikeIgnoreCaseExp(String pathSpec, Object value) A convenience shortcut for building NOT_LIKE_IGNORE_CASE expression.static ExpressionExpressionFactory.notLikeIgnoreCaseExp(String pathSpec, Object value, char escapeChar) A convenience shortcut for building NOT_LIKE_IGNORE_CASE expression.static ExpressionExpressionFactory.notLikeIgnoreCaseExp(Expression exp, Object value) static ExpressionExpressionFactory.notLikeIgnoreCaseExp(Expression exp, Object value, char escapeChar) static Expressionstatic ExpressionExpressionFactory.or(Collection<Expression> expressions) static ExpressionExpressionFactory.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 Expressionstatic ExpressionExpressionFactory.pathExp(CayennePath path) static Expressionstatic ExpressionFunctionExpressionFactory.secondExp(Expression exp) AbsExp.shallowCopy()AddExp.shallowCopy()Creates a copy of this expression node, without copying children.AllExp.shallowCopy()AndExp.shallowCopy()Creates a copy of this expression node, without copying children.AnyExp.shallowCopy()AsteriskExp.shallowCopy()AvgExp.shallowCopy()BetweenExp.shallowCopy()Creates a copy of this expression node, without copying children.BitwiseAndExp.shallowCopy()BitwiseLeftShiftExp.shallowCopy()BitwiseNotExp.shallowCopy()BitwiseOrExp.shallowCopy()BitwiseRightShiftExp.shallowCopy()BitwiseXorExp.shallowCopy()CaseWhenExp.shallowCopy()Creates a copy of this expression node, without copying children.ConcatExp.shallowCopy()CountExp.shallowCopy()CurrentDateExp.shallowCopy()CurrentTimeExp.shallowCopy()CurrentTimestampExp.shallowCopy()CustomAggregateExp.shallowCopy()CustomFunctionExp.shallowCopy()CustomOperatorExp.shallowCopy()DbIdPathExp.shallowCopy()Creates a copy of this expression node, without copying children.DbPathExp.shallowCopy()Creates a copy of this expression node, without copying children.DistinctExp.shallowCopy()DivideExp.shallowCopy()Creates a copy of this expression node, without copying children.ElseExp.shallowCopy()EnclosingObjectExp.shallowCopy()EqualExp.shallowCopy()Creates a copy of this expression node, without copying children.ExistsExp.shallowCopy()abstract ExpressionExpression.shallowCopy()Creates a copy of this expression node, without copying children.ExtractExp.shallowCopy()FalseExp.shallowCopy()FullObjectExp.shallowCopy()GreaterExp.shallowCopy()Creates a copy of this expression node, without copying children.GreaterOrEqualExp.shallowCopy()Creates a copy of this expression node, without copying children.InExp.shallowCopy()Creates a copy of this expression node, without copying children.LengthExp.shallowCopy()LessExp.shallowCopy()Creates a copy of this expression node, without copying children.LessOrEqualExp.shallowCopy()Creates a copy of this expression node, without copying children.LikeExp.shallowCopy()Creates a copy of this expression node, without copying children.LikeIgnoreCaseExp.shallowCopy()Creates a copy of this expression node, without copying children.ListExp.shallowCopy()Creates a copy of this expression node, without copying children.LocateExp.shallowCopy()LowerExp.shallowCopy()MaxExp.shallowCopy()MinExp.shallowCopy()ModExp.shallowCopy()MultiplyExp.shallowCopy()Creates a copy of this expression node, without copying children.NegateExp.shallowCopy()Creates a copy of this expression node, without copying children.NotBetweenExp.shallowCopy()Creates a copy of this expression node, without copying children.NotEqualExp.shallowCopy()Creates a copy of this expression node, without copying children.NotExistsExp.shallowCopy()NotExp.shallowCopy()Creates a copy of this expression node, without copying children.NotInExp.shallowCopy()Creates a copy of this expression node, without copying children.NotLikeExp.shallowCopy()Creates a copy of this expression node, without copying children.NotLikeIgnoreCaseExp.shallowCopy()Creates a copy of this expression node, without copying children.ObjPathExp.shallowCopy()Creates a copy of this expression node, without copying children.OrExp.shallowCopy()Creates a copy of this expression node, without copying children.ScalarExp.shallowCopy()Creates a copy of this expression node, without copying children.SqrtExp.shallowCopy()SubqueryExp.shallowCopy()SubstringExp.shallowCopy()SubtractExp.shallowCopy()Creates a copy of this expression node, without copying children.SumExp.shallowCopy()ThenExp.shallowCopy()Creates a copy of this expression node, without copying children.TrimExp.shallowCopy()TrueExp.shallowCopy()UpperExp.shallowCopy()WhenExp.shallowCopy()static Expressionstatic ExpressionFunctionExpressionFactory.sqrtExp(Expression exp) static ExpressionExpressionFactory.startsWithExp(String pathSpec, String value) static ExpressionExpressionFactory.startsWithExp(Expression exp, String value) static ExpressionExpressionFactory.startsWithIgnoreCaseExp(String pathSpec, String value) Same asExpressionFactory.startsWithExp(String, String)only using case-insensitive comparison.static ExpressionExpressionFactory.startsWithIgnoreCaseExp(Expression exp, String value) static ExpressionFunctionExpressionFactory.substringExp(String path, int offset, int length) Call SUBSTRING(string, offset, length) functionstatic ExpressionFunctionExpressionFactory.substringExp(Expression exp, int offset, int length) Call SUBSTRING(string, offset, length) functionstatic ExpressionFunctionExpressionFactory.substringExp(Expression exp, Expression offset, Expression length) Call SUBSTRING(string, offset, length) functionstatic ExpressionFunctionExpressionFactory.sumExp(Expression exp) Creates a transformed copy of this expression, applying transformation provided by Transformer to all its nodes.static Expressionstatic ExpressionFunctionExpressionFactory.trimExp(Expression exp) static Expressionstatic ExpressionFunctionExpressionFactory.upperExp(Expression exp) static Expressionstatic ExpressionFunctionExpressionFactory.weekExp(Expression exp) static ExpressionExpressionFactory.wrapScalarValue(Object value) Wraps a value into an expression, for the places that take an expression rather than a value: e.g. a constant select column, or a whole where clause.static Expressionstatic ExpressionFunctionExpressionFactory.yearExp(Expression exp) Methods in org.apache.cayenne.exp with parameters of type ExpressionModifier and TypeMethodDescriptionstatic ExpressionFunctionExpressionFactory.absExp(Expression exp) static ExpressionExpressionFactory.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 ExpressionFunctionExpressionFactory.avgExp(Expression exp) static ExpressionExpressionFactory.betweenExp(Expression exp, Object value1, Object value2) static ExpressionExpressionFactory.caseWhen(List<Expression> whenExp, List<Expression> thenExp, Expression caseDefault) static ExpressionFunctionExpressionFactory.concatExp(Expression... expressions) Factory method for expression to call CONCAT(string1, string2, ...) functionstatic ExpressionExpressionFactory.containsExp(Expression exp, String value) static ExpressionExpressionFactory.containsIgnoreCaseExp(Expression exp, String value) static ExpressionFunctionExpressionFactory.countDistinctExp(Expression exp) static ExpressionFunctionExpressionFactory.countExp(Expression exp) static ExpressionFunctionExpressionFactory.customAggregateExp(String function, Expression exp) static ExpressionFunctionExpressionFactory.dayOfMonthExp(Expression exp) static ExpressionFunctionExpressionFactory.dayOfWeekExp(Expression exp) static ExpressionFunctionExpressionFactory.dayOfYearExp(Expression exp) static ExpressionExpressionFactory.enclosingObjectExp(Expression exp) default voidTraversalHandler.endNode(Expression node, Expression parentNode) Called during the traversal after an expression node children processing is finished.static ExpressionExpressionFactory.endsWithExp(Expression exp, String value) static ExpressionExpressionFactory.endsWithIgnoreCaseExp(Expression exp, String value) static ExpressionExpressionFactory.exists(Expression exp) Builds expression representing EXIST subquery over a given pathdefault voidTraversalHandler.finishedChild(Expression node, int childIndex, boolean hasMoreChildren) Called during traversal after a child of expression has been visited.static ExpressionExpressionFactory.fullObjectExp(Expression exp) Deprecated, for removal: This API element is subject to removal in a future version.a relationship path expression is all that is needed to select related objects as a columnstatic ExpressionExpressionFactory.greaterExp(Expression exp, Object value) static ExpressionExpressionFactory.greaterOrEqualExp(Expression exp, Object value) static ExpressionFunctionExpressionFactory.hourExp(Expression exp) static ExpressionExpressionFactory.inExp(Expression exp, Object... values) static ExpressionExpressionFactory.inExp(Expression exp, Collection<?> values) static ExpressionExpressionFactory.inExp(Expression exp, ColumnSelect<?> subQuery) protected booleanAggregateConditionExp.isValidParent(Expression parent) protected booleanAllExp.isValidParent(Expression parent) protected booleanAnyExp.isValidParent(Expression parent) protected booleanConditionExp.isValidParent(Expression parent) protected booleanExistsExp.isValidParent(Expression parent) protected booleanExpression.isValidParent(Expression parent) Whether this node can be an operand of the given node.protected booleanNotExistsExp.isValidParent(Expression parent) protected booleanWhenExp.isValidParent(Expression parent) static ExpressionFunctionExpressionFactory.lengthExp(Expression exp) static ExpressionExpressionFactory.lessExp(Expression exp, Object value) static ExpressionExpressionFactory.lessOrEqualExp(Expression exp, Object value) static ExpressionExpressionFactory.likeExp(Expression exp, Object value) static ExpressionExpressionFactory.likeExp(Expression exp, Object value, char escapeChar) static ExpressionExpressionFactory.likeIgnoreCaseExp(Expression exp, Object value) static ExpressionFunctionExpressionFactory.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 ExpressionFunctionExpressionFactory.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 ExpressionFunctionExpressionFactory.lowerExp(Expression exp) static ExpressionExpressionFactory.matchExp(Expression exp, Object value) static ExpressionFunctionExpressionFactory.maxExp(Expression exp) static ExpressionFunctionExpressionFactory.minExp(Expression exp) static ExpressionFunctionExpressionFactory.minuteExp(Expression exp) static ExpressionFunctionExpressionFactory.modExp(Expression exp, Number number) static ExpressionFunctionExpressionFactory.modExp(Expression exp, Expression number) static ExpressionFunctionExpressionFactory.monthExp(Expression exp) static ExpressionExpressionFactory.noMatchExp(Expression exp, Object value) static ExpressionExpressionFactory.notBetweenExp(Expression exp, Object value1, Object value2) static ExpressionExpressionFactory.notExists(Expression exp) Builds expression representing NOT EXIST subquery over a given pathstatic ExpressionExpressionFactory.notInExp(Expression exp, Object... values) static ExpressionExpressionFactory.notInExp(Expression exp, Collection<?> values) static ExpressionExpressionFactory.notInExp(Expression exp, ColumnSelect<?> subQuery) static ExpressionExpressionFactory.notLikeExp(Expression exp, Object value) static ExpressionExpressionFactory.notLikeExp(Expression exp, Object value, char escapeChar) static ExpressionExpressionFactory.notLikeIgnoreCaseExp(Expression exp, Object value) static ExpressionExpressionFactory.notLikeIgnoreCaseExp(Expression exp, Object value, char escapeChar) default voidTraversalHandler.objectNode(Object leaf, Expression parentNode) Called during the traversal when a leaf non-expression node is encountered.static ExpressionExpressionFactory.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 ExpressionFunctionExpressionFactory.secondExp(Expression exp) static ExpressionFunctionExpressionFactory.sqrtExp(Expression exp) default voidTraversalHandler.startNode(Expression node, Expression parentNode) Called during the traversal before an expression node children processing is started.static ExpressionExpressionFactory.startsWithExp(Expression exp, String value) static ExpressionExpressionFactory.startsWithIgnoreCaseExp(Expression exp, String value) static ExpressionFunctionExpressionFactory.substringExp(Expression exp, int offset, int length) Call SUBSTRING(string, offset, length) functionstatic ExpressionFunctionExpressionFactory.substringExp(Expression exp, Expression offset, Expression length) Call SUBSTRING(string, offset, length) functionstatic ExpressionFunctionExpressionFactory.sumExp(Expression exp) protected voidExpression.traverse(Expression parentExp, TraversalHandler visitor) Traverses itself and child expressions, notifying visitor via callback methods as it goes.static ExpressionFunctionExpressionFactory.trimExp(Expression exp) static ExpressionFunctionExpressionFactory.upperExp(Expression exp) static ExpressionFunctionExpressionFactory.weekExp(Expression exp) static ExpressionFunctionExpressionFactory.yearExp(Expression exp) Method parameters in org.apache.cayenne.exp with type arguments of type ExpressionModifier and TypeMethodDescriptionstatic ExpressionExpressionFactory.and(Collection<Expression> expressions) static ExpressionExpressionFactory.caseWhen(List<Expression> whenExp, List<Expression> thenExp) static ExpressionExpressionFactory.caseWhen(List<Expression> whenExp, List<Expression> thenExp, Expression caseDefault) static ExpressionExpressionFactory.or(Collection<Expression> expressions) -
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.expressionSupplierExpression provider for the propertyMethods in org.apache.cayenne.exp.property that return ExpressionModifier and TypeMethodDescriptiondefault Expressiondefault ExpressionComparableProperty.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.in favour ofCollectionProperty.containsValue(V)Deprecated, for removal: This API element is subject to removal in a future version.in favour ofCollectionProperty.containsValues(V...)MapProperty.contains(Collection<V> values) Deprecated, for removal: This API element is subject to removal in a future version.in favour ofMapProperty.containsValuesCollection(Collection)final ExpressionDeprecated, for removal: This API element is subject to removal in a future version.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.in favour ofCollectionProperty.containsIds(Object...)CollectionProperty.containsId(Collection<Object> ids) Deprecated, for removal: This API element is subject to removal in a future version.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.in favour ofMapProperty.containsIds(Object...)MapProperty.containsId(Collection<Object> ids) Deprecated, for removal: This API element is subject to removal in a future version.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 ExpressionCollectionProperty.containsValues(V... values) final ExpressionMapProperty.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 ExpressionMatches an object by a possibly compound id, expressed as a map of DB attribute names to values.default ExpressionRelationshipProperty.exists()SelfProperty.exists(Expression where) BaseProperty.getExpression()This method returns fresh copy of the expression for each call.Property.getExpression()default Expressiondefault ExpressionComparableProperty.gt(ComparableProperty<?> value) default ExpressionComparableProperty.gtAll(ColumnSelect<E> subquery) default ExpressionComparableProperty.gtAny(ColumnSelect<E> subquery) default Expressiondefault ExpressionComparableProperty.gte(ComparableProperty<?> value) default ExpressionComparableProperty.gteAll(ColumnSelect<E> subquery) default ExpressionComparableProperty.gteAny(ColumnSelect<E> subquery) final ExpressionMatches any of the objects identified by the provided ids.EntityProperty.idMapsInCollection(Collection<Map<String, ?>> ids) 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.in favour ofEntityProperty.idsIn(Object...)EntityProperty.inId(Collection<Object> ids) Deprecated, for removal: This API element is subject to removal in a future version.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 Expressiondefault ExpressionComparableProperty.lt(ComparableProperty<?> value) default ExpressionComparableProperty.ltAll(ColumnSelect<E> subquery) default ExpressionComparableProperty.ltAny(ColumnSelect<E> subquery) default Expressiondefault ExpressionComparableProperty.lte(ComparableProperty<?> value) default ExpressionComparableProperty.lteAll(ColumnSelect<E> subquery) default ExpressionComparableProperty.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.in favour ofEntityProperty.idsNotIn(Object...)EntityProperty.ninId(Collection<Object> ids) Deprecated, for removal: This API element is subject to removal in a future version.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.CollectionProperty.notContains(V value) Deprecated, for removal: This API element is subject to removal in a future version.in favour ofCollectionProperty.notContainsValue(V)final ExpressionCollectionProperty.notContains(V firstValue, V... moreValues) Deprecated, for removal: This API element is subject to removal in a future version.in favour ofCollectionProperty.notContainsValues(V...)MapProperty.notContains(Collection<V> values) Deprecated, for removal: This API element is subject to removal in a future version.in favour ofMapProperty.notContainsValuesCollection(Collection)MapProperty.notContains(V value) final ExpressionMapProperty.notContains(V firstValue, V... moreValues) Deprecated, for removal: This API element is subject to removal in a future version.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.in favour ofCollectionProperty.notContainsIds(Object...)CollectionProperty.notContainsId(Collection<Object> ids) Deprecated, for removal: This API element is subject to removal in a future version.MapProperty.notContainsId(Object id) MapProperty.notContainsId(Object firstId, Object... moreId) Deprecated, for removal: This API element is subject to removal in a future version.in favour ofMapProperty.notContainsIds(Object...)MapProperty.notContainsId(Collection<Object> ids) Deprecated, for removal: This API element is subject to removal in a future version.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 ExpressionCollectionProperty.notContainsValues(V... values) final ExpressionMapProperty.notContainsValues(V... values) CollectionProperty.notContainsValuesCollection(Collection<V> values) MapProperty.notContainsValuesCollection(Collection<V> values) default ExpressionRelationshipProperty.notExists()SelfProperty.notExists(Expression where) EntityProperty.objectIdsIn(ObjectId... ids) Matches any of the objects identified by the providedObjectIds.EntityProperty.objectIdsInCollection(Collection<ObjectId> ids) 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) Deprecated, for removal: This API element is subject to removal in a future version.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 ExpressionModifierConstructorDescriptionprotectedBaseProperty(CayennePath path, Expression expression, Class<? super E> type) Constructs a new property with the given name and expressionprotectedCollectionProperty(CayennePath path, Expression expression, Class<? super E> collectionType, Class<V> entityType) Constructs a new property with the given name and expressionprotectedDateProperty(CayennePath path, Expression expression, Class<E> type) Constructs a new property with the given name and expressionprotectedEmbeddableProperty(CayennePath path, Expression exp, Class<? super E> type) Constructs a new property with the given name and typeprotectedEntityProperty(CayennePath path, Expression expression, Class<E> type) Constructs a new property with the given name and expressionprotectedListProperty(CayennePath path, Expression expression, Class<V> entityType) Constructs a new property with the given path and expressionprotectedMapProperty(CayennePath path, Expression expression, Class<K> keyType, Class<V> entityType) Constructs a new property with the given path and expressionprotectedNumericProperty(CayennePath path, Expression expression, Class<E> type) Constructs a new property with the given name and expressionprotectedSelfProperty(CayennePath path, Expression expression, Class<E> type) Constructs a new property with the given name and expressionprotectedSetProperty(CayennePath path, Expression expression, Class<V> entityType) Constructs a new property with the given path and expressionprotectedStringProperty(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 ExpressionEntityInheritanceTree.normalizedQualifierprotected ExpressionDbEntity.qualifierQualifier, that will be applied to all select queries and joins with this DbEntityprotected ExpressionObjEntity.qualifierMethods 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()Deprecated, for removal: This API element is subject to removal in a future version.since 5.0, as the query is defined by a String, seeSelectQueryDescriptor.getParsedQuery()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 ExpressionEntity.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 TypeMethodDescriptionvoidObjEntity.setDeclaredQualifier(Expression qualifier) Sets a qualifier that imposes a limit on what objects belong to this entity.voidDbEntity.setQualifier(Expression qualifier) Sets qualifier for this entityObjEntity.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 ExpressionEntity.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.ql
Methods in org.apache.cayenne.ql that return ExpressionModifier and TypeMethodDescriptionfinal ExpressionQLParser.expression()JJTQLParserState.popExpression()Same asJJTQLParserState.popNode(), wrapping a literal value in a scalar node.JJTQLParserState.rootNode()Returns the root of the tree, wrapping a lone literal in a scalar node.Methods in org.apache.cayenne.ql with parameters of type ExpressionModifier and TypeMethodDescriptionvoidJJTQLParserState.clearNodeScope(Expression n) voidJJTQLParserState.closeNodeScope(Expression n, boolean condition) A conditional node is constructed if its condition is true.voidJJTQLParserState.closeNodeScope(Expression n, int num) A definite node is constructed from a specified number of children.voidJJTQLParserState.openNodeScope(Expression n) -
Uses of Expression in org.apache.cayenne.query
Fields in org.apache.cayenne.query declared as ExpressionModifier and TypeFieldDescriptionprotected ExpressionFluentSelect.havingprotected ExpressionOrdering.sortSpecprotected ExpressionFluentSelect.whereMethods in org.apache.cayenne.query that return ExpressionModifier and TypeMethodDescriptionprotected ExpressionFluentSelect.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 TypeMethodDescriptionvoidPrefetchSelectQuery.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) Deprecated, for removal: This API element is subject to removal in a future version.useObjectSelect.dataRowQuery(Class)and thenFluentSelect.wherestatic ObjectSelect<DataRow> ObjectSelect.dbQuery(String dbEntityName, Expression expression) Deprecated, for removal: This API element is subject to removal in a future version.useObjectSelect.dbQuery(String)and thenFluentSelect.whereColumnSelect.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) Deprecated, for removal: This API element is subject to removal in a future version.useObjectSelect.query(Class)and thenFluentSelect.wherestatic <T> ObjectSelect<T> ObjectSelect.query(Class<T> entityType, Expression expression, List<Ordering> orderings) Deprecated, for removal: This API element is subject to removal in a future version.protected voidFluentSelect.setActiveExpression(Expression exp) voidOrdering.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 SFluentSelect.joinExpression(Collection<Expression> expressions, Function<Collection<Expression>, Expression> joiner) protected SFluentSelect.joinExpression(Collection<Expression> expressions, Function<Collection<Expression>, Expression> joiner) protected SFluentSelect.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 TypeMethodDescriptionprotected ObjAttributePersistentDescriptorFactory.discriminatorAttribute(PersistentDescriptor descriptor, Expression node) Resolves an "obj:" or "db:" path node of an inheritance qualifier to an ObjAttribute of the descriptor's entity, synthesizing one for a DB column that has no ObjAttribute.voidPersistentDescriptor.setEntityQualifier(Expression entityQualifier)