net.sf.saffron.sql
Class SqlSelect
java.lang.Object
|
+--net.sf.saffron.sql.SqlNode
|
+--net.sf.saffron.sql.SqlCall
|
+--net.sf.saffron.sql.SqlSelect
- public class SqlSelect
- extends SqlCall
A SqlSelect
is a node of a parse tree which represents a
select statement. It warrants its own node type just because we have a lot
of methods to put somewhere.
DISTINCT_OPERAND
public static final int DISTINCT_OPERAND
- See Also:
- Constant Field Values
SELECT_OPERAND
public static final int SELECT_OPERAND
- See Also:
- Constant Field Values
FROM_OPERAND
public static final int FROM_OPERAND
- See Also:
- Constant Field Values
WHERE_OPERAND
public static final int WHERE_OPERAND
- See Also:
- Constant Field Values
GROUP_OPERAND
public static final int GROUP_OPERAND
- See Also:
- Constant Field Values
HAVING_OPERAND
public static final int HAVING_OPERAND
- See Also:
- Constant Field Values
ORDER_OPERAND
public static final int ORDER_OPERAND
- See Also:
- Constant Field Values
OPERAND_COUNT
public static final int OPERAND_COUNT
- See Also:
- Constant Field Values
SqlSelect
SqlSelect(SqlSelectOperator operator,
SqlNode[] operands)
isDistinct
public final boolean isDistinct()
getFrom
public final SqlNode getFrom()
getGroup
public final SqlNodeList getGroup()
getHaving
public final SqlNode getHaving()
getSelectList
public final SqlNodeList getSelectList()
getWhere
public final SqlNode getWhere()
getOrderList
public final SqlNodeList getOrderList()
addFrom
public void addFrom(SqlIdentifier tableId)
addWhere
public void addWhere(SqlNode condition)
unparse
public void unparse(SqlWriter writer,
int leftPrec,
int rightPrec)
- Description copied from class:
SqlNode
- Writes a SQL representation of this node to a writer.
- Overrides:
unparse
in class SqlCall