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.
- Version:
- 2.4
- Author:
- Pascal Filion
-
Constructor Summary
ConstructorDescriptionVirtualJPQLQueryBNF
(JPQLGrammar jpqlGrammar) Creates a newVirtualJPQLQueryBNF
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes this "virtual" query BNF.void
registerFactory
(String expressionFactoryId) Registers a unique identifier that will be used to create theExpression
representing this BNF rule.void
registerQueryBNF
(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
- TheJPQLGrammar
to integrate this virtual query BNF- Throws:
NullPointerException
- If the givenJPQLGrammar
isnull
-
-
Method Details
-
dispose
public void dispose()Disposes this "virtual" query BNF. -
registerFactory
Registers a unique identifier that will be used to create theExpression
representing this BNF rule.- Parameters:
expressionFactoryId
- The unique identifier that is responsible to create theExpression
for 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
- ThequeryBNFId
cannot benull
-