public class SelectNode extends ResultSetNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
Constructor and Description |
---|
SelectNode() |
Modifier and Type | Method and Description |
---|---|
void |
clearDistinct() |
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node.
|
FromList |
getFromList()
Return the fromList for this SelectNode.
|
GroupByList |
getGroupByList() |
ValueNode |
getHavingClause() |
ValueNode |
getWhereClause()
Return the whereClause for this SelectNode.
|
WindowList |
getWindows() |
boolean |
hasWindows()
Used by SubqueryNode to avoid flattening of a subquery if a window is
defined on it.
|
void |
init(java.lang.Object selectList,
java.lang.Object aggregateList,
java.lang.Object fromList,
java.lang.Object whereClause,
java.lang.Object groupByList,
java.lang.Object havingClause,
java.lang.Object windowDefinitionList)
Initialize a query tree node.
|
boolean |
isDistinct() |
boolean |
isStraightJoin() |
void |
makeDistinct() |
void |
makeStraightJoin() |
void |
printSubNodes(int depth)
Prints the sub-nodes of this object.
|
void |
setHavingClause(ValueNode havingClause) |
void |
setWhereClause(ValueNode whereClause) |
java.lang.String |
statementToString() |
java.lang.String |
toString()
Convert this object to a String.
|
getResultColumns, setInsertSource, setResultColumns
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
public void init(java.lang.Object selectList, java.lang.Object aggregateList, java.lang.Object fromList, java.lang.Object whereClause, java.lang.Object groupByList, java.lang.Object havingClause, java.lang.Object windowDefinitionList) throws StandardException
QueryTreeNode
init
in class QueryTreeNode
StandardException
- Thrown on errorpublic void copyFrom(QueryTreeNode node) throws StandardException
copyFrom
in class ResultSetNode
StandardException
public java.lang.String toString()
toString
in class ResultSetNode
public java.lang.String statementToString()
public void makeDistinct()
public void clearDistinct()
public boolean isDistinct()
public void makeStraightJoin()
public boolean isStraightJoin()
public void printSubNodes(int depth)
printSubNodes
in class ResultSetNode
depth
- The depth of this node in the treepublic FromList getFromList()
public ValueNode getWhereClause()
public void setWhereClause(ValueNode whereClause)
public GroupByList getGroupByList()
public ValueNode getHavingClause()
public void setHavingClause(ValueNode havingClause)
public boolean hasWindows()
public WindowList getWindows()
Copyright © 2013. All Rights Reserved.