Class AggregateExpressionBNF
java.lang.Object
org.eclipse.persistence.jpa.jpql.parser.JPQLQueryBNF
org.eclipse.persistence.jpa.jpql.parser.AggregateExpressionBNF
The query BNF for an aggregate expression.
JPA 1.0, 2.0:
BNF:
JPA 2.1:
aggregate_expression ::= { AVG | MAX | MIN | SUM } ([DISTINCT] state_field_path_expression) |
COUNT ([DISTINCT] identification_variable |
state_field_path_expression |
single_valued_object_path_expression)
BNF:
aggregate_expression ::= { AVG | MAX | MIN | SUM } ([DISTINCT] state_field_path_expression) |
COUNT ([DISTINCT] identification_variable |
state_field_path_expression |
single_valued_object_path_expression) |
function_invocation
- Since:
- 2.3
- Version:
- 2.4
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Initializes this BNF by registering childJPQLQueryBNFs
andExpressionFactories
.Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.JPQLQueryBNF
children, getExpressionFactory, getExpressionFactoryIds, getExpressionRegistry, getFallbackBNFId, getFallbackExpressionFactoryId, getId, getIdentifiers, handleAggregate, handleCollection, handlesNestedArray, handleSubExpression, hasChild, hasIdentifier, isCompound, nonCompoundChildren, registerChild, registerExpressionFactory, setCompound, setFallbackBNFId, setFallbackExpressionFactoryId, setHandleAggregate, setHandleCollection, setHandleNestedArray, setHandleSubExpression, toString, toString
-
Field Details
-
ID
The unique identifier of this BNF rule.- See Also:
-
-
Constructor Details
-
AggregateExpressionBNF
public AggregateExpressionBNF()Creates a newAggregateExpressionBNF
.
-
-
Method Details
-
initialize
protected void initialize()Description copied from class:JPQLQueryBNF
Initializes this BNF by registering childJPQLQueryBNFs
andExpressionFactories
.- Overrides:
initialize
in classJPQLQueryBNF
-