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

public final Class FunctionsReturningNumericsBNF

extends JPQLQueryBNF
Class Inheritance
Annotations
@SuppressWarnings:nls

The query BNF for a function expression returning a numeric value.

JPA 1.0:

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)
JPA 2.0:
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)
Jakarta Persistence 3.1:
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

Modifier and TypeField and Description
public static final String
ID

The unique identifier of this BNF rule.

Constructor Summary

AccessConstructor and Description
public
FunctionsReturningNumericsBNF()

Creates a new FunctionsReturningNumericsBNF.

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from org.eclipse.persistence.jpa.jpql.parser.JPQLQueryBNF:
childrengetExpressionFactorygetExpressionFactoryIdsgetExpressionRegistrygetFallbackBNFIdgetFallbackExpressionFactoryIdgetIdgetIdentifiershandleAggregatehandleCollectionhandlesNestedArrayhandleSubExpressionhasChildhasIdentifierisCompoundnonCompoundChildrenregisterChildregisterExpressionFactorysetCompoundsetExpressionRegistrysetFallbackBNFIdsetFallbackExpressionFactoryIdsetHandleAggregatesetHandleCollectionsetHandleNestedArraysetHandleSubExpressiontoStringtoString

Field Detail

IDback to summary
public static final String ID

The unique identifier of this BNF rule.

Constructor Detail

FunctionsReturningNumericsBNFback to summary
public FunctionsReturningNumericsBNF()

Creates a new FunctionsReturningNumericsBNF.

Method Detail

initializeback to summary
protected void initialize()

Overrides org.eclipse.persistence.jpa.jpql.parser.JPQLQueryBNF.initialize.

Doc from org.eclipse.persistence.jpa.jpql.parser.JPQLQueryBNF.initialize.

Initializes this BNF by registering child JPQLQueryBNFs and ExpressionFactories.

Annotations
@Override