public abstract class JPQLQueryBuilderWrapper extends java.lang.Object implements IJPQLQueryBuilder
| Modifier | Constructor and Description |
|---|---|
protected |
JPQLQueryBuilderWrapper(IJPQLQueryBuilder delegate)
Creates a new
JPQLQueryBuilderWrapper. |
| Modifier and Type | Method and Description |
|---|---|
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. |
protected JPQLQueryBuilderWrapper(IJPQLQueryBuilder delegate)
JPQLQueryBuilderWrapper.delegate - The delegate builder that receives the calls from this onejava.lang.NullPointerException - If the given delegate is nullpublic ICaseExpressionStateObjectBuilder buildCaseExpressionStateObjectBuilder(StateObject parent)
CASE expression programmatically. Once
the expression is complete, ICaseExpressionStateObjectBuilder.buildStateObject() will
return the result.buildCaseExpressionStateObjectBuilder in interface IJPQLQueryBuilderparent - The StateObject that will be the parent of the newly created modelCASE expressionpublic JPQLQueryStateObject buildStateObject(IManagedTypeProvider provider, java.lang.CharSequence jpqlQuery, boolean tolerant)
buildStateObject in interface IJPQLQueryBuilderprovider - 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 queriesStateObject 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 IJPQLQueryBuilderprovider - 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 queriesStateObject 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
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 IJPQLQueryBuilderparent - 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 fragmentStateObject representation of the given JPQL fragmentpublic IConditionalExpressionStateObjectBuilder buildStateObjectBuilder(AbstractConditionalClauseStateObject stateObject)
IConditionalExpressionStateObjectBuilder.commit() will push
the result onto the given state object.buildStateObjectBuilder in interface IJPQLQueryBuilderstateObject - The clause for which a conditional expression can be createdpublic ISelectExpressionStateObjectBuilder buildStateObjectBuilder(SelectClauseStateObject stateObject)
ISelectExpressionStateObjectBuilder.commit() will push the result onto the
given state object.buildStateObjectBuilder in interface IJPQLQueryBuilderstateObject - The clause for which one or many select expressions can be createdpublic ISimpleSelectExpressionStateObjectBuilder buildStateObjectBuilder(SimpleSelectClauseStateObject stateObject)
ISimpleSelectExpressionStateObjectBuilder.commit() will push
the result onto the given state object.buildStateObjectBuilder in interface IJPQLQueryBuilderstateObject - The clause for which a select expression can be createdpublic INewValueStateObjectBuilder buildStateObjectBuilder(UpdateItemStateObject stateObject)
INewValueStateObjectBuilder.commit() will push the result
onto the given state object.buildStateObjectBuilder in interface IJPQLQueryBuilderstateObject - The parent for which a new value expression can be createdprotected IJPQLQueryBuilder getDelegate()
public JPQLGrammar getGrammar()
JPQLGrammar that is associated with this builder.getGrammar in interface IJPQLQueryBuilderJPQLGrammar that was used to parse the JPQL query or JPQL fragments