Class SubqueryExp

java.lang.Object
org.apache.cayenne.exp.Expression
org.apache.cayenne.exp.SubqueryExp
All Implemented Interfaces:
XMLSerializable

public final class SubqueryExp extends Expression
Since:
5.0
  • Constructor Details

    • SubqueryExp

      public SubqueryExp(Object... operands)
      Creates a subquery node wrapping the given select, or an empty one without arguments.
  • Method Details

    • getExpressionOperator

      protected String getExpressionOperator(int index)
      Description copied from class: Expression
      Returns the operator printed between the operands, before the operand at the given index.
      Specified by:
      getExpressionOperator in class Expression
    • evaluateNode

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

      public Expression shallowCopy()
      Description copied from class: Expression
      Creates a copy of this expression node, without copying children.
      Specified by:
      shallowCopy in class Expression
    • appendAsString

      public void appendAsString(Appendable out) throws IOException
      Description copied from class: Expression
      Appends own content as a String to the provided Appendable: the operands separated by the operator.
      Overrides:
      appendAsString in class Expression
      Throws:
      IOException
    • getQuery

      public FluentSelect<?,?> getQuery()
    • parenthesizeAsOperand

      protected boolean parenthesizeAsOperand()
      Description copied from class: Expression
      Whether this node is wrapped in parentheses when printed as an operand of another node. Compound nodes are, leaves and nodes with their own delimiters (function calls, lists) are not.
      Overrides:
      parenthesizeAsOperand in class Expression