IJPQLQueryBuilder that parses a JPQL query or any JPQL
fragments and creates the StateObject representation by delegating the creation to an
instance of BasicStateObjectBuilder.
DefaultJPQLQueryBuilder, EclipseLinkJPQLQueryBuilder
| Modifier and Type | Field and Description |
|---|---|
| private BasicStateObjectBuilder | builder
Keeps a reference for future use. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public ICaseExpressionStateObjectBuilder | buildCaseExpressionStateObjectBuilder(StateObject
The parent)StateObject that will be the parent of the newly created modelImplements org. CASE expression programmatically.
|
| public JPQLQueryStateObject | buildStateObject(IManagedTypeProvider
The provider of managed types provider, CharSequence The JPQL query to parse into a jpqlQuery, boolean StateObject modelDetermines if the parsing system should be tolerant, meaning if it should try
to parse invalid or incomplete queries tolerant)Implements org. |
| public JPQLQueryStateObject | buildStateObject(IManagedTypeProvider
The provider of managed types provider, CharSequence The JPQL query to parse into a jpqlQuery, String StateObject modelThe unique identifier of the query BNF that will be used to parse the fragment queryBNFId, boolean Determines if the parsing system should be tolerant, meaning if it should try
to parse invalid or incomplete queries tolerant)Implements org. |
| public StateObject | buildStateObject(StateObject
The parent, CharSequence StateObject that will be the parent of the newly created modelA portion of a JPQL query that will be parsed and the jpqlFragment, String StateObject
representation will be createdThe unique identifier of the query BNF that will be used to parse the fragment queryBNFId)Implements org. StateObject representation of the given JPQL fragment.
|
| protected abstract BasicStateObjectBuilder | Returns: The builder that will be visiting theExpressionCreates the builder that creates the |
| protected final BasicStateObjectBuilder | Returns: The builder that will be visiting theExpressionReturns the builder that creates the |
| protected JPQLExpression | Returns: The root of the parsed tree representation of the JPQL queryThe string representation of the JPQL query to parse jpqlQuery, JPQLGrammar The JPQL grammar that defines how to parse a JPQL query jpqlGrammar, boolean Determines if the parsing system should be tolerant, meaning if it should try
to parse invalid or incomplete queries tolerant)Parses the given JPQL query with tolerant mode turned on. |
| protected JPQLExpression | Returns: The root of the parsed tree representation of the JPQL fragmentThe string representation of the portion of a JPQL query to parse jpqFragment, JPQLGrammar The JPQL grammar that defines how to parse a JPQL query jpqlGrammar, String The unique identifier of the queryBNFId)JPQLQueryBNFParses the given JPQL fragment with tolerant mode turned on. |
| protected ExpressionVisitor | Returns: By default the given builder is returnedThe builder to wrap builder)If a subclass needs to wrap the given |
| builder | back to summary |
|---|---|
| private BasicStateObjectBuilder builder Keeps a reference for future use. | |
| AbstractJPQLQueryBuilder | back to summary |
|---|---|
| protected AbstractJPQLQueryBuilder() Creates a new | |
| buildCaseExpressionStateObjectBuilder | back to summary |
|---|---|
| public ICaseExpressionStateObjectBuilder buildCaseExpressionStateObjectBuilder(StateObject parent) Implements org. Doc from org. Creates a builder that can create a
| |
| buildStateObject | back to summary |
|---|---|
| public JPQLQueryStateObject buildStateObject(IManagedTypeProvider provider, CharSequence jpqlQuery, boolean tolerant) Implements org. Doc from org. Creates a state model representation of a JPQL query that can be edited.
| |
| buildStateObject | back to summary |
|---|---|
| public JPQLQueryStateObject buildStateObject(IManagedTypeProvider provider, CharSequence jpqlQuery, String queryBNFId, boolean tolerant) Implements org. Doc from org. Creates a state model representation of a JPQL query that can be edited.
| |
| buildStateObject | back to summary |
|---|---|
| public StateObject buildStateObject(StateObject parent, CharSequence jpqlFragment, String queryBNFId) Implements org. Doc from org. Creates a 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.
| |
| buildStateObjectBuilder | back to summary |
|---|---|
| protected abstract BasicStateObjectBuilder buildStateObjectBuilder() Creates the builder that creates the
| |
| getStateObjectBuilder | back to summary |
|---|---|
| protected final BasicStateObjectBuilder getStateObjectBuilder() Returns the builder that creates the
| |
| parse | back to summary |
|---|---|
| protected JPQLExpression parse(CharSequence jpqlQuery, JPQLGrammar jpqlGrammar, boolean tolerant) Parses the given JPQL query with tolerant mode turned on.
| |
| parse | back to summary |
|---|---|
| protected JPQLExpression parse(CharSequence jpqFragment, JPQLGrammar jpqlGrammar, String queryBNFId) Parses the given JPQL fragment with tolerant mode turned on.
| |
| wrap | back to summary |
|---|---|
| protected ExpressionVisitor wrap(BasicStateObjectBuilder builder) If a subclass needs to wrap the given
| |