public class GroupByNode extends MajorNode
Purpose: Represent an GROUP BY
Responsibilities:
left, right, shouldGenerateExpression| Constructor and Description |
|---|
GroupByNode()
Return a new GroupByNode.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupingToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Add the grouping expressions to the passed query
|
java.lang.String |
getAsString()
INTERNAL
Get the string representation of this node.
|
java.util.List |
getGroupByItems()
INTERNAL
Return the GROUP BY statements
|
boolean |
isValidHavingExpr(Node expr)
INTERNAL
Returns true if the sp
|
void |
setGroupByItems(java.util.List newItems)
INTERNAL
Set the GROUP BY statements
|
void |
validate(ParseTreeContext context,
SelectNode selectNode)
INTERNAL
Validate the current node.
|
getContext, setContextaddToExpression, appendExpression, applyToQuery, generateExpression, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validate, validateParameterpublic void validate(ParseTreeContext context, SelectNode selectNode)
public void addGroupingToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
public boolean isValidHavingExpr(Node expr)
public java.util.List getGroupByItems()
public void setGroupByItems(java.util.List newItems)
public java.lang.String getAsString()
getAsString in class Node