Top Description Constructors Methods
org.eclipse.persistence.jpa.jpql.parser

public final Class AvgFunction

extends AggregateFunction
Class Inheritance

One of the aggregate functions. The arguments must be numeric. AVG returns Double.
BNF: expression ::= AVG([DISTINCT] state_field_path_expression)
Author
Pascal Filion
Since
2.3
Version
2.5

Constructor Summary

AccessConstructor and Description
public
AvgFunction(AbstractExpression
The parent of this expression
parent
)

Creates a new AvgFunction.

Method Summary

Modifier and TypeMethod and Description
public void
accept(ExpressionVisitor
The ExpressionVisitor to visit this object
visitor
)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.
Inherited from org.eclipse.persistence.jpa.jpql.parser.AggregateFunction:
addOrderedEncapsulatedExpressionTobuildEncapsulatedExpressiongetActualDistinctIdentifiergetEncapsulatedExpressionQueryBNFIdgetQueryBNFhasDistincthasSpaceAfterDistinctparseEncapsulatedExpressiontoParsedTextEncapsulatedExpression

Constructor Detail

AvgFunctionback to summary
public AvgFunction(AbstractExpression parent)

Creates a new AvgFunction.

Parameters
parent:AbstractExpression

The parent of this expression

Method Detail

acceptback to summary
public void accept(ExpressionVisitor visitor)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Doc from org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.

Parameters
visitor:ExpressionVisitor

The ExpressionVisitor to visit this object

Annotations
@Override