java.lang.Object
org.eclipse.persistence.jpa.jpql.parser.JPQLQueryBNF
org.eclipse.persistence.jpa.jpql.parser.VirtualJPQLQueryBNF

public final class VirtualJPQLQueryBNF extends JPQLQueryBNF
This JPQLQueryBNF can be used as a virtual BNF, which can wrap another BNF or BNFs and modify the default behavior.

The unique identifier for this BNF is automatically generated and can be retrieved with JPQLQueryBNF.getId().

Once this BNF is no longer needed, dispose() needs to be called.

Since:
2.4
Version:
2.4
  • Constructor Details

  • Method Details

    • dispose

      public void dispose()
      Disposes this "virtual" query BNF.
    • registerFactory

      public void registerFactory(String expressionFactoryId)
      Registers a unique identifier that will be used to create the Expression representing this BNF rule.
      Parameters:
      expressionFactoryId - The unique identifier that is responsible to create the Expression for this BNF rule
    • registerQueryBNF

      public void registerQueryBNF(String queryBNFId)
      Registers the unique identifier of the BNF rule as a child of this BNF rule.
      Parameters:
      queryBNFId - The unique identifier of the BNF rule
      Throws:
      NullPointerException - The queryBNFId cannot be null