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

public final Class CountFunction

extends AggregateFunction
Class Inheritance
Imports
org.eclipse.persistence.jpa.jpql.WordParser

One of the aggregate functions. The return type of this function is a Long.
BNF: expression ::= COUNT ([DISTINCT] identification_variable | state_field_path_expression | single_valued_object_path_expression)
Author
Pascal Filion
Since
2.3
Version
2.5

Constructor Summary

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

Creates a new CountFunction.

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.
protected AbstractExpression
buildEncapsulatedExpression(WordParser wordParser, String
The word that was parsed
word
)

Overrides org.eclipse.persistence.jpa.jpql.parser.AggregateFunction.buildEncapsulatedExpression.

Creates the AbstractExpression to represent the given word.
public String
Inherited from org.eclipse.persistence.jpa.jpql.parser.AggregateFunction:
addOrderedEncapsulatedExpressionTogetActualDistinctIdentifiergetQueryBNFhasDistincthasSpaceAfterDistinctparseEncapsulatedExpressiontoParsedTextEncapsulatedExpression

Constructor Detail

CountFunctionback to summary
public CountFunction(AbstractExpression parent)

Creates a new CountFunction.

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
buildEncapsulatedExpressionback to summary
protected AbstractExpression buildEncapsulatedExpression(WordParser wordParser, String word)

Overrides org.eclipse.persistence.jpa.jpql.parser.AggregateFunction.buildEncapsulatedExpression.

Doc from org.eclipse.persistence.jpa.jpql.parser.AggregateFunction.buildEncapsulatedExpression.

Creates the AbstractExpression to represent the given word.

Parameters
word:String

The word that was parsed

Returns:AbstractExpression

The encapsulated AbstractExpression

Annotations
@Override
getEncapsulatedExpressionQueryBNFIdback to summary
public String getEncapsulatedExpressionQueryBNFId()

Overrides org.eclipse.persistence.jpa.jpql.parser.AggregateFunction.getEncapsulatedExpressionQueryBNFId.

Doc from org.eclipse.persistence.jpa.jpql.parser.AbstractSingleEncapsulatedExpression.getEncapsulatedExpressionQueryBNFId.

Returns the BNF used to parse the encapsulated expression.

Returns:String

The BNF used to parse the encapsulated expression

Annotations
@Override