Class ConditionExp

java.lang.Object
org.apache.cayenne.exp.Expression
org.apache.cayenne.exp.ConditionExp
All Implemented Interfaces:
XMLSerializable
Direct Known Subclasses:
AllExp, AnyExp, BetweenExp, EqualExp, ExistsExp, FalseExp, GreaterExp, GreaterOrEqualExp, InExp, LessExp, LessOrEqualExp, NotBetweenExp, NotEqualExp, NotExistsExp, NotInExp, PatternMatchExp, TrueExp

Superclass of conditional expressions.
Since:
5.0
  • Constructor Details

    • ConditionExp

      protected ConditionExp(Object... operands)
  • Method Details

    • isValidParent

      protected boolean isValidParent(Expression parent)
      Description copied from class: Expression
      Whether this node can be an operand of the given node. Called by the parent when the operand is set, to check what the grammar can't: e.g. a condition can only be an operand of a condition aggregate. By default any parent is valid.
      Overrides:
      isValidParent in class Expression
    • evaluateNode

      protected Object evaluateNode(Object o) throws Exception
      Description copied from class: Expression
      Evaluates itself with object, pushing result on the stack.
      Specified by:
      evaluateNode in class Expression
      Throws:
      Exception
    • getRequiredChildrenCount

      protected abstract int getRequiredChildrenCount()
    • evaluateSubNode

      protected abstract Boolean evaluateSubNode(Object o, Object[] evaluatedChildren) throws Exception
      Throws:
      Exception
    • exists

      public Expression exists()
      Returns expression that will be dynamically resolved to proper subqueries based on a relationships used (if no relationships are present in the original expression no subqueries will be used).
      Overrides:
      exists in class Expression
      Returns:
      exists expression
      See Also:
    • notExists

      public Expression notExists()
      Returns expression that will be dynamically resolved to proper subqueries based on a relationships used (if no relationships are present in the original expression no subqueries will be used).
      Overrides:
      notExists in class Expression
      Returns:
      not exists expression
      See Also: