public abstract class AbstractJPQLQueryBuilder extends java.lang.Object implements IJPQLQueryBuilder
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 | 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. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildStateObjectBuilder, buildStateObjectBuilder, buildStateObjectBuilder, buildStateObjectBuilder, getGrammar
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 modelCASE
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 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 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 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 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 fragmentStateObject
representation of the given JPQL fragmentEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference