Class EJBQLAnd

  extended by org.apache.cayenne.ejbql.parser.SimpleNode
      extended by org.apache.cayenne.ejbql.parser.AggregateConditionNode
          extended by org.apache.cayenne.ejbql.parser.EJBQLAnd
All Implemented Interfaces:
Serializable, EJBQLExpression, Node

public class EJBQLAnd
extends AggregateConditionNode

See Also:
Serialized Form

Constructor Summary
EJBQLAnd(int id)
Method Summary
 int getPriority()
          Returns priority of conditional operator.
protected  boolean visitChild(EJBQLExpressionVisitor visitor, int childIndex)
          Recursively visits a child at the specified index.
protected  boolean visitNode(EJBQLExpressionVisitor visitor)
          Visits this node without recursion.
Methods inherited from class org.apache.cayenne.ejbql.parser.SimpleNode
getChild, getChildrenCount, getName, getText, isNegated, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setText, toString, visit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public EJBQLAnd(int id)
Method Detail


protected boolean visitNode(EJBQLExpressionVisitor visitor)
Description copied from class: SimpleNode
Visits this node without recursion. Default implementation simply returns true. Subclasses override this method to call an appropriate visitor method.

visitNode in class SimpleNode


protected boolean visitChild(EJBQLExpressionVisitor visitor,
                             int childIndex)
Description copied from class: SimpleNode
Recursively visits a child at the specified index. Subclasses override this method if they desire to implement callbacks after visiting each child.

visitChild in class SimpleNode


public int getPriority()
Description copied from class: AggregateConditionNode
Returns priority of conditional operator. This is used to decide whether brackets are needed in resulting SQL

Specified by:
getPriority in class AggregateConditionNode

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