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 voidaddGroupingToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)INTERNAL Add the grouping expressions to the passed queryjava.lang.StringgetAsString()INTERNAL Get the string representation of this node.java.util.ListgetGroupByItems()INTERNAL Return the GROUP BY statementsbooleanisValidHavingExpr(Node expr)INTERNAL Returns true if the spvoidsetGroupByItems(java.util.List newItems)INTERNAL Set the GROUP BY statementsvoidvalidate(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 java.util.List getGroupByItems()
INTERNAL Return the GROUP BY statements
-
setGroupByItems
public void setGroupByItems(java.util.List newItems)
INTERNAL Set the GROUP BY statements
-
getAsString
public java.lang.String getAsString()
INTERNAL Get the string representation of this node.- Overrides:
getAsStringin classNode
-
-