Interface IJPQLQueryBuilder
- 
- All Known Implementing Classes:
- AbstractJPQLQueryBuilder,- DefaultEclipseLinkJPQLQueryBuilder,- DefaultJPQLQueryBuilder,- EclipseLinkJPQLQueryBuilder,- JPQLQueryBuilder1_0,- JPQLQueryBuilder2_0,- JPQLQueryBuilder2_1,- JPQLQueryBuilderWrapper
 
 public interface IJPQLQueryBuilderThis builder is responsible to create an editableStateObjectrepresentation of a JPQL query.Some default implementations are available: - Generic JPA 1.0: JPQLQueryBuilder1_0
- Generic JPA 2.0: JPQLQueryBuilder2_0
- EclipseLink: EclipseLinkJPQLQueryBuilder
 - Version:
- 2.4
- See Also:
- IManagedTypeProvider,- StateObject
- Author:
- Pascal Filion
- Since:
- 2.4
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ICaseExpressionStateObjectBuilderbuildCaseExpressionStateObjectBuilder(StateObject parent)Creates a builder that can create aCASEexpression programmatically.StateObjectbuildStateObject(StateObject parent, java.lang.CharSequence jpqlFragment, java.lang.String queryBNFId)Creates aStateObjectrepresentation of the given JPQL fragment.JPQLQueryStateObjectbuildStateObject(IManagedTypeProvider provider, java.lang.CharSequence jpqlQuery, boolean tolerant)Creates a state model representation of a JPQL query that can be edited.JPQLQueryStateObjectbuildStateObject(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.IConditionalExpressionStateObjectBuilderbuildStateObjectBuilder(AbstractConditionalClauseStateObject stateObject)Creates a builder that can create a conditional expression programmatically.ISelectExpressionStateObjectBuilderbuildStateObjectBuilder(SelectClauseStateObject stateObject)Creates a builder that can create a select expression programmatically.ISimpleSelectExpressionStateObjectBuilderbuildStateObjectBuilder(SimpleSelectClauseStateObject stateObject)Creates a builder that can create a single select expression programmatically.INewValueStateObjectBuilderbuildStateObjectBuilder(UpdateItemStateObject stateObject)Creates a builder that can create a new value expression programmatically.JPQLGrammargetGrammar()Returns theJPQLGrammarthat is associated with this builder.
 
- 
- 
- 
Method Detail- 
buildCaseExpressionStateObjectBuilderICaseExpressionStateObjectBuilder buildCaseExpressionStateObjectBuilder(StateObject parent) Creates a builder that can create aCASEexpression programmatically. Once the expression is complete,ICaseExpressionStateObjectBuilder.buildStateObject()will return the result.- Parameters:
- parent- The- StateObjectthat will be the parent of the newly created model
- Returns:
- The builder of a CASEexpression
 
 - 
buildStateObjectJPQLQueryStateObject buildStateObject(IManagedTypeProvider provider, java.lang.CharSequence jpqlQuery, boolean tolerant) Creates a state model representation of a JPQL query that can be edited.- Parameters:
- provider- The provider of managed types
- jpqlQuery- The JPQL query to parse into a- StateObjectmodel
- tolerant- Determines if the parsing system should be tolerant, meaning if it should try to parse invalid or incomplete queries
- Returns:
- The root of the StateObjectmodel that represents the edited form of the JPQL query
 
 - 
buildStateObjectJPQLQueryStateObject 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.- Parameters:
- provider- The provider of managed types
- jpqlQuery- The JPQL query to parse into a- StateObjectmodel
- queryBNFId- The unique identifier of the query BNF that will be used to parse the fragment
- tolerant- Determines if the parsing system should be tolerant, meaning if it should try to parse invalid or incomplete queries
- Returns:
- The root of the StateObjectmodel that represents the edited form of the JPQL query
 
 - 
buildStateObjectStateObject buildStateObject(StateObject parent, java.lang.CharSequence jpqlFragment, java.lang.String queryBNFId) Creates aStateObjectrepresentation of the given JPQL fragment. In order to properly parse the fragment, the given unique identifier of theJPQLQueryBNFwill 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. - Parameters:
- parent- The- StateObjectthat will be the parent of the newly created model
- jpqlFragment- A portion of a JPQL query that will be parsed and the- StateObjectrepresentation will be created
- queryBNFId- The unique identifier of the query BNF that will be used to parse the fragment
- Returns:
- The StateObjectrepresentation of the given JPQL fragment
 
 - 
buildStateObjectBuilderIConditionalExpressionStateObjectBuilder buildStateObjectBuilder(AbstractConditionalClauseStateObject stateObject) Creates a builder that can create a conditional expression programmatically. Once the expression is complete,IConditionalExpressionStateObjectBuilder.commit()will push the result onto the given state object.- Parameters:
- stateObject- The clause for which a conditional expression can be created
- Returns:
- The builder of a conditional expression
 
 - 
buildStateObjectBuilderISelectExpressionStateObjectBuilder buildStateObjectBuilder(SelectClauseStateObject stateObject) Creates a builder that can create a select expression programmatically. Once the expression is complete,ISelectExpressionStateObjectBuilder.commit()will push the result onto the given state object.- Parameters:
- stateObject- The clause for which one or many select expressions can be created
- Returns:
- The builder of a conditional expression
 
 - 
buildStateObjectBuilderISimpleSelectExpressionStateObjectBuilder buildStateObjectBuilder(SimpleSelectClauseStateObject stateObject) Creates a builder that can create a single select expression programmatically. Once the expression is complete,ISimpleSelectExpressionStateObjectBuilder.commit()will push the result onto the given state object.- Parameters:
- stateObject- The clause for which a select expression can be created
- Returns:
- The builder of a conditional expression
 
 - 
buildStateObjectBuilderINewValueStateObjectBuilder buildStateObjectBuilder(UpdateItemStateObject stateObject) Creates a builder that can create a new value expression programmatically. Once the expression is complete,INewValueStateObjectBuilder.commit()will push the result onto the given state object.- Parameters:
- stateObject- The parent for which a new value expression can be created
- Returns:
- The builder of a new value expression
 
 - 
getGrammarJPQLGrammar getGrammar() Returns theJPQLGrammarthat is associated with this builder.- Returns:
- The JPQLGrammarthat was used to parse the JPQL query or JPQL fragments
 
 
- 
 
-