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

public Class SumNode

extends AggregateNode
Class Inheritance
Imports
org.eclipse.persistence.queries.ObjectLevelReadQuery, .ReportQuery, org.eclipse.persistence.expressions.Expression

INTERNAL

Purpose: Model a SUM

Responsibilities:

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Expression
public void
applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)

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

INTERNAL Apply this node to the passed query
protected Class<?>
calculateReturnType(GenerationContext context)

INTERNAL This method calculates the return type of the SUM operation.

protected Object
calculateReturnType(Object argType, TypeHelper helper)

INTERNAL Helper method to calculate the return type of the SUM operation.

public String
getAsString()

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

INTERNAL Get the string representation of this node.
public void
validate(ParseTreeContext context)

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

INTERNAL Validate node and calculate its type.
Inherited from org.eclipse.persistence.internal.jpa.parsing.AggregateNode:
generateExpressionisAggregateNodeisAliasableNoderesolveAttributeresolveClasssetDistinctusesDistinct

Constructor Detail

SumNodeback to summary
public SumNode()

Method Detail

addAggregateExressionback to summary
protected Expression addAggregateExression(Expression expr)

Implements abstract org.eclipse.persistence.internal.jpa.parsing.AggregateNode.addAggregateExression.

INTERNAL

Annotations
@Override
applyToQueryback to summary
public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)

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

INTERNAL Apply this node to the passed query

Annotations
@Override
calculateReturnTypeback to summary
protected Class<?> calculateReturnType(GenerationContext context)

INTERNAL This method calculates the return type of the SUM operation.

calculateReturnTypeback to summary
protected Object calculateReturnType(Object argType, TypeHelper helper)

INTERNAL Helper method to calculate the return type of the SUM operation.

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
validateback to summary
public void validate(ParseTreeContext context)

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

INTERNAL Validate node and calculate its type.

Annotations
@Override