|
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.model.JPQLQueryBuilderWrapper
public abstract class JPQLQueryBuilderWrapper
This builder wraps another builder and simply delegates the calls to it.
Constructor Summary | |
---|---|
protected |
JPQLQueryBuilderWrapper(IJPQLQueryBuilder delegate)
Creates a new JPQLQueryBuilderWrapper . |
Method Summary | |
---|---|
ICaseExpressionStateObjectBuilder |
buildCaseExpressionStateObjectBuilder(StateObject parent)
Creates a builder that can create a CASE expression programmatically. |
JPQLQueryStateObject |
buildStateObject(IManagedTypeProvider provider,
java.lang.CharSequence jpqlQuery,
boolean tolerant)
Creates a state model representation of a JPQL query that can be edited. |
JPQLQueryStateObject |
buildStateObject(IManagedTypeProvider provider,
java.lang.CharSequence jpqlQuery,
java.lang.String queryBNFId,
boolean tolerant)
Creates a state model representation of a JPQL query that can be edited. |
StateObject |
buildStateObject(StateObject parent,
java.lang.CharSequence jpqlFragment,
java.lang.String queryBNFId)
Creates a StateObject representation of the given JPQL fragment. |
IConditionalExpressionStateObjectBuilder |
buildStateObjectBuilder(AbstractConditionalClauseStateObject stateObject)
Creates a builder that can create a conditional expression programmatically. |
ISelectExpressionStateObjectBuilder |
buildStateObjectBuilder(SelectClauseStateObject stateObject)
Creates a builder that can create a select expression programmatically. |
ISimpleSelectExpressionStateObjectBuilder |
buildStateObjectBuilder(SimpleSelectClauseStateObject stateObject)
Creates a builder that can create a single select expression programmatically. |
INewValueStateObjectBuilder |
buildStateObjectBuilder(UpdateItemStateObject stateObject)
Creates a builder that can create a new value expression programmatically. |
protected IJPQLQueryBuilder |
getDelegate()
Returns the delegate builder that receives the calls from this one. |
JPQLGrammar |
getGrammar()
Returns the JPQLGrammar that is associated with this builder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JPQLQueryBuilderWrapper(IJPQLQueryBuilder delegate)
JPQLQueryBuilderWrapper
.
delegate
- The delegate builder that receives the calls from this one
java.lang.NullPointerException
- If the given delegate is null
Method Detail |
---|
public ICaseExpressionStateObjectBuilder buildCaseExpressionStateObjectBuilder(StateObject parent)
CASE
expression programmatically. Once
the expression is complete, ICaseExpressionStateObjectBuilder.buildStateObject()
will
return the result.
buildCaseExpressionStateObjectBuilder
in interface IJPQLQueryBuilder
parent
- The StateObject
that will be the parent of the newly created model
CASE
expressionpublic JPQLQueryStateObject buildStateObject(IManagedTypeProvider provider, java.lang.CharSequence jpqlQuery, boolean tolerant)
buildStateObject
in interface IJPQLQueryBuilder
provider
- The provider of managed typesjpqlQuery
- The JPQL query to parse into a StateObject
modeltolerant
- Determines if the parsing system should be tolerant, meaning if it should try
to parse invalid or incomplete queries
StateObject
model that represents the edited form of the JPQL querypublic JPQLQueryStateObject buildStateObject(IManagedTypeProvider provider, java.lang.CharSequence jpqlQuery, java.lang.String queryBNFId, boolean tolerant)
buildStateObject
in interface IJPQLQueryBuilder
provider
- The provider of managed typesjpqlQuery
- The JPQL query to parse into a StateObject
modelqueryBNFId
- The unique identifier of the query BNF that will be used to parse the fragmenttolerant
- Determines if the parsing system should be tolerant, meaning if it should try
to parse invalid or incomplete queries
StateObject
model that represents the edited form of the JPQL querypublic StateObject buildStateObject(StateObject parent, java.lang.CharSequence jpqlFragment, java.lang.String queryBNFId)
StateObject
representation of the given JPQL fragment. In order to properly
parse the fragment, the given unique identifier of the parser.JPQLQueryBNF JPQLQueryBNF
will determine how to parse it.
It is possible the given JPQL fragment has more than one expression, in this case, parsing should stop at the first comma (x, y) or space (x y) where x and y are two separate expressions.
buildStateObject
in interface IJPQLQueryBuilder
parent
- The StateObject
that will be the parent of the newly created modeljpqlFragment
- A portion of a JPQL query that will be parsed and the StateObject
representation will be createdqueryBNFId
- The unique identifier of the query BNF that will be used to parse the fragment
StateObject
representation of the given JPQL fragmentpublic IConditionalExpressionStateObjectBuilder buildStateObjectBuilder(AbstractConditionalClauseStateObject stateObject)
IConditionalExpressionStateObjectBuilder.commit()
will push
the result onto the given state object.
buildStateObjectBuilder
in interface IJPQLQueryBuilder
stateObject
- The clause for which a conditional expression can be created
public ISelectExpressionStateObjectBuilder buildStateObjectBuilder(SelectClauseStateObject stateObject)
ISelectExpressionStateObjectBuilder.commit()
will push the result onto the
given state object.
buildStateObjectBuilder
in interface IJPQLQueryBuilder
stateObject
- The clause for which one or many select expressions can be created
public ISimpleSelectExpressionStateObjectBuilder buildStateObjectBuilder(SimpleSelectClauseStateObject stateObject)
ISimpleSelectExpressionStateObjectBuilder.commit()
will push
the result onto the given state object.
buildStateObjectBuilder
in interface IJPQLQueryBuilder
stateObject
- The clause for which a select expression can be created
public INewValueStateObjectBuilder buildStateObjectBuilder(UpdateItemStateObject stateObject)
INewValueStateObjectBuilder.commit()
will push the result
onto the given state object.
buildStateObjectBuilder
in interface IJPQLQueryBuilder
stateObject
- The parent for which a new value expression can be created
protected IJPQLQueryBuilder getDelegate()
public JPQLGrammar getGrammar()
JPQLGrammar
that is associated with this builder.
getGrammar
in interface IJPQLQueryBuilder
JPQLGrammar
that was used to parse the JPQL query or JPQL fragments
|
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 |