Class EclipseLinkJPQLQueryBuilder
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.model.AbstractJPQLQueryBuilder
org.eclipse.persistence.jpa.jpql.tools.model.EclipseLinkJPQLQueryBuilder
- All Implemented Interfaces:
IJPQLQueryBuilder
An implementation of
IJPQLQueryBuilder
that provides support based on the release
of the Java Persistence functional specification defined in
JSR-337 - Java Persistence 2.0. EclipseLink 2.1 provides additional support for 2 additional
JPQL identifiers: FUNC
and TREAT
.- Since:
- 2.4
- Version:
- 2.4
-
Constructor Summary
ConstructorDescriptionEclipseLinkJPQLQueryBuilder
(JPQLGrammar jpqlGrammar) Creates a newEclipseLinkJPQLQueryBuilder
. -
Method Summary
Modifier and TypeMethodDescriptionprotected EclipseLinkStateObjectBuilder
Creates the builder that creates theStateObject
for eachExpression
.Creates a builder that can create a conditional expression programmatically.buildStateObjectBuilder
(SelectClauseStateObject stateObject) Creates a builder that can create a select expression programmatically.buildStateObjectBuilder
(SimpleSelectClauseStateObject stateObject) Creates a builder that can create a single select expression programmatically.buildStateObjectBuilder
(UpdateItemStateObject stateObject) Creates a builder that can create a new value expression programmatically.Returns theJPQLGrammar
that is associated with this builder.toString()
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.model.AbstractJPQLQueryBuilder
buildCaseExpressionStateObjectBuilder, buildStateObject, buildStateObject, buildStateObject, getStateObjectBuilder, parse, parse, wrap
-
Constructor Details
-
EclipseLinkJPQLQueryBuilder
Creates a newEclipseLinkJPQLQueryBuilder
.- Parameters:
jpqlGrammar
- TheJPQLGrammar
that will be used to parse JPQL queries, which has EclipseLink support
-
-
Method Details
-
buildStateObjectBuilder
Description copied from class:AbstractJPQLQueryBuilder
Creates the builder that creates theStateObject
for eachExpression
.- Specified by:
buildStateObjectBuilder
in classAbstractJPQLQueryBuilder
- Returns:
- The builder that will be visiting the
Expression
-
buildStateObjectBuilder
public IConditionalExpressionStateObjectBuilder buildStateObjectBuilder(AbstractConditionalClauseStateObject stateObject) Description copied from interface:IJPQLQueryBuilder
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
-
buildStateObjectBuilder
public EclipseLinkSelectExpressionStateObjectBuilder buildStateObjectBuilder(SelectClauseStateObject stateObject) Description copied from interface:IJPQLQueryBuilder
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
-
buildStateObjectBuilder
public EclipseLinkSimpleSelectExpressionStateObjectBuilder buildStateObjectBuilder(SimpleSelectClauseStateObject stateObject) Description copied from interface:IJPQLQueryBuilder
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
-
buildStateObjectBuilder
Description copied from interface:IJPQLQueryBuilder
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
-
getGrammar
Description copied from interface:IJPQLQueryBuilder
Returns theJPQLGrammar
that is associated with this builder.- Returns:
- The
JPQLGrammar
that was used to parse the JPQL query or JPQL fragments
-
toString
-