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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description boolean
distinct
SelectList
elements
-
Constructor Summary
Constructors Constructor Description SelectClause()
SelectClause(boolean distinct)
SelectClause(SelectList elements)
SelectClause(SelectList elements, boolean distinct)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(IVisitor visitor)
Accept the given visitor.void
add(String alias, Operand element)
void
add(Operand element)
boolean
containsOperand(Object operand)
int
count()
boolean
equals(Object obj)
Operand
get(int i)
Operand
get(String alias)
String
getAlias(int i)
Expression
getExpression(int i)
Expression
getExpression(String alias)
Function
getFunction(int i)
Function
getFunction(String alias)
Literal
getLiteral(int i)
Literal
getLiteral(String alias)
SelectList
getSelectList()
Reference
getVariable(int i)
Reference
getVariable(String alias)
int
hashCode()
boolean
isDistinct()
boolean
isEmpty()
Collection<Operand>
operands()
String
toString()
-
-
-
Field Detail
-
elements
public final SelectList elements
-
distinct
public final boolean distinct
-
-
Constructor Detail
-
SelectClause
public SelectClause()
-
SelectClause
public SelectClause(boolean distinct)
-
SelectClause
public SelectClause(SelectList elements)
-
SelectClause
public SelectClause(SelectList elements, boolean distinct)
-
-
Method Detail
-
add
public void add(Operand element)
-
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
-
-