Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.jpa.internal.jpql.parser
Class BetweenExpressionBNF

java.lang.Object
  extended by org.eclipse.persistence.jpa.internal.jpql.parser.JPQLQueryBNF
      extended by org.eclipse.persistence.jpa.internal.jpql.parser.BetweenExpressionBNF


public final class BetweenExpressionBNF
extends JPQLQueryBNF

The query BNF for the between expression.

BNF: between_expression ::= arithmetic_expression [NOT] BETWEEN arithmetic_expression AND arithmetic_expression | string_expression [NOT] BETWEEN string_expression AND string_expression | datetime_expression [NOT] BETWEEN datetime_expression AND datetime_expression
Since:
2.3
Version:
2.3
Author:
Pascal Filion

Field Summary
static java.lang.String ID
          The unique identifier of this BetweenExpressionBNF.
 
Constructor Summary
BetweenExpressionBNF()
          Creates a new BetweenExpressionBNF.
 
Method Summary
(package private)  void initialize()
          Initializes this BNF rule by registering child BNF rules and expression factories.
 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.
 
Methods inherited from class org.eclipse.persistence.jpa.internal.jpql.parser.JPQLQueryBNF
addChildren, children, expressionFactory, expressionFactoryIds, getFallbackBNFId, getFallbackExpressionFactoryId, 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
 

Field Detail

ID

public static final java.lang.String ID
The unique identifier of this BetweenExpressionBNF.
See Also:
Constant Field Values
Constructor Detail

BetweenExpressionBNF

BetweenExpressionBNF()
Creates a new BetweenExpressionBNF.
Method Detail

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

Copyright © 1998, 2012, Oracle. All Rights Reserved.