Class SelectClause

java.lang.Object
org.nuxeo.ecm.core.query.sql.model.Clause
org.nuxeo.ecm.core.query.sql.model.SelectClause
All Implemented Interfaces:
Serializable, ASTNode

public class SelectClause extends Clause
Author:
Bogdan Stefanescu
See Also:
  • Field Details

    • elements

      public final SelectList elements
    • distinct

      public final boolean distinct
  • Constructor Details

    • SelectClause

      public SelectClause()
    • SelectClause

      public SelectClause(boolean distinct)
    • SelectClause

      public SelectClause(SelectList elements)
    • SelectClause

      public SelectClause(SelectList elements, boolean distinct)
  • Method Details

    • add

      public void add(String alias, Operand element)
    • add

      public void add(Operand element)
    • get

      public Operand get(String alias)
    • getVariable

      public Reference getVariable(String alias)
    • getLiteral

      public Literal getLiteral(String alias)
    • getFunction

      public Function getFunction(String alias)
    • getExpression

      public Expression getExpression(String alias)
    • get

      public Operand get(int i)
    • getAlias

      public String getAlias(int i)
    • getVariable

      public Reference getVariable(int i)
    • getLiteral

      public Literal getLiteral(int i)
    • getFunction

      public Function getFunction(int i)
    • getExpression

      public Expression getExpression(int i)
    • isDistinct

      public boolean isDistinct()
    • getSelectList

      public SelectList getSelectList()
    • count

      public int count()
    • isEmpty

      public boolean isEmpty()
    • operands

      public Collection<Operand> operands()
      Since:
      9.1
    • containsOperand

      public boolean containsOperand(Object operand)
      Since:
      9.1
    • accept

      public void accept(IVisitor visitor)
      Description copied from interface: ASTNode
      Accept the given visitor.
      Parameters:
      visitor - the AST node visitor
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object