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 InternalWhenClauseBNF

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


public final class InternalWhenClauseBNF
extends JPQLQueryBNF

The query BNF for the expression following the WHEN identifier.

BNF: when_clause ::= WHEN conditional_expression THEN scalar_expression

or

BNF: simple_when_clause ::= WHEN scalar_expression THEN scalar_expression
Since:
2.3
Version:
2.3
Author:
Pascal Filion

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

InternalWhenClauseBNF

InternalWhenClauseBNF()
Creates a new InternalWhenClauseBNF.
Method Detail

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

initialize

void initialize()
Initializes this BNF rule by registering child BNF rules and expression factories.
Overrides:
initialize in class JPQLQueryBNF

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