Class GroupByNode
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.Node
-
- org.eclipse.persistence.internal.jpa.parsing.MajorNode
-
- org.eclipse.persistence.internal.jpa.parsing.GroupByNode
-
public class GroupByNode extends MajorNode
INTERNALPurpose: Represent an GROUP BY
Responsibilities:
- Generate the correct expression for an GROUP BY
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
-
Constructor Summary
Constructors Constructor Description GroupByNode()
Return a new GroupByNode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGroupingToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
INTERNAL Add the grouping expressions to the passed queryString
getAsString()
INTERNAL Get the string representation of this node.List
getGroupByItems()
INTERNAL Return the GROUP BY statementsboolean
isValidHavingExpr(Node expr)
INTERNAL Returns true if the spvoid
setGroupByItems(List newItems)
INTERNAL Set the GROUP BY statementsvoid
validate(ParseTreeContext context, SelectNode selectNode)
INTERNAL Validate the current node.-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.MajorNode
getContext, setContext
-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, applyToQuery, generateExpression, getAlias, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAliasableNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMapKeyNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validate, validateParameter
-
-
-
-
Method Detail
-
validate
public void validate(ParseTreeContext context, SelectNode selectNode)
INTERNAL Validate the current node.
-
addGroupingToQuery
public void addGroupingToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
INTERNAL Add the grouping expressions to the passed query
-
isValidHavingExpr
public boolean isValidHavingExpr(Node expr)
INTERNAL Returns true if the sp
-
getGroupByItems
public List getGroupByItems()
INTERNAL Return the GROUP BY statements
-
setGroupByItems
public void setGroupByItems(List newItems)
INTERNAL Set the GROUP BY statements
-
getAsString
public String getAsString()
INTERNAL Get the string representation of this node.- Overrides:
getAsString
in classNode
-
-