Module org.eclipse.persistence.core
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
INTERNAL
Purpose: 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroupingToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) INTERNAL Add the grouping expressions to the passed queryINTERNAL Get the string representation of this node.INTERNAL Return the GROUP BY statementsbooleanisValidHavingExpr(Node expr) INTERNAL Returns true if the spvoidsetGroupByItems(List<Node> 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, setContextMethods 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
-
Constructor Details
-
GroupByNode
public GroupByNode()Return a new GroupByNode.
-
-
Method Details
-
validate
INTERNAL Validate the current node. -
addGroupingToQuery
INTERNAL Add the grouping expressions to the passed query -
isValidHavingExpr
INTERNAL Returns true if the sp -
getGroupByItems
INTERNAL Return the GROUP BY statements -
setGroupByItems
INTERNAL Set the GROUP BY statements -
getAsString
INTERNAL Get the string representation of this node.- Overrides:
getAsStringin classNode
-