Module eclipselink
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:
Jakarta Persistence 3.1:
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)BNF:
functions_returning_numerics ::= ABS(arithmetic_expression) |
CEILING(arithmetic_expression) |
EXP(arithmetic_expression) |
FLOOR(arithmetic_expression) |
LN(arithmetic_expression) |
MOD(arithmetic_expression, arithmetic_expression) |
POWER(arithmetic_expression, arithmetic_expression) |
ROUND(arithmetic_expression, arithmetic_expression) |
SIGN(arithmetic_expression) |
SQRT(arithmetic_expression) |
SIZE(collection_valued_path_expression) |
INDEX(identification_variable) |
extract_datetime_field
extract_datetime_field := EXTRACT(datetime_field FROM datetime_expression)
datetime_field := identification_variable- Author:
- Pascal Filion
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newFunctionsReturningNumericsBNF. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInitializes this BNF by registering childJPQLQueryBNFsandExpressionFactories.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:JPQLQueryBNFInitializes this BNF by registering childJPQLQueryBNFsandExpressionFactories.- Overrides:
initializein classJPQLQueryBNF
-