Class JPQLQueryBuilder2_1
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.model.AbstractJPQLQueryBuilder
-
- org.eclipse.persistence.jpa.jpql.tools.model.JPQLQueryBuilder2_1
-
- All Implemented Interfaces:
IJPQLQueryBuilder
public final class JPQLQueryBuilder2_1 extends AbstractJPQLQueryBuilder
An implementation ofIJPQLQueryBuilderthat provides support based on the Java Persistence functional specification defined in JSR-338 - Java Persistence 2.1.- Version:
- 2.4
- Author:
- Pascal Filion
- Since:
- 2.4
-
-
Constructor Summary
Constructors Constructor Description JPQLQueryBuilder2_1()Creates a newJPQLQueryBuilder2_1.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DefaultStateObjectBuilderbuildStateObjectBuilder()Creates the builder that creates theStateObjectfor eachExpression.DefaultConditionalExpressionStateObjectBuilderbuildStateObjectBuilder(AbstractConditionalClauseStateObject stateObject)Creates a builder that can create a conditional expression programmatically.DefaultSelectExpressionStateObjectBuilderbuildStateObjectBuilder(SelectClauseStateObject stateObject)Creates a builder that can create a select expression programmatically.DefaultSimpleSelectExpressionStateObjectBuilderbuildStateObjectBuilder(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.java.lang.StringtoString()-
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.model.AbstractJPQLQueryBuilder
buildCaseExpressionStateObjectBuilder, buildStateObject, buildStateObject, buildStateObject, getStateObjectBuilder, parse, parse, wrap
-
-
-
-
Method Detail
-
buildStateObjectBuilder
protected DefaultStateObjectBuilder buildStateObjectBuilder()
Creates the builder that creates theStateObjectfor eachExpression.- Specified by:
buildStateObjectBuilderin classAbstractJPQLQueryBuilder- Returns:
- The builder that will be visiting the
Expression
-
buildStateObjectBuilder
public DefaultConditionalExpressionStateObjectBuilder 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
-
buildStateObjectBuilder
public DefaultSelectExpressionStateObjectBuilder 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
-
buildStateObjectBuilder
public DefaultSimpleSelectExpressionStateObjectBuilder 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
-
buildStateObjectBuilder
public INewValueStateObjectBuilder 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
-
getGrammar
public JPQLGrammar getGrammar()
Returns theJPQLGrammarthat is associated with this builder.- Returns:
- The
JPQLGrammarthat was used to parse the JPQL query or JPQL fragments
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-