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()SelectQueryWrapper.getHavingQualifier()Deprecated.TranslatableQueryWrapper.getHavingQualifier()FluentSelectWrapper.getQualifier()SelectQueryWrapper.getQualifier()Deprecated.TranslatableQueryWrapper.getQualifier() -
Uses of Expression in org.apache.cayenne.exp
Methods in org.apache.cayenne.exp that return ExpressionModifier and TypeMethodDescriptionstatic Expressionstatic ExpressionFunctionExpressionFactory.absExp(Expression exp) 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 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 ExpressionFactory method for expression to call CONCAT(string1, string2, ...) functionstatic ExpressionFunctionExpressionFactory.concatExp(Expression... expressions) Factory method for expression to call CONCAT(string1, string2, ...) functionDeprecated.Creates an expression for a database "LIKE" query with the value converted to a pattern matching anywhere in the String.static ExpressionExpressionFactory.containsExp(String pathSpec, String value) static ExpressionExpressionFactory.containsExp(Expression exp, String value) Property.containsIgnoreCase(String value) Deprecated.Same asProperty.contains(String), only using case-insensitive comparison.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.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 ExpressionExpression.deepCopy()Clones this expression.static ExpressionExpressionFactory.enclosingObjectExp(Expression exp) Deprecated.Creates an expression for a database "LIKE" query with the value converted to a pattern matching the tail of a String.static ExpressionExpressionFactory.endsWithExp(String pathSpec, String value) static ExpressionExpressionFactory.endsWithExp(Expression exp, String value) Property.endsWithIgnoreCase(String value) Deprecated.Same asProperty.endsWith(String), only using case-insensitive comparison.static ExpressionExpressionFactory.endsWithIgnoreCaseExp(String pathSpec, String value) Same asExpressionFactory.endsWithExp(String, String)only using case-insensitive comparison.static ExpressionExpressionFactory.endsWithIgnoreCaseExp(Expression exp, String value) static ExpressionExpressionFactory.exists(FluentSelect<?> subQuery) static ExpressionParses string, converting it to Expression and optionally binding positional parameters.static ExpressionExpressionFactory.expFalse()A convenience shortcut for boolean false expression.static ExpressionExpressionFactory.expressionOfType(int type) Creates a new expression for the type requested.static ExpressionExpressionFactory.expTrue()A convenience shortcut for boolean true expression.static ExpressionExpressionFactory.fullObjectExp()static ExpressionExpressionFactory.fullObjectExp(Expression exp) static 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) 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 ExpressionExpressionFactory.joinExp(int type, Collection<Expression> expressions) Joins all expressions, making a single expression.static ExpressionExpressionFactory.joinExp(int type, Expression... expressions) Joins all expressions, making a single expression.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) Deprecated.Deprecated.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) Property.likeIgnoreCase(String pattern) Deprecated.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, int pairType) Creates an expression that matches all key-values pairs inmap.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, int pairType) Creates an expression that matches all key-values pairs inmap.static ExpressionExpressionFactory.matchAnyDbExp(Map<String, ?> map, int pairType) Creates an expression that matches any of the key-values pairs inmap.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, int pairType) Creates an expression that matches any of the key-values pairs in themap.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) Deprecated.Property.nlikeIgnoreCase(String value) Deprecated.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) static ExpressionExpressionFactory.notExists(FluentSelect<?> subQuery) abstract ExpressionExpression.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 Expressionstatic ExpressionFunctionExpressionFactory.secondExp(Expression exp) abstract ExpressionExpression.shallowCopy()Creates a copy of this expression node, without copying children.static Expressionstatic ExpressionFunctionExpressionFactory.sqrtExp(Expression exp) Property.startsWith(String value) Deprecated.Creates an expression for a database "LIKE" query with the value converted to a pattern matching the beginning of a String.static ExpressionExpressionFactory.startsWithExp(String pathSpec, String value) static ExpressionExpressionFactory.startsWithExp(Expression exp, String value) Property.startsWithIgnoreCase(String value) Deprecated.Same asProperty.startsWith(String), only using case-insensitive comparison.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) Wrap value into ASTScalarstatic 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 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 <T> Property<T> Property.create(String name, Expression expression, Class<? super T> type) Deprecated.Creates property with name, expression and typestatic <T> Property<T> Property.create(Expression expression, Class<? super T> type) Deprecated.Creates property with expression and typestatic ExpressionFunctionExpressionFactory.dayOfMonthExp(Expression exp) static ExpressionFunctionExpressionFactory.dayOfWeekExp(Expression exp) static ExpressionFunctionExpressionFactory.dayOfYearExp(Expression exp) static ExpressionExpressionFactory.enclosingObjectExp(Expression exp) voidTraversalHandler.endNode(Expression node, Expression parentNode) Called during the traversal after an expression node children processing is finished.voidTraversalHelper.endNode(Expression node, Expression parentNode) static ExpressionExpressionFactory.endsWithExp(Expression exp, String value) static ExpressionExpressionFactory.endsWithIgnoreCaseExp(Expression exp, String value) voidTraversalHandler.finishedChild(Expression node, int childIndex, boolean hasMoreChildren) Called during traversal after a child of expression has been visited.voidTraversalHelper.finishedChild(Expression node, int childIndex, boolean hasMoreChildren) static ExpressionExpressionFactory.fullObjectExp(Expression exp) static 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) 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 ExpressionExpressionFactory.joinExp(int type, Expression... expressions) Joins all expressions, making a single expression.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.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) voidTraversalHandler.objectNode(Object leaf, Expression parentNode) Called during the traversal when a leaf non-expression node is encountered.voidTraversalHelper.objectNode(Object leaf, Expression parentNode) 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) voidTraversalHandler.startNode(Expression node, Expression parentNode) Called during the traversal before an expression node children processing is started.voidTraversalHelper.startNode(Expression node, Expression parentNode) 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.joinExp(int type, Collection<Expression> expressions) Joins all expressions, making a single expression.static ExpressionExpressionFactory.or(Collection<Expression> expressions) Constructors in org.apache.cayenne.exp with parameters of type ExpressionModifierConstructorDescriptionprotectedProperty(String name, Expression expression, Class<E> type) Deprecated.Constructs a new property with the given name and expression -
Uses of Expression in org.apache.cayenne.exp.parser
Subclasses of Expression in org.apache.cayenne.exp.parserModifier and TypeClassDescriptionclassSuperclass of aggregated conditional nodes such as NOT, AND, OR.classclass"Add" Expression.classBase class for all aggregation functions expressions It's more like marker interface for now.class"And" expression.classAsterisk operator for COUNT(*) expression.classclass"Between" expression.classBitwise conjunction (AND or '&') expressionclassBitwise left shift '<<' operation.classBitwise negation (NOT i.e.classBitwise disjunction (OR or '|') expression.classBitwise right shift '>>' operation.classBitwise exclusive disjunction (XOR or '^') operation.classclassclassclassclassclassclassclassclassPath expression traversing DB relationships and attributes.classclass"Divide" expression.classclassScalar node that represents constant enumeration value.class"Equal To" expression.classclassclassBoolean false expression element Notice that there is one ASTTrue and one ASTFalse instead of a ASTBoolean with a Boolean value.classclassclass"Greater Than" expression.class"Greater Than Or Equal To" expression.class"In" expression.classclass"Less Then" expression.class"Less than or equal to" expression.class"Like" expression.class"Case insensitive like" expression.classA leaf expression representing an immutable collection of values.classclassclassclassclassclass"Multiply" expression.classA named expression parameter.class"Negate" expression.class"Not" expression.class"Not Between" expression.class"Not equal to" expression.classclass"Not In" expression.class"Not Like" expression.class"Not like, ignore case" expression.classclass"Or" expression.classGeneric path expression.classA scalar value wrapper expression.classclassclassclass"Subtract" expression.classclassclassBoolean true expression element Notice that there is one ASTTrue and one ASTFalse instead of a ASTBoolean with a Boolean value.classclassSuperclass of conditional expressions.classclassclassclassSuperclass of pattern matching nodes.classSuperclass of AST* expressions that implements Node interface defined by JavaCC framework.Methods in org.apache.cayenne.exp.parser that return ExpressionModifier and TypeMethodDescriptionfinal ExpressionExpressionParser.expression()SimpleNode.notExp()ASTAbs.shallowCopy()ASTAdd.shallowCopy()Creates a copy of this expression node, without copying children.ASTAnd.shallowCopy()Creates a copy of this expression node, without copying children.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()ASTConcat.shallowCopy()ASTCount.shallowCopy()ASTCurrentDate.shallowCopy()ASTCurrentTime.shallowCopy()ASTCurrentTimestamp.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.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()ASTTrim.shallowCopy()ASTTrue.shallowCopy()ASTUpper.shallowCopy()Constructors in org.apache.cayenne.exp.parser with parameters of type ExpressionModifierConstructorDescriptionASTAbs(Expression expression) ASTAvg(Expression expression) ASTConcat(Expression... expressions) ASTCount(Expression expression) ASTDistinct(Expression expression) ASTEnclosingObject(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) ASTSqrt(Expression expression) ASTSubstring(Expression path, Expression length, Expression offset) ASTSum(Expression expression) ASTTrim(Expression path) ASTUpper(Expression expression) -
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) final ExpressionMapProperty.contains(Collection<V> values) final ExpressionCreates 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) CollectionProperty.containsId(Collection<Object> ids) MapProperty.containsId(Object id) MapProperty.containsId(Object firstId, Object... moreId) MapProperty.containsId(Collection<Object> ids) StringProperty.containsIgnoreCase(String value) Same asStringProperty.contains(String), only using case-insensitive comparison.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 ExpressionBaseProperty.getExpression()This method returns fresh copy of the expression for each call.Property.getExpression()default Expressiondefault ExpressionComparableProperty.gt(ComparableProperty<?> value) default Expressiondefault ExpressionComparableProperty.gte(ComparableProperty<?> value) BaseProperty.in(Collection<E> values) BaseProperty.in(ColumnSelect<? extends E> subquery) EntityProperty.inId(Collection<Object> ids) 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 Expressiondefault ExpressionComparableProperty.lte(ComparableProperty<?> value) BaseProperty.ne(BaseProperty<?> value) BaseProperty.nin(Collection<E> values) BaseProperty.nin(ColumnSelect<? extends E> subquery) EntityProperty.ninId(Collection<Object> ids) StringProperty.nlike(StringProperty<?> value) StringProperty.nlikeIgnoreCase(String value) StringProperty.nlikeIgnoreCase(StringProperty<?> value) CollectionProperty.notContains(Collection<V> values) CollectionProperty.notContains(V value) final ExpressionCollectionProperty.notContains(V firstValue, V... moreValues) MapProperty.notContains(Collection<V> values) MapProperty.notContains(V value) final ExpressionMapProperty.notContains(V firstValue, V... moreValues) CollectionProperty.notContainsId(Object id) CollectionProperty.notContainsId(Object firstId, Object... moreId) CollectionProperty.notContainsId(Collection<Object> ids) MapProperty.notContainsId(Object id) MapProperty.notContainsId(Object firstId, Object... moreId) MapProperty.notContainsId(Collection<Object> ids) BaseProperty.path()Deprecated.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> 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 extends EmbeddableObject>
EmbeddableProperty<T> PropertyFactory.createEmbeddable(String name, 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>
ListProperty<T> PropertyFactory.createList(String name, 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 <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 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 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 propertyConstructors in org.apache.cayenne.exp.property with parameters of type ExpressionModifierConstructorDescriptionprotectedBaseProperty(String name, Expression expression, Class<? super E> type) Constructs a new property with the given name and expressionprotectedCollectionProperty(String name, Expression expression, Class<? super E> collectionType, Class<V> entityType) Constructs a new property with the given name and expressionprotectedDateProperty(String name, Expression expression, Class<E> type) Constructs a new property with the given name and expressionprotectedEmbeddableProperty(String name, Expression exp, Class<? super E> type) Constructs a new property with the given name and typeprotectedEntityProperty(String name, Expression expression, Class<E> type) Constructs a new property with the given name and expressionprotectedListProperty(String name, Expression expression, Class<V> entityType) Constructs a new property with the given name and expressionprotectedMapProperty(String name, Expression expression, Class<K> keyType, Class<V> entityType) Constructs a new property with the given name and expressionprotectedNumericProperty(String name, Expression expression, Class<E> type) Constructs a new property with the given name and expressionprotectedSetProperty(String name, Expression expression, Class<V> entityType) Constructs a new property with the given name and expressionprotectedStringProperty(String name, 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.qualifierprotected ExpressionQueryDescriptorLoader.qualifierprotected ExpressionSelectQueryDescriptor.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()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, String relationshipPath) Transforms Expression rooted in this entity to an analogous expression rooted in related entity.abstract ExpressionEntity.translateToRelatedEntity(Expression expression, String relationshipPath) Translates 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.Methods in org.apache.cayenne.map with parameters of type ExpressionModifier and TypeMethodDescriptionDbEntity.lastPathComponent(Expression path, Map aliasMap) <T extends Attribute,U extends Relationship>
PathComponent<T, U> Entity.lastPathComponent(Expression path, Map aliasMap) Convenience method returning the last component in the path iterator.ObjEntity.lastPathComponent(Expression path, Map aliasMap) DbEntity.resolvePath(Expression pathExp, Map aliasMap) Returns an Iterable instance over expression path components based on this entity.abstract <T extends Attribute,U extends Relationship>
Iterable<PathComponent<T, U>> Entity.resolvePath(Expression pathExp, Map aliasMap) Returns an Iterable over the path components with elements represented asPathComponentinstances, encapsulating a relationship, an attribute or a subpath alias.ObjEntity.resolvePath(Expression pathExp, Map 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 expressionpathExpand returns an Iterator of path components that contains a sequence of Attributes and Relationships.ObjEntity.resolvePathComponents(Expression pathExp) voidObjEntity.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 entityvoidSelectQueryDescriptor.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, String relationshipPath) Transforms Expression rooted in this entity to an analogous expression rooted in related entity.abstract ExpressionEntity.translateToRelatedEntity(Expression expression, String relationshipPath) Translates 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. -
Uses of Expression in org.apache.cayenne.query
Fields in org.apache.cayenne.query declared as ExpressionModifier and TypeFieldDescriptionprotected ExpressionFluentSelect.havingprotected ExpressionSelectQuery.havingQualifierDeprecated.protected ExpressionSelectQuery.qualifierDeprecated.protected ExpressionOrdering.sortSpecprotected ExpressionFluentSelect.whereMethods in org.apache.cayenne.query that return ExpressionModifier and TypeMethodDescriptionFluentSelect.getHaving()Returns a HAVING clause Expression of this query.SelectQuery.getHavingQualifier()Deprecated.Returns query HAVING qualifier.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) SelectQuery.getQualifier()Deprecated.Returns query qualifier.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 TypeMethodDescriptionColumnSelect.and(Expression... expressions) AND's provided expressions to the existing WHERE clause expression.ObjectSelect.and(Expression... expressions) AND's provided expressions to the existing WHERE clause expression.voidSelectQuery.andHavingQualifier(Expression e) Deprecated.Adds specified HAVING qualifier to the existing HAVING qualifier joining it using "AND".voidSelectQuery.andQualifier(Expression e) Deprecated.Adds specified qualifier to the existing qualifier joining it using "AND".static ObjectSelect<DataRow> ObjectSelect.dataRowQuery(Class<?> entityType, Expression expression) Creates a ObjectSelect that fetches data for anObjEntitydetermined from a provided class and uses provided expression for its qualifier.static SelectQuery<DataRow> SelectQuery.dataRowQuery(Class<?> rootClass, Expression qualifier) Deprecated.Creates a SelectQuery that selects DataRows that correspond to a given persistent class that match supplied qualifier.static SelectQuery<DataRow> SelectQuery.dataRowQuery(Class<?> rootClass, Expression qualifier, List<Ordering> orderings) Deprecated.static ObjectSelect<DataRow> ObjectSelect.dbQuery(String dbEntityName, Expression expression) Creates a ObjectSelect that fetches DataRows for aDbEntitydetermined 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.ColumnSelect.or(Expression... expressions) OR's provided expressions to the existing WHERE clause expression.ObjectSelect.or(Expression... expressions) OR's provided expressions to the existing WHERE clause expression.voidSelectQuery.orHavingQualifier(Expression e) Deprecated.Adds specified HAVING qualifier to the existing HAVING qualifier joining it using "OR".voidSelectQuery.orQualifier(Expression e) Deprecated.Adds specified qualifier to the existing qualifier joining it using "OR".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.static <T> SelectQuery<T> SelectQuery.query(Class<T> rootClass, Expression qualifier) Deprecated.Creates a SelectQuery that selects objects of a given persistent class that match supplied qualifier.static <T> SelectQuery<T> SelectQuery.query(Class<T> rootClass, Expression qualifier, List<? extends Ordering> orderings) Deprecated.Creates a SelectQuery that selects objects of a given persistent class that match supplied qualifier.voidSelectQuery.setHavingQualifier(Expression qualifier) Deprecated.Sets new query HAVING qualifier.voidSelectQuery.setQualifier(Expression qualifier) Deprecated.Sets new query qualifier.voidOrdering.setSortSpec(Expression sortSpec) Sets the expression defining a ordering Java Bean property.ColumnSelect.where(Expression expression) Appends a qualifier expression of this query.ObjectSelect.where(Expression expression) Appends a qualifier expression of this query.Method parameters in org.apache.cayenne.query with type arguments of type ExpressionModifier and TypeMethodDescriptionColumnSelect.and(Collection<Expression> expressions) AND's provided expressions to the existing WHERE or HAVING clause expression.ObjectSelect.and(Collection<Expression> expressions) AND's provided expressions to the existing WHERE clause expression.ColumnSelect.or(Collection<Expression> expressions) OR's provided expressions to the existing WHERE or HAVING clause expression.ObjectSelect.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) SelectQuery(Class<T> rootClass, Expression qualifier) Deprecated.Creates a SelectQuery that selects objects of a given persistent class that match supplied qualifier.SelectQuery(Class<T> rootClass, Expression qualifier, List<? extends Ordering> orderings) Deprecated.Creates a SelectQuery that selects objects of a given persistent class that match supplied qualifier.SelectQuery(String objEntityName, Expression qualifier) Deprecated.Creates SelectQuery withobjEntityNameandqualifierparameters.SelectQuery(String objEntityName, Expression qualifier, List<? extends Ordering> orderings) Deprecated.Creates a SelectQuery that selects objects of a given persistent class that match supplied qualifier.SelectQuery(DbEntity root, Expression qualifier) Deprecated.Creates a SelectQuery for the specified DbEntity with the given qualifier.SelectQuery(DbEntity root, Expression qualifier, List<? extends Ordering> orderings) Deprecated.Creates a SelectQuery for the specified DbEntity with the given qualifier and orderings.SelectQuery(ObjEntity root, Expression qualifier) Deprecated.Creates a SelectQuery for the specified ObjEntity with the given qualifier.SelectQuery(ObjEntity root, Expression qualifier, List<? extends Ordering> orderings) Deprecated.Creates a SelectQuery for the specified ObjEntity with the given qualifier and orderings. -
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 TypeMethodDescriptionvoidPersistentDescriptor.setEntityQualifier(Expression entityQualifier)
BaseProperty.getExpression()method instead