Uses of Class
org.apache.cayenne.exp.Expression
-
Packages that use Expression Package Description org.apache.cayenne.access.translator.select org.apache.cayenne.dba.db2 IBM DB2 DbAdapter.org.apache.cayenne.dba.derby Apache Derby DbAdapter.org.apache.cayenne.dba.firebird org.apache.cayenne.dba.frontbase FrontBase DbAdapter.org.apache.cayenne.dba.openbase OpenBase DbAdapter.org.apache.cayenne.dba.oracle Oracle DbAdapter.org.apache.cayenne.dba.postgres PostgreSQL DbAdapter.org.apache.cayenne.dba.sqlite org.apache.cayenne.dba.sybase Sybase DbAdapter.org.apache.cayenne.exp Cayenne data expression classes.org.apache.cayenne.exp.parser Contains expression parser and other expression internals.org.apache.cayenne.map Contains O/R mapping classes that store relational database metadata information and map it to Java classes.org.apache.cayenne.query Defines standard queries supported by Cayenne and extension mechanism to create custom queries.org.apache.cayenne.reflect -
-
Uses of Expression in org.apache.cayenne.access.translator.select
Fields in org.apache.cayenne.access.translator.select declared as Expression Modifier and Type Field Description protected ExpressionDataObjectMatchTranslator. expressionprotected ExpressionQualifierTranslator. qualifierprotected ExpressionQualifierTranslator. waitingForEndNodeMethods in org.apache.cayenne.access.translator.select that return Expression Modifier and Type Method Description protected ExpressionQualifierTranslator. extractQualifier()ExpressionDataObjectMatchTranslator. getExpression()Methods in org.apache.cayenne.access.translator.select with parameters of type Expression Modifier and Type Method Description protected voidQueryAssemblerHelper. appendDbPath(Expression pathExp)protected voidOrderingTranslator. appendFunction(Expression exp)protected voidQualifierTranslator. appendLiteral(Object val, DbAttribute attr, Expression parentExpression)protected voidQueryAssemblerHelper. appendLiteral(Object val, DbAttribute attr, Expression parentExpression)Appends SQL code to the query buffer to handlevalas a parameter to the PreparedStatement being built.protected voidQueryAssemblerHelper. appendLiteralDirect(Object val, DbAttribute attr, Expression parentExpression)Appends SQL code to the query buffer to handlevalas a parameter to the PreparedStatement being built.protected voidQueryAssemblerHelper. appendObjPath(Expression pathExp)Processes parts of the OBJ_PATH expression.protected voidQualifierTranslator. detectObjectMatch(Expression exp)Called before processing an expression to initialize objectMatchTranslator if needed.protected voidQualifierTranslator. doAppendPart(Expression rootNode)Translates query qualifier to SQL WHERE clause.voidQualifierTranslator. endNode(Expression node, Expression parentNode)voidQualifierTranslator. finishedChild(Expression node, int childIndex, boolean hasMoreChildren)StringDefaultSelectTranslator. getAliasForExpression(Expression exp)abstract StringQueryAssembler. getAliasForExpression(Expression exp)voidQualifierTranslator. objectNode(Object leaf, Expression parentNode)protected DbAttributeQueryAssemblerHelper. paramsDbType(Expression e)Returns database type of expression parameters or null if it can not be determined.protected booleanQualifierTranslator. parenthesisNeeded(Expression node, Expression parentNode)protected voidQueryAssemblerHelper. processColumnWithQuoteSqlIdentifiers(DbAttribute dbAttr, Expression pathExp)protected voidTrimmingQualifierTranslator. processColumnWithQuoteSqlIdentifiers(DbAttribute dbAttr, Expression pathExp)Adds special handling of CHAR columns.voidDataObjectMatchTranslator. setExpression(Expression expression)voidQualifierTranslator. setQualifier(Expression qualifier)Explicitly set qualifier.voidQualifierTranslator. startNode(Expression node, Expression parentNode) -
Uses of Expression in org.apache.cayenne.dba.db2
Methods in org.apache.cayenne.dba.db2 with parameters of type Expression Modifier and Type Method Description protected voidDB2QualifierTranslator. appendLiteralDirect(Object val, DbAttribute attr, Expression parentExpression)protected voidDB2QualifierTranslator. processColumnWithQuoteSqlIdentifiers(DbAttribute dbAttr, Expression pathExp) -
Uses of Expression in org.apache.cayenne.dba.derby
Methods in org.apache.cayenne.dba.derby with parameters of type Expression Modifier and Type Method Description protected voidDerbyQualifierTranslator. processColumnWithQuoteSqlIdentifiers(DbAttribute dbAttr, Expression pathExp) -
Uses of Expression in org.apache.cayenne.dba.firebird
Methods in org.apache.cayenne.dba.firebird with parameters of type Expression Modifier and Type Method Description protected voidFirebirdQualifierTranslator. doAppendPart(Expression rootNode)protected booleanFirebirdQualifierTranslator. parenthesisNeeded(Expression node, Expression parentNode) -
Uses of Expression in org.apache.cayenne.dba.frontbase
Methods in org.apache.cayenne.dba.frontbase with parameters of type Expression Modifier and Type Method Description protected booleanFrontBaseQualifierTranslator. parenthesisNeeded(Expression node, Expression parentNode) -
Uses of Expression in org.apache.cayenne.dba.openbase
Methods in org.apache.cayenne.dba.openbase with parameters of type Expression Modifier and Type Method Description protected voidOpenBaseQualifierTranslator. appendLiteralDirect(Object val, DbAttribute attr, Expression parentExpression)voidOpenBaseQualifierTranslator. endNode(Expression node, Expression parentNode)voidOpenBaseQualifierTranslator. finishedChild(Expression node, int childIndex, boolean hasMoreChildren)voidOpenBaseQualifierTranslator. startNode(Expression node, Expression parentNode) -
Uses of Expression in org.apache.cayenne.dba.oracle
Methods in org.apache.cayenne.dba.oracle that return Expression Modifier and Type Method Description ExpressionOracleQualifierTranslator.INTrimmer. trimmedInExpression(Expression exp, int maxInSize)Methods in org.apache.cayenne.dba.oracle with parameters of type Expression Modifier and Type Method Description protected voidOracleQualifierTranslator. doAppendPart(Expression rootNode)voidOracleQualifierTranslator. endNode(Expression node, Expression parentNode)protected booleanOracleQualifierTranslator. parenthesisNeeded(Expression node, Expression parentNode)ExpressionOracleQualifierTranslator.INTrimmer. trimmedInExpression(Expression exp, int maxInSize) -
Uses of Expression in org.apache.cayenne.dba.postgres
Methods in org.apache.cayenne.dba.postgres with parameters of type Expression Modifier and Type Method Description voidPostgresQualifierTranslator. endNode(Expression node, Expression parentNode)voidPostgresQualifierTranslator. finishedChild(Expression node, int childIndex, boolean hasMoreChildren)protected booleanPostgresQualifierTranslator. parenthesisNeeded(Expression node, Expression parentNode)voidPostgresQualifierTranslator. startNode(Expression node, Expression parentNode) -
Uses of Expression in org.apache.cayenne.dba.sqlite
Methods in org.apache.cayenne.dba.sqlite with parameters of type Expression Modifier and Type Method Description voidSQLiteQualifierTranslator. endNode(Expression node, Expression parentNode)protected booleanSQLiteQualifierTranslator. parenthesisNeeded(Expression node, Expression parentNode) -
Uses of Expression in org.apache.cayenne.dba.sybase
Methods in org.apache.cayenne.dba.sybase with parameters of type Expression Modifier and Type Method Description protected booleanSybaseQualifierTranslator. parenthesisNeeded(Expression node, Expression parentNode) -
Uses of Expression in org.apache.cayenne.exp
Methods in org.apache.cayenne.exp that return Expression Modifier and Type Method Description static ExpressionFunctionExpressionFactory. absExp(String path)static ExpressionFunctionExpressionFactory. absExp(Expression exp)static ExpressionExpressionFactory. and(Collection<Expression> expressions)static ExpressionExpressionFactory. and(Expression... expressions)ExpressionExpression. andExp(Expression exp)Chains this expression with another expression using "and".ExpressionExpression. andExp(Expression exp, Expression... expressions)Chains this expression with other expressions using "and".static ExpressionFunctionExpressionFactory. avgExp(Expression exp)ExpressionProperty. between(E lower, E upper)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 ExpressionFunctionExpressionFactory. concatExp(String... paths)Factory method for expression to call CONCAT(string1, string2, ...) functionstatic ExpressionFunctionExpressionFactory. concatExp(Expression... expressions)Factory method for expression to call CONCAT(string1, string2, ...) functionExpressionProperty. contains(String substring)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)ExpressionProperty. containsIgnoreCase(String value)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 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. dbPathExp(String pathSpec)ExpressionExpression. deepCopy()Clones this expression.ExpressionProperty. endsWith(String value)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)ExpressionProperty. endsWithIgnoreCase(String value)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.ExpressionProperty. eq(E value)ExpressionProperty. eq(Property<?> value)static ExpressionExpressionFactory. exp(String expressionString, Object... parameters)Parses 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)ExpressionProperty. getExpression()This method returns fresh copy of the expression for each call.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. 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.ExpressionProperty. gt(E value)ExpressionProperty. gt(Property<?> value)ExpressionProperty. gte(E value)ExpressionProperty. gte(Property<?> value)static ExpressionFunctionExpressionFactory. hourExp(String path)static ExpressionFunctionExpressionFactory. hourExp(Expression exp)ExpressionProperty. in(E firstValue, E... moreValues)ExpressionProperty. in(Collection<E> values)static ExpressionExpressionFactory. inDbExp(String pathSpec, Object... values)A convenience shortcut for building IN DB expression.static ExpressionExpressionFactory. inDbExp(String pathSpec, Collection<?> values)A convenience shortcut for building IN DB expression.static ExpressionExpressionFactory. inExp(String pathSpec, Object... values)A convenience shortcut for building IN expression.static ExpressionExpressionFactory. inExp(String pathSpec, Collection<?> values)A convenience shortcut for building IN expression.ExpressionProperty. isFalse()ExpressionProperty. isNotNull()ExpressionProperty. isNull()ExpressionProperty. isTrue()ExpressionExpression. joinExp(int type, Expression exp)Creates a new expression that joins this object with another expression, using specified join type.ExpressionExpression. 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 ExpressionFunctionExpressionFactory. lengthExp(String path)static ExpressionFunctionExpressionFactory. lengthExp(Expression exp)static ExpressionExpressionFactory. lessDbExp(String pathSpec, Object value)A convenience method to create an DB_PATH "less than" expression.static ExpressionExpressionFactory. lessExp(String pathSpec, Object value)A convenience method to create an OBJ_PATH "less than" expression.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.ExpressionProperty. like(String pattern)ExpressionProperty. like(String pattern, char escapeChar)static ExpressionExpressionFactory. likeDbExp(String pathSpec, Object value)A convenience shortcut for building LIKE DB_PATH expression.static ExpressionExpressionFactory. likeDbExp(String pathSpec, Object value, char escapeChar)A convenience shortcut for building LIKE DB_PATH expression.static ExpressionExpressionFactory. likeExp(String pathSpec, Object value)A convenience shortcut for building LIKE expression.static ExpressionExpressionFactory. likeExp(String pathSpec, Object value, char escapeChar)A convenience shortcut for building LIKE expression.ExpressionProperty. likeIgnoreCase(String pattern)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 ExpressionFunctionExpressionFactory. locateExp(String substring, String path)Call 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 ExpressionFunctionExpressionFactory. lowerExp(String path)static ExpressionFunctionExpressionFactory. lowerExp(Expression exp)ExpressionProperty. lt(E value)ExpressionProperty. lt(Property<?> value)ExpressionProperty. lte(E value)ExpressionProperty. lte(Property<?> value)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. matchExp(String pathSpec, Object value)A convenience method to create an OBJ_PATH "equal to" expression.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 ExpressionFunctionExpressionFactory. minuteExp(String path)static ExpressionFunctionExpressionFactory. minuteExp(Expression exp)static ExpressionFunctionExpressionFactory. modExp(String path, Number number)static ExpressionFunctionExpressionFactory. modExp(Expression exp, Number number)static ExpressionFunctionExpressionFactory. modExp(Expression exp, Expression number)static ExpressionFunctionExpressionFactory. monthExp(String path)static ExpressionFunctionExpressionFactory. monthExp(Expression exp)ExpressionProperty. ne(E value)ExpressionProperty. ne(Property<?> value)ExpressionProperty. nin(E firstValue, E... moreValues)ExpressionProperty. nin(Collection<E> values)ExpressionProperty. nlike(String value)ExpressionProperty. nlikeIgnoreCase(String value)static ExpressionExpressionFactory. noMatchDbExp(String pathSpec, Object value)A convenience method to create an DB_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. 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.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. notInExp(String pathSpec, Object... values)A convenience shortcut for building NOT_IN expression.static ExpressionExpressionFactory. notInExp(String pathSpec, Collection<?> values)A convenience shortcut for building NOT_IN expression.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. 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. or(Collection<Expression> expressions)static ExpressionExpressionFactory. or(Expression... expressions)ExpressionExpression. orExp(Expression exp)Chains this expression with another expression using "or".ExpressionExpression. orExp(Expression exp, Expression... expressions)Chains this expression with other expressions using "or".ExpressionExpression. params(Map<String,?> parameters)Creates and returns a new Expression instance based on this expression, but with named parameters substituted with provided values.ExpressionExpression. params(Map<String,?> parameters, boolean pruneMissing)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.ExpressionExpression. paramsArray(Object... parameters)Creates and returns a new Expression instance based on this expression, but with parameters substituted with provided values.ExpressionProperty. path()Converts this property to a path expression.static ExpressionExpressionFactory. pathExp(String pathSpec)static ExpressionFunctionExpressionFactory. secondExp(String path)static ExpressionFunctionExpressionFactory. secondExp(Expression exp)abstract ExpressionExpression. shallowCopy()Creates a copy of this expression node, without copying children.static ExpressionFunctionExpressionFactory. sqrtExp(String path)static ExpressionFunctionExpressionFactory. sqrtExp(Expression exp)ExpressionProperty. startsWith(String value)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)ExpressionProperty. startsWithIgnoreCase(String value)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 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)ExpressionExpression. transform(Function<Object,Object> transformer)Creates a transformed copy of this expression, applying transformation provided by Transformer to all its nodes.static ExpressionFunctionExpressionFactory. trimExp(String path)static ExpressionFunctionExpressionFactory. trimExp(Expression exp)static ExpressionFunctionExpressionFactory. upperExp(String path)static ExpressionFunctionExpressionFactory. upperExp(Expression exp)static ExpressionFunctionExpressionFactory. weekExp(String path)static ExpressionFunctionExpressionFactory. weekExp(Expression exp)static ExpressionFunctionExpressionFactory. yearExp(String path)static ExpressionFunctionExpressionFactory. yearExp(Expression exp)Methods in org.apache.cayenne.exp with parameters of type Expression Modifier and Type Method Description static ExpressionFunctionExpressionFactory. absExp(Expression exp)static ExpressionExpressionFactory. and(Expression... expressions)ExpressionExpression. andExp(Expression exp)Chains this expression with another expression using "and".ExpressionExpression. andExp(Expression exp, Expression... expressions)Chains this expression with other expressions using "and".static ExpressionFunctionExpressionFactory. avgExp(Expression exp)static ExpressionFunctionExpressionFactory. concatExp(Expression... expressions)Factory method for expression to call CONCAT(string1, string2, ...) functionstatic ExpressionFunctionExpressionFactory. countDistinctExp(Expression exp)static ExpressionFunctionExpressionFactory. countExp(Expression exp)static <T> Property<T>Property. create(String name, Expression expression, Class<? super T> type)Creates property with name, expression and typestatic <T> Property<T>Property. create(Expression expression, Class<? super T> type)Creates property with expression and typestatic ExpressionFunctionExpressionFactory. dayOfMonthExp(Expression exp)static ExpressionFunctionExpressionFactory. dayOfWeekExp(Expression exp)static ExpressionFunctionExpressionFactory. dayOfYearExp(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)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 ExpressionFunctionExpressionFactory. hourExp(Expression exp)ExpressionExpression. joinExp(int type, Expression exp)Creates a new expression that joins this object with another expression, using specified join type.ExpressionExpression. 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 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 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)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)ExpressionExpression. orExp(Expression exp)Chains this expression with another expression using "or".ExpressionExpression. 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 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 Expression Modifier and Type Method Description static 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 Expression Constructor Description Property(String name, Expression expression, Class<? super E> type)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.parser Modifier and Type Class Description classAggregateConditionNodeSuperclass of aggregated conditional nodes such as NOT, AND, OR.classASTAbsclassASTAdd"Add" Expression.classASTAggregateFunctionCallBase class for all aggregation functions expressions It's more like marker interface for now.classASTAnd"And" expression.classASTAsteriskAsterisk operator for COUNT(*) expression.classASTAvgclassASTBetween"Between" expression.classASTBitwiseAndBitwise conjunction (AND or '&') expressionclassASTBitwiseLeftShiftBitwise left shift '<<' operation.classASTBitwiseNotBitwise negation (NOT i.e.classASTBitwiseOrBitwise disjunction (OR or '|') expression.classASTBitwiseRightShiftBitwise right shift '>>' operation.classASTBitwiseXorBitwise exclusive disjunction (XOR or '^') operation.classASTConcatclassASTCountclassASTCurrentDateclassASTCurrentTimeclassASTCurrentTimestampclassASTDbPathPath expression traversing DB relationships and attributes.classASTDistinctclassASTDivide"Divide" expression.classASTEnumScalar node that represents constant enumeration value.classASTEqual"Equal To" expression.classASTExtractclassASTFalseBoolean false expression element Notice that there is one ASTTrue and one ASTFalse instead of a ASTBoolean with a Boolean value.classASTFullObjectclassASTFunctionCallclassASTGreater"Greater Than" expression.classASTGreaterOrEqual"Greater Than Or Equal To" expression.classASTIn"In" expression.classASTLengthclassASTLess"Less Then" expression.classASTLessOrEqual"Less than or equal to" expression.classASTLike"Like" expression.classASTLikeIgnoreCase"Case insensitive like" expression.classASTListA leaf expression representing an immutable collection of values.classASTLocateclassASTLowerclassASTMaxclassASTMinclassASTModclassASTMultiply"Multiply" expression.classASTNamedParameterA named expression parameter.classASTNegate"Negate" expression.classASTNot"Not" expression.classASTNotBetween"Not Between" expression.classASTNotEqual"Not equal to" expression.classASTNotIn"Not In" expression.classASTNotLike"Not Like" expression.classASTNotLikeIgnoreCase"Not like, ignore case" expression.classASTObjPathclassASTOr"Or" expression.classASTPathGeneric path expression.classASTScalarA scalar value wrapper expression.classASTSqrtclassASTSubstringclassASTSubtract"Subtract" expression.classASTSumclassASTTrimclassASTTrueBoolean true expression element Notice that there is one ASTTrue and one ASTFalse instead of a ASTBoolean with a Boolean value.classASTUpperclassConditionNodeSuperclass of conditional expressions.classEvaluatedBitwiseNodeclassEvaluatedMathNodeclassEvaluatedNodeclassPatternMatchNodeSuperclass of pattern matching nodes.classSimpleNodeSuperclass of AST* expressions that implements Node interface defined by JavaCC framework.Methods in org.apache.cayenne.exp.parser that return Expression Modifier and Type Method Description ExpressionExpressionParser. expression()ExpressionSimpleNode. notExp()ExpressionASTAbs. shallowCopy()ExpressionASTAdd. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTAnd. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTAsterisk. shallowCopy()ExpressionASTAvg. shallowCopy()ExpressionASTBetween. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTBitwiseAnd. shallowCopy()ExpressionASTBitwiseLeftShift. shallowCopy()ExpressionASTBitwiseNot. shallowCopy()ExpressionASTBitwiseOr. shallowCopy()ExpressionASTBitwiseRightShift. shallowCopy()ExpressionASTBitwiseXor. shallowCopy()ExpressionASTConcat. shallowCopy()ExpressionASTCount. shallowCopy()ExpressionASTCurrentDate. shallowCopy()ExpressionASTCurrentTime. shallowCopy()ExpressionASTCurrentTimestamp. shallowCopy()ExpressionASTDbPath. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTDistinct. shallowCopy()ExpressionASTDivide. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTEnum. shallowCopy()ExpressionASTEqual. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTExtract. shallowCopy()ExpressionASTFalse. shallowCopy()ExpressionASTFullObject. shallowCopy()ExpressionASTGreater. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTGreaterOrEqual. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTIn. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTLength. shallowCopy()ExpressionASTLess. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTLessOrEqual. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTLike. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTLikeIgnoreCase. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTList. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTLocate. shallowCopy()ExpressionASTLower. shallowCopy()ExpressionASTMax. shallowCopy()ExpressionASTMin. shallowCopy()ExpressionASTMod. shallowCopy()ExpressionASTMultiply. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTNamedParameter. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTNegate. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTNot. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTNotBetween. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTNotEqual. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTNotIn. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTNotLike. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTNotLikeIgnoreCase. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTObjPath. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTOr. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTScalar. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTSqrt. shallowCopy()ExpressionASTSubstring. shallowCopy()ExpressionASTSubtract. shallowCopy()Creates a copy of this expression node, without copying children.ExpressionASTSum. shallowCopy()ExpressionASTTrim. shallowCopy()ExpressionASTTrue. shallowCopy()ExpressionASTUpper. shallowCopy()Constructors in org.apache.cayenne.exp.parser with parameters of type Expression Constructor Description ASTAbs(Expression expression)ASTAvg(Expression expression)ASTConcat(Expression... expressions)ASTCount(Expression expression)ASTDistinct(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.map
Fields in org.apache.cayenne.map declared as Expression Modifier and Type Field Description protected 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 Expression Modifier and Type Method Description ExpressionEntityInheritanceTree. getDbQualifier()Returns entity qualifier expressed as DB path qualifier or null if entity has no qualifier.ExpressionObjEntity. getDeclaredQualifier()Returns a qualifier that imposes a restriction on what objects belong to this entity.ExpressionDbEntity. getQualifier()ExpressionSelectQueryDescriptor. getQualifier()Returns qualifier of this query.ExpressionEntityInheritanceTree. qualifierForEntityAndSubclasses()Returns a qualifier Expression that matches root entity of this tree and all its subentities.ExpressionObjEntity. translateToDbPath(Expression expression)Transforms an Expression to an analogous expression in terms of the underlying DbEntity.ExpressionDbEntity. 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.ExpressionObjEntity. 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 Expression Modifier and Type Method Description PathComponent<DbAttribute,DbRelationship>DbEntity. 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.PathComponent<ObjAttribute,ObjRelationship>ObjEntity. lastPathComponent(Expression path, Map aliasMap)Iterable<PathComponent<DbAttribute,DbRelationship>>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.Iterable<PathComponent<ObjAttribute,ObjRelationship>>ObjEntity. resolvePath(Expression pathExp, Map aliasMap)Returns an Iterable instance over expression path components based on this entity.Iterator<CayenneMapEntry>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.Iterator<CayenneMapEntry>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.ExpressionObjEntity. translateToDbPath(Expression expression)Transforms an Expression to an analogous expression in terms of the underlying DbEntity.ExpressionDbEntity. 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.ExpressionObjEntity. 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 Expression Modifier and Type Field Description protected ExpressionSelectQuery. havingQualifierprotected ExpressionSelectQuery. qualifierprotected ExpressionOrdering. sortSpecprotected ExpressionFluentSelect. whereMethods in org.apache.cayenne.query that return Expression Modifier and Type Method Description ExpressionColumnSelect. getHaving()Returns a HAVING clause Expression of this query.ExpressionSelectQuery. getHavingQualifier()Returns query HAVING qualifier.ExpressionSelectQuery. getQualifier()Returns query qualifier.ExpressionOrdering. getSortSpec()Returns the expression defining a ordering Java Bean property.ExpressionFluentSelect. getWhere()Returns a WHERE clause Expression of this query.Methods in org.apache.cayenne.query with parameters of type Expression Modifier and Type Method Description ColumnSelect<T>ColumnSelect. and(Expression... expressions)AND's provided expressions to the existing WHERE clause expression.ObjectSelect<T>ObjectSelect. and(Expression... expressions)AND's provided expressions to the existing WHERE clause expression.voidSelectQuery. andHavingQualifier(Expression e)Adds specified HAVING qualifier to the existing HAVING qualifier joining it using "AND".voidSelectQuery. andQualifier(Expression e)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)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)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<T>ColumnSelect. having(Expression expression)Appends a having qualifier expression of this query.ColumnSelect<T>ColumnSelect. or(Expression... expressions)OR's provided expressions to the existing WHERE clause expression.ObjectSelect<T>ObjectSelect. or(Expression... expressions)OR's provided expressions to the existing WHERE clause expression.voidSelectQuery. orHavingQualifier(Expression e)Adds specified HAVING qualifier to the existing HAVING qualifier joining it using "OR".voidSelectQuery. orQualifier(Expression e)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)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)Creates a SelectQuery that selects objects of a given persistent class that match supplied qualifier.voidSelectQuery. setHavingQualifier(Expression qualifier)Sets new query HAVING qualifier.voidSelectQuery. setQualifier(Expression qualifier)Sets new query qualifier.voidOrdering. setSortSpec(Expression sortSpec)Sets the expression defining a ordering Java Bean property.ColumnSelect<T>ColumnSelect. where(Expression expression)Appends a qualifier expression of this query.ObjectSelect<T>ObjectSelect. where(Expression expression)Appends a qualifier expression of this query.Method parameters in org.apache.cayenne.query with type arguments of type Expression Modifier and Type Method Description ColumnSelect<T>ColumnSelect. and(Collection<Expression> expressions)AND's provided expressions to the existing WHERE or HAVING clause expression.ObjectSelect<T>ObjectSelect. and(Collection<Expression> expressions)AND's provided expressions to the existing WHERE clause expression.ColumnSelect<T>ColumnSelect. or(Collection<Expression> expressions)OR's provided expressions to the existing WHERE or HAVING clause expression.ObjectSelect<T>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 Expression Constructor Description Ordering(Expression sortSpec)Ordering(Expression sortSpec, SortOrder sortOrder)SelectQuery(Class<T> rootClass, Expression qualifier)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)Creates a SelectQuery that selects objects of a given persistent class that match supplied qualifier.SelectQuery(String objEntityName, Expression qualifier)Creates SelectQuery withobjEntityNameandqualifierparameters.SelectQuery(String objEntityName, Expression qualifier, List<? extends Ordering> orderings)Creates a SelectQuery that selects objects of a given persistent class that match supplied qualifier.SelectQuery(DbEntity root, Expression qualifier)Creates a SelectQuery for the specified DbEntity with the given qualifier.SelectQuery(DbEntity root, Expression qualifier, List<? extends Ordering> orderings)Creates a SelectQuery for the specified DbEntity with the given qualifier and orderings.SelectQuery(ObjEntity root, Expression qualifier)Creates a SelectQuery for the specified ObjEntity with the given qualifier.SelectQuery(ObjEntity root, Expression qualifier, List<? extends Ordering> orderings)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 Expression Modifier and Type Field Description protected ExpressionPersistentDescriptor. entityQualifierMethods in org.apache.cayenne.reflect that return Expression Modifier and Type Method Description ExpressionClassDescriptor. getEntityQualifier()Returns entity qualifier as a Cayenne expression that includes qualifiers for this entity and all subentities.ExpressionLazyClassDescriptorDecorator. getEntityQualifier()ExpressionPersistentDescriptor. getEntityQualifier()Methods in org.apache.cayenne.reflect with parameters of type Expression Modifier and Type Method Description voidPersistentDescriptor. setEntityQualifier(Expression entityQualifier)
-