Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.parsing

public Class GroupByNode

extends MajorNode
Class Inheritance
Imports
java.util.*, org.eclipse.persistence.queries.ReportQuery, .ObjectLevelReadQuery

INTERNAL

Purpose: Represent an GROUP BY

Responsibilities:

Field Summary

Modifier and TypeField and Description
pack-priv List<Node>

Constructor Summary

AccessConstructor and Description
public
GroupByNode()

Return a new GroupByNode.

Method Summary

Modifier and TypeMethod and Description
public void
addGroupingToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)

INTERNAL Add the grouping expressions to the passed query

public String
getAsString()

Overrides org.eclipse.persistence.internal.jpa.parsing.Node.getAsString.

INTERNAL Get the string representation of this node.
public List<Node>
getGroupByItems()

INTERNAL Return the GROUP BY statements

private boolean
isGroupbyItem(Node expr)

INTERNAL Return true if the specified expr is a groupby item.

public boolean
isValidHavingExpr(Node expr)

INTERNAL Returns true if the sp

public void
setGroupByItems(List<Node> newItems)

INTERNAL Set the GROUP BY statements

public void
validate(ParseTreeContext context, SelectNode selectNode)

INTERNAL Validate the current node.

Inherited from org.eclipse.persistence.internal.jpa.parsing.MajorNode:
getContextsetContext

Field Detail

groupByItemsback to summary
pack-priv List<Node> groupByItems

Constructor Detail

GroupByNodeback to summary
public GroupByNode()

Return a new GroupByNode.

Method Detail

addGroupingToQueryback to summary
public void addGroupingToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)

INTERNAL Add the grouping expressions to the passed query

getAsStringback to summary
public String getAsString()

Overrides org.eclipse.persistence.internal.jpa.parsing.Node.getAsString.

INTERNAL Get the string representation of this node.

Annotations
@Override
getGroupByItemsback to summary
public List<Node> getGroupByItems()

INTERNAL Return the GROUP BY statements

isGroupbyItemback to summary
private boolean isGroupbyItem(Node expr)

INTERNAL Return true if the specified expr is a groupby item.

isValidHavingExprback to summary
public boolean isValidHavingExpr(Node expr)

INTERNAL Returns true if the sp

setGroupByItemsback to summary
public void setGroupByItems(List<Node> newItems)

INTERNAL Set the GROUP BY statements

validateback to summary
public void validate(ParseTreeContext context, SelectNode selectNode)

INTERNAL Validate the current node.