Uses of Class
org.apache.cayenne.exp.Expression

Packages that use Expression
org.apache.cayenne.access.trans Provides translators for Cayenne queries. 
org.apache.cayenne.dba.db2 IBM DB2 DbAdapter. 
org.apache.cayenne.dba.openbase OpenBase DbAdapter. 
org.apache.cayenne.dba.postgres PostgreSQL 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.project.validator   
org.apache.cayenne.query Defines standard queries supported by Cayenne and extension mechanism to create custom queries. 
org.apache.cayenne.wocompat Contains classes that interface Cayenne with Apple's WebObjects
 

Uses of Expression in org.apache.cayenne.access.trans
 

Fields in org.apache.cayenne.access.trans declared as Expression
protected  Expression DataObjectMatchTranslator.expression
           
 

Methods in org.apache.cayenne.access.trans that return Expression
protected  Expression QualifierTranslator.extractQualifier()
           
 Expression DataObjectMatchTranslator.getExpression()
           
 

Methods in org.apache.cayenne.access.trans with parameters of type Expression
protected  void QueryAssemblerHelper.appendDbPath(StringBuffer buf, Expression pathExp)
           
protected  void QualifierTranslator.appendLiteral(StringBuffer buf, Object val, DbAttribute attr, Expression parentExpression)
           
protected  void QueryAssemblerHelper.appendLiteral(StringBuffer buf, Object val, DbAttribute attr, Expression parentExpression)
          Appends SQL code to the query buffer to handle val as a parameter to the PreparedStatement being built.
protected  void QueryAssemblerHelper.appendLiteralDirect(StringBuffer buf, Object val, DbAttribute attr, Expression parentExpression)
          Appends SQL code to the query buffer to handle val as a parameter to the PreparedStatement being built.
protected  void QueryAssemblerHelper.appendObjPath(StringBuffer buf, Expression pathExp)
          Processes parts of the OBJ_PATH expression.
protected  void QualifierTranslator.detectObjectMatch(Expression exp)
          Called before processing an expression to initialize objectMatchTranslator if needed.
 void QualifierTranslator.endNode(Expression node, Expression parentNode)
           
 void QualifierTranslator.finishedChild(Expression node, int childIndex, boolean hasMoreChildren)
          Opportunity to insert an operation
 void QualifierTranslator.objectNode(Object leaf, Expression parentNode)
           
protected  DbAttribute QueryAssemblerHelper.paramsDbType(Expression e)
          Returns database type of expression parameters or null if it can not be determined.
protected  boolean QualifierTranslator.parenthesisNeeded(Expression node, Expression parentNode)
           
protected  void QueryAssemblerHelper.processColumn(StringBuffer buf, Expression nameExp)
          Appends column name of a column in a root entity.
 void DataObjectMatchTranslator.setExpression(Expression expression)
           
 void QualifierTranslator.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
protected  void DB2QualifierTranslator.appendLiteralDirect(StringBuffer buf, Object val, DbAttribute attr, Expression parentExpression)
           
 

Uses of Expression in org.apache.cayenne.dba.openbase
 

Methods in org.apache.cayenne.dba.openbase with parameters of type Expression
protected  void OpenBaseQualifierTranslator.appendLiteralDirect(StringBuffer buf, Object val, DbAttribute attr, Expression parentExpression)
           
 void OpenBaseQualifierTranslator.endNode(Expression node, Expression parentNode)
           
 void OpenBaseQualifierTranslator.finishedChild(Expression node, int childIndex, boolean hasMoreChildren)
           
 void OpenBaseQualifierTranslator.startNode(Expression node, Expression parentNode)
           
 

Uses of Expression in org.apache.cayenne.dba.postgres
 

Methods in org.apache.cayenne.dba.postgres with parameters of type Expression
 void PostgresQualifierTranslator.endNode(Expression node, Expression parentNode)
           
 void PostgresQualifierTranslator.finishedChild(Expression node, int childIndex, boolean hasMoreChildren)
           
 void PostgresQualifierTranslator.startNode(Expression node, Expression parentNode)
           
 

Uses of Expression in org.apache.cayenne.exp
 

Methods in org.apache.cayenne.exp that return Expression
 Expression Expression.andExp(Expression exp)
          Chains this expression with another expression using "and".
static Expression ExpressionFactory.betweenDbExp(String pathSpec, Object value1, Object value2)
          A convenience shortcut for building BETWEEN expressions.
static Expression ExpressionFactory.betweenExp(String pathSpec, Object value1, Object value2)
          A convenience shortcut for building BETWEEN expressions.
 Expression Expression.deepCopy()
          Clones this expression.
static Expression ExpressionFactory.expFalse()
          A convenience shortcut for boolean false expression.
static Expression ExpressionFactory.expressionOfType(int type)
          Creates a new expression for the type requested.
static Expression ExpressionFactory.expTrue()
          A convenience shortcut for boolean true expression.
 Expression Expression.expWithParameters(Map parameters)
          A shortcut for expWithParams(params, true).
 Expression Expression.expWithParameters(Map parameters, boolean pruneMissing)
          Creates and returns a new Expression instance using this expression as a prototype.
static Expression Expression.fromString(String expressionString)
          Parses string, converting it to Expression.
static Expression ExpressionFactory.greaterDbExp(String pathSpec, Object value)
          A convenience method to create an DB_PATH "greater than" expression.
static Expression ExpressionFactory.greaterExp(String pathSpec, Object value)
          A convenience method to create an OBJ_PATH "greater than" expression.
static Expression ExpressionFactory.greaterOrEqualDbExp(String pathSpec, Object value)
          A convenience method to create an DB_PATH "greater than or equal to" expression.
static Expression ExpressionFactory.greaterOrEqualExp(String pathSpec, Object value)
          A convenience method to create an OBJ_PATH "greater than or equal to" expression.
static Expression ExpressionFactory.inDbExp(String pathSpec, Collection values)
          A convenience shortcut for building IN DB expression.
static Expression ExpressionFactory.inDbExp(String pathSpec, Object[] values)
          A convenience shortcut for building IN DB expression.
static Expression ExpressionFactory.inExp(String pathSpec, Collection values)
          A convenience shortcut for building IN expression.
static Expression ExpressionFactory.inExp(String pathSpec, Object[] values)
          A convenience shortcut for building IN expression.
 Expression Expression.joinExp(int type, Expression exp)
          Creates a new expression that joins this object with another expression, using specified join type.
static Expression ExpressionFactory.joinExp(int type, List expressions)
          Joins all expressions in a single expression.
static Expression ExpressionFactory.lessDbExp(String pathSpec, Object value)
          A convenience method to create an DB_PATH "less than" expression.
static Expression ExpressionFactory.lessExp(String pathSpec, Object value)
          A convenience method to create an OBJ_PATH "less than" expression.
static Expression ExpressionFactory.lessOrEqualDbExp(String pathSpec, Object value)
          A convenience method to create an DB_PATH "less than or equal to" expression.
static Expression ExpressionFactory.lessOrEqualExp(String pathSpec, Object value)
          A convenience method to create an OBJ_PATH "less than or equal to" expression.
static Expression ExpressionFactory.likeDbExp(String pathSpec, Object value)
          A convenience shortcut for building LIKE DB_PATH expression.
static Expression ExpressionFactory.likeExp(String pathSpec, Object value)
          A convenience shortcut for building LIKE expression.
static Expression ExpressionFactory.likeIgnoreCaseDbExp(String pathSpec, Object value)
          A convenience shortcut for building LIKE_IGNORE_CASE expression.
static Expression ExpressionFactory.likeIgnoreCaseExp(String pathSpec, Object value)
          A convenience shortcut for building LIKE_IGNORE_CASE expression.
static Expression ExpressionFactory.matchAllDbExp(Map map, int pairType)
          Creates an expression that matches all key-values pairs in map.
static Expression ExpressionFactory.matchAllExp(Map map, int pairType)
          Creates an expression that matches all key-values pairs in map.
static Expression ExpressionFactory.matchAnyDbExp(Map map, int pairType)
          Creates an expression that matches any of the key-values pairs in map.
static Expression ExpressionFactory.matchAnyExp(Map map, int pairType)
          Creates an expression that matches any of the key-values pairs in the map.
static Expression ExpressionFactory.matchDbExp(String pathSpec, Object value)
          A convenience method to create an DB_PATH "equal to" expression.
static Expression ExpressionFactory.matchExp(String pathSpec, Object value)
          A convenience method to create an OBJ_PATH "equal to" expression.
static Expression ExpressionFactory.noMatchDbExp(String pathSpec, Object value)
          A convenience method to create an DB_PATH "not equal to" expression.
static Expression ExpressionFactory.noMatchExp(String pathSpec, Object value)
          A convenience method to create an OBJ_PATH "not equal to" expression.
static Expression ExpressionFactory.notBetweenDbExp(String pathSpec, Object value1, Object value2)
          A convenience shortcut for building NOT_BETWEEN expressions.
static Expression ExpressionFactory.notBetweenExp(String pathSpec, Object value1, Object value2)
          A convenience shortcut for building NOT_BETWEEN expressions.
abstract  Expression Expression.notExp()
          Returns a logical NOT of current expression.
static Expression ExpressionFactory.notInDbExp(String pathSpec, Collection values)
          A convenience shortcut for building NOT_IN expression.
static Expression ExpressionFactory.notInDbExp(String pathSpec, Object[] values)
          A convenience shortcut for building NOT_IN expression.
static Expression ExpressionFactory.notInExp(String pathSpec, Collection values)
          A convenience shortcut for building NOT_IN expression.
static Expression ExpressionFactory.notInExp(String pathSpec, Object[] values)
          A convenience shortcut for building NOT_IN expression.
static Expression ExpressionFactory.notLikeDbExp(String pathSpec, Object value)
          A convenience shortcut for building NOT_LIKE expression.
static Expression ExpressionFactory.notLikeExp(String pathSpec, Object value)
          A convenience shortcut for building NOT_LIKE expression.
static Expression ExpressionFactory.notLikeIgnoreCaseDbExp(String pathSpec, Object value)
          A convenience shortcut for building NOT_LIKE_IGNORE_CASE expression.
static Expression ExpressionFactory.notLikeIgnoreCaseExp(String pathSpec, Object value)
          A convenience shortcut for building NOT_LIKE_IGNORE_CASE expression.
 Expression Expression.orExp(Expression exp)
          Chains this expression with another expression using "or".
abstract  Expression Expression.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression Expression.transform(Transformer transformer)
          Creates a transformed copy of this expression, applying transformation provided by Transformer to all its nodes.
 

Methods in org.apache.cayenne.exp with parameters of type Expression
 Expression Expression.andExp(Expression exp)
          Chains this expression with another expression using "and".
 void TraversalHandler.endNode(Expression node, Expression parentNode)
          Called during the traversal after an expression node children processing is finished.
 void TraversalHelper.endNode(Expression node, Expression parentNode)
           
 void TraversalHandler.finishedChild(Expression node, int childIndex, boolean hasMoreChildren)
          Called during traversal after a child of expression has been visited.
 void TraversalHelper.finishedChild(Expression node, int childIndex, boolean hasMoreChildren)
           
 Expression Expression.joinExp(int type, Expression exp)
          Creates a new expression that joins this object with another expression, using specified join type.
 void TraversalHandler.objectNode(Object leaf, Expression parentNode)
          Called during the traversal when a leaf non-expression node is encountered.
 void TraversalHelper.objectNode(Object leaf, Expression parentNode)
           
 Expression Expression.orExp(Expression exp)
          Chains this expression with another expression using "or".
 void TraversalHandler.startNode(Expression node, Expression parentNode)
          Called during the traversal before an expression node children processing is started.
 void TraversalHelper.startNode(Expression node, Expression parentNode)
           
protected  void Expression.traverse(Expression parentExp, TraversalHandler visitor)
          Traverses itself and child expressions, notifying visitor via callback methods as it goes.
 

Uses of Expression in org.apache.cayenne.exp.parser
 

Subclasses of Expression in org.apache.cayenne.exp.parser
 class AggregateConditionNode
          Superclass of aggregated conditional nodes such as NOT, AND, OR.
 class ASTAdd
          "Add" Expression.
 class ASTAnd
          "And" expression.
 class ASTBetween
          "Between" expression.
 class ASTDbPath
          Path expression traversing DB relationships and attributes.
 class ASTDivide
          "Divide" expression.
 class ASTEqual
          "Equal To" expression.
 class ASTFalse
          Boolean false expression element Notice that there is one ASTTrue and one ASTFalse instead of a ASTBoolean with a Boolean value.
 class ASTGreater
          "Greate Than" expression.
 class ASTGreaterOrEqual
          "Greater Than Or Equal To" expression.
 class ASTIn
          "In" expression.
 class ASTLess
          "Less Then" expression.
 class ASTLessOrEqual
          "Less than or equal to" expression.
 class ASTLike
          "Like" expression.
 class ASTLikeIgnoreCase
          "Case insensitive like" expression.
 class ASTList
          A leaf expression representing an immutable collection of values.
 class ASTMultiply
          "Multiply" expression.
 class ASTNamedParameter
          A named expression parameter.
 class ASTNegate
          "Negate" expression.
 class ASTNot
          "Not" expression.
 class ASTNotBetween
          "Not Between" expression.
 class ASTNotEqual
          "Not equal to" expression.
 class ASTNotIn
          "Not In" expression.
 class ASTNotLike
          "Not Like" expression.
 class ASTNotLikeIgnoreCase
          "Not like, ignore case" expression.
 class ASTObjPath
           
 class ASTOr
          "Or" expression.
 class ASTPath
          Generic path expression.
 class ASTScalar
          A scalar value wrapper expression.
 class ASTSubtract
          "Subtract" expression.
 class ASTTrue
          Boolean true expression element Notice that there is one ASTTrue and one ASTFalse instead of a ASTBoolean with a Boolean value.
 class ConditionNode
          Superclass of conditional expressions.
 class PatternMatchNode
          Superclass of pattern matching nodes.
 class SimpleNode
          Superclass of AST* expressions that implements Node interface defined by JavaCC framework.
 

Methods in org.apache.cayenne.exp.parser that return Expression
 Expression ExpressionParser.expression()
           
 Expression SimpleNode.notExp()
           
 Expression ASTAdd.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTAnd.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTBetween.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTDbPath.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTDivide.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTEqual.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTFalse.shallowCopy()
           
 Expression ASTGreater.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTGreaterOrEqual.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTIn.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTLess.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTLessOrEqual.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTLike.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTLikeIgnoreCase.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTList.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTMultiply.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTNamedParameter.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTNegate.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTNot.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTNotBetween.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTNotEqual.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTNotIn.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTNotLike.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTNotLikeIgnoreCase.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTObjPath.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTOr.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTScalar.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTSubtract.shallowCopy()
          Creates a copy of this expression node, without copying children.
 Expression ASTTrue.shallowCopy()
           
 

Uses of Expression in org.apache.cayenne.map
 

Fields in org.apache.cayenne.map declared as Expression
protected  Expression EntityInheritanceTree.normalizedQualifier
           
protected  Expression ObjEntity.qualifier
           
protected  Expression QueryBuilder.qualifier
           
 

Methods in org.apache.cayenne.map that return Expression
 Expression ObjEntity.getDeclaredQualifier()
          Returns a qualifier that imposes a restriction on what objects belong to this entity.
 Expression EntityInheritanceTree.qualifierForEntityAndSubclasses()
          Returns a qualifier Expression that matches root entity of this tree and all its subentities.
 Expression ObjEntity.translateToDbPath(Expression expression)
          Transforms an Expression to an analogous expression in terms of the underlying DbEntity.
 Expression DbEntity.translateToRelatedEntity(Expression expression, String relationshipPath)
          Transforms Expression rooted in this entity to an analogous expression rooted in related entity.
abstract  Expression Entity.translateToRelatedEntity(Expression expression, String relationshipPath)
          Translates Expression rooted in this entity to an analogous expression rooted in related entity.
 Expression 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 Expression
 Object Entity.lastPathComponent(Expression pathExp)
          Convenience method returning the last component in the path iterator.
 Iterator DbEntity.resolvePathComponents(Expression pathExp)
           
abstract  Iterator Entity.resolvePathComponents(Expression pathExp)
          Processes expression pathExp and returns an Iterator of path components that contains a sequence of Attributes and Relationships.
 Iterator ObjEntity.resolvePathComponents(Expression pathExp)
           
 void ObjEntity.setDeclaredQualifier(Expression qualifier)
          Sets a qualifier that imposes a limit on what objects belong to this entity.
 Expression ObjEntity.translateToDbPath(Expression expression)
          Transforms an Expression to an analogous expression in terms of the underlying DbEntity.
 Expression DbEntity.translateToRelatedEntity(Expression expression, String relationshipPath)
          Transforms Expression rooted in this entity to an analogous expression rooted in related entity.
abstract  Expression Entity.translateToRelatedEntity(Expression expression, String relationshipPath)
          Translates Expression rooted in this entity to an analogous expression rooted in related entity.
 Expression 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.project.validator
 

Methods in org.apache.cayenne.project.validator with parameters of type Expression
protected  void SelectQueryValidator.validateQualifier(Entity entity, Expression qualifier, ProjectPath path, Validator validator)
           
 

Uses of Expression in org.apache.cayenne.query
 

Fields in org.apache.cayenne.query declared as Expression
protected  Expression SelectQuery.parentQualifier
           
protected  Expression QualifiedQuery.qualifier
           
protected  Expression Ordering.sortSpec
           
 

Methods in org.apache.cayenne.query that return Expression
 Expression SelectQuery.getParentQualifier()
          Getter for query parent entity qualifier.
 Expression QualifiedQuery.getQualifier()
          Returns query qualifier.
 Expression Ordering.getSortSpec()
          Returns the expression defining a ordering Java Bean property.
 

Methods in org.apache.cayenne.query with parameters of type Expression
 void SelectQuery.andParentQualifier(Expression e)
          Adds specified parent entity qualifier to the existing parent entity qualifier joining it using "AND".
 void QualifiedQuery.andQualifier(Expression e)
          Adds specified qualifier to the existing qualifier joining it using "AND".
 void SelectQuery.orParentQualifier(Expression e)
          Adds specified parent entity qualifier to the existing qualifier joining it using "OR".
 void QualifiedQuery.orQualifier(Expression e)
          Adds specified qualifier to the existing qualifier joining it using "OR".
 void SelectQuery.setParentQualifier(Expression parentQualifier)
          Setter for query's parent entity qualifier.
 void QualifiedQuery.setQualifier(Expression qualifier)
          Sets new query qualifier.
 void Ordering.setSortSpec(Expression sortSpec)
          Sets the expression defining a ordering Java Bean property.
 

Constructors in org.apache.cayenne.query with parameters of type Expression
DeleteQuery(Class rootClass, Expression qualifier)
          Creates a DeleteQuery for the entity which uses the given class, with the given qualifier
DeleteQuery(ObjEntity root, Expression qualifier)
          Creates a DeleteQuery for the specifed ObjEntity with the given qualifier
DeleteQuery(String objEntityName, Expression qualifier)
          Creates DeleteQuery with objEntityName and qualifier parameters.
Ordering(Expression sortExpression, boolean ascending)
           
Ordering(Expression sortExpression, boolean ascending, boolean caseInsensitive)
           
SelectQuery(Class rootClass, Expression qualifier)
          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 specifed DbEntity with the given qualifier.
SelectQuery(ObjEntity root, Expression qualifier)
          Creates a SelectQuery for the specifed ObjEntity with the given qualifier
SelectQuery(String objEntityName, Expression qualifier)
          Creates SelectQuery with objEntityName and qualifier parameters.
UpdateQuery(Class rootClass, Expression qualifier)
          Creates a UpdateQuery for the entity which uses the given class, with the given qualifier.
UpdateQuery(ObjEntity root, Expression qualifier)
          Creates a UpdateQuery for the specifed ObjEntity with the given qualifier
UpdateQuery(String objEntityName, Expression qualifier)
          Creates UpdateQuery with objEntityName and qualifier parameters.
 

Uses of Expression in org.apache.cayenne.wocompat
 

Methods in org.apache.cayenne.wocompat that return Expression
 Expression EOQuery.makeQualifier(Map qualifierMap)
          Creates the Expression equivalent of the EOFetchSpecification represented by the Map.
 Expression EOObjEntity.translateToDbPath(Expression expression)
          Overrides super to support translation of EO attributes that have no ObjAttributes.
 

Methods in org.apache.cayenne.wocompat with parameters of type Expression
 Expression EOObjEntity.translateToDbPath(Expression expression)
          Overrides super to support translation of EO attributes that have no ObjAttributes.
 



Copyright © 2001-2007 Apache Cayenne. All Rights Reserved.