Class ComparisonExpressionBNF
java.lang.Object
org.eclipse.persistence.jpa.jpql.parser.JPQLQueryBNF
org.eclipse.persistence.jpa.jpql.parser.ComparisonExpressionBNF
The query BNF for a comparison expression.
JPA 1.0:
BNF:
JPA 2.0, 2.1:
comparison_expression ::= string_expression comparison_operator {string_expression | all_or_any_expression} |
boolean_expression { = | <> } {boolean_expression | all_or_any_expression} |
enum_expression { = | <> } {enum_expression | all_or_any_expression} |
datetime_expression comparison_operator {datetime_expression | all_or_any_expression} |
entity_expression { = | <> } {entity_expression | all_or_any_expression} |
arithmetic_expression comparison_operator {arithmetic_expression | all_or_any_expression}
BNF:
comparison_expression ::= string_expression comparison_operator {string_expression | all_or_any_expression} |
boolean_expression { = | <> } {boolean_expression | all_or_any_expression} |
enum_expression { = | <> } {enum_expression | all_or_any_expression} |
datetime_expression comparison_operator {datetime_expression | all_or_any_expression} |
entity_expression { = | <> } {entity_expression | all_or_any_expression} |
arithmetic_expression comparison_operator {arithmetic_expression | all_or_any_expression} |
entity_type_expression { = | <> } entity_type_expression}
- Version:
- 2.5
- Author:
- Pascal Filion
-
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
-
ComparisonExpressionBNF
public ComparisonExpressionBNF()Creates a newComparisonExpressionBNF
.
-
-
Method Details
-
initialize
protected void initialize()Description copied from class:JPQLQueryBNF
Initializes this BNF by registering childJPQLQueryBNFs
andExpressionFactories
.- Overrides:
initialize
in classJPQLQueryBNF
-