The query BNF for a comparison 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}
- Since:
- 2.3
- Version:
- 2.3
- Author:
- Pascal Filion
Field Summary |
static java.lang.String |
ID
The unique identifier of this BNF rule. |
Methods inherited from class org.eclipse.persistence.jpa.internal.jpql.parser.JPQLQueryBNF |
addChildren, children, expressionFactory, expressionFactoryIds, getId, handleAggregate, handleCollection, hasIdentifier, identifiers, nonCompoundChildren, registerChild, registerExpressionFactory, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ID
public static final java.lang.String ID
- The unique identifier of this BNF rule.
- See Also:
- Constant Field Values
ComparisonExpressionBNF
public ComparisonExpressionBNF()
- Creates a new
ComparisonExpressionBNF
.
getFallbackBNFId
java.lang.String getFallbackBNFId()
- When parsing the query and no
JPQLQueryBNFs
can help to parse the query, then it will fall back on this one.
-
- Overrides:
getFallbackBNFId
in class JPQLQueryBNF
-
- Returns:
- The unique identifier of the
JPQLQueryBNF
to use in the last resort
getFallbackExpressionFactoryId
java.lang.String getFallbackExpressionFactoryId()
- Returns the unique identifier of the
ExpressionFactory
to use when the fall back BNF ID is not null
. This will be used to parse a portion of the query when the registered expression factories
cannot parse it.
Note: This method is only called if JPQLQueryBNF.getFallbackBNFId()
does not return null
.
-
- Overrides:
getFallbackExpressionFactoryId
in class JPQLQueryBNF
-
- Returns:
- The unique identifier of the
ExpressionFactory
initialize
void initialize()
- Initializes this BNF rule by registering child
BNF rules
and expression factories
.
-
- Overrides:
initialize
in class JPQLQueryBNF
isCompound
public boolean isCompound()
- Determines whether this BNF has child BNFs registered only to properly parse a query or if the child BNFs are part of the BNF. An example if a compound BNF is
BetweenExpressionBNF
, it registers a series of children BNFs but they shouldn't be used to determine if they are part of that BNF since the comparator identifiers are.
-
- Overrides:
isCompound
in class JPQLQueryBNF
-
- Returns:
false
by default