Class FunctionsReturningNumericsBNF
java.lang.Object
org.eclipse.persistence.jpa.jpql.parser.JPQLQueryBNF
org.eclipse.persistence.jpa.jpql.parser.FunctionsReturningNumericsBNF
The query BNF for a function expression returning a numeric value.
JPA 1.0:
BNF:
JPA 2.0:
functions_returning_numerics::= LENGTH(string_primary) |
LOCATE(string_primary, string_primary[, simple_arithmetic_expression]) |
ABS(simple_arithmetic_expression) | SQRT(simple_arithmetic_expression) |
MOD(simple_arithmetic_expression, simple_arithmetic_expression) |
SIZE(collection_valued_path_expression)
BNF:
functions_returning_numerics::= LENGTH(string_primary) |
LOCATE(string_primary, string_primary[, simple_arithmetic_expression]) |
ABS(simple_arithmetic_expression) | SQRT(simple_arithmetic_expression) |
MOD(simple_arithmetic_expression, simple_arithmetic_expression) |
SIZE(collection_valued_path_expression) |
INDEX(identification_variable)
- Version:
- 2.4
- Author:
- Pascal Filion
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a newFunctionsReturningNumericsBNF
. -
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
-
FunctionsReturningNumericsBNF
public FunctionsReturningNumericsBNF()Creates a newFunctionsReturningNumericsBNF
.
-
-
Method Details
-
initialize
protected void initialize()Description copied from class:JPQLQueryBNF
Initializes this BNF by registering childJPQLQueryBNFs
andExpressionFactories
.- Overrides:
initialize
in classJPQLQueryBNF
-