|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.jpql.parser.JPQLQueryBNF org.eclipse.persistence.jpa.jpql.parser.VirtualJPQLQueryBNF
public final class 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.
Constructor Summary | |
---|---|
VirtualJPQLQueryBNF(JPQLGrammar jpqlGrammar)
Creates a new VirtualJPQLQueryBNF . |
Method Summary | |
---|---|
void |
dispose()
Disposes this "virtual" query BNF. |
void |
registerFactory(java.lang.String expressionFactoryId)
Registers a unique identifier that will be used to create the Expression representing
this BNF rule. |
void |
registerQueryBNF(java.lang.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, handlesSubExpression, hasIdentifier, initialize, isCompound, nonCompoundChildren, registerChild, registerExpressionFactory, setCompound, setFallbackBNFId, setFallbackExpressionFactoryId, setHandleAggregate, setHandleCollection, setHandleSubExpression, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VirtualJPQLQueryBNF(JPQLGrammar jpqlGrammar)
VirtualJPQLQueryBNF
.
jpqlGrammar
- The JPQLGrammar
to integrate this virtual query BNF
java.lang.NullPointerException
- If the given JPQLGrammar
is null
Method Detail |
---|
public void dispose()
public void registerFactory(java.lang.String expressionFactoryId)
Expression
representing
this BNF rule.
expressionFactoryId
- The unique identifier that is responsible to create the
Expression
for this BNF rulepublic void registerQueryBNF(java.lang.String queryBNFId)
queryBNFId
- The unique identifier of the BNF rule
java.lang.NullPointerException
- The queryBNFId
cannot be null
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |