Class VirtualJPQLQueryBNF
java.lang.Object
org.eclipse.persistence.jpa.jpql.parser.JPQLQueryBNF
org.eclipse.persistence.jpa.jpql.parser.VirtualJPQLQueryBNF
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 Summary
ConstructorsConstructorDescriptionVirtualJPQLQueryBNF(JPQLGrammar jpqlGrammar) Creates a newVirtualJPQLQueryBNF. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposes this "virtual" query BNF.voidregisterFactory(String expressionFactoryId) Registers a unique identifier that will be used to create theExpressionrepresenting this BNF rule.voidregisterQueryBNF(String queryBNFId) Registers the unique identifier of the BNF rule as a child of this BNF rule.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, initialize, isCompound, nonCompoundChildren, registerChild, registerExpressionFactory, setCompound, setFallbackBNFId, setFallbackExpressionFactoryId, setHandleAggregate, setHandleCollection, setHandleNestedArray, setHandleSubExpression, toString, toString
-
Constructor Details
-
VirtualJPQLQueryBNF
Creates a newVirtualJPQLQueryBNF.- Parameters:
jpqlGrammar- TheJPQLGrammarto integrate this virtual query BNF- Throws:
NullPointerException- If the givenJPQLGrammarisnull
-
-
Method Details
-
dispose
public void dispose()Disposes this "virtual" query BNF. -
registerFactory
Registers a unique identifier that will be used to create theExpressionrepresenting this BNF rule.- Parameters:
expressionFactoryId- The unique identifier that is responsible to create theExpressionfor this BNF rule
-
registerQueryBNF
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- ThequeryBNFIdcannot benull
-