Top Description Constructors Methods
org.eclipse.persistence.jpa.jpql.tools.model

public final Class JPQLQueryBuilder2_1

extends AbstractJPQLQueryBuilder
Class Inheritance
Annotations
@SuppressWarnings:nls
Imports
org.eclipse.persistence.jpa.jpql.parser.JPQLGrammar, .JPQLGrammar2_1, org.eclipse.persistence.jpa.jpql.tools.model.query.AbstractConditionalClauseStateObject, .SelectClauseStateObject, .SimpleSelectClauseStateObject, .UpdateItemStateObject

An implementation of IJPQLQueryBuilder that provides support based on the Java Persistence functional specification defined in JSR-338 - Java Persistence 2.1.
Author
Pascal Filion
Since
2.4
Version
2.4

Constructor Summary

AccessConstructor and Description
public
JPQLQueryBuilder2_1()

Creates a new JPQLQueryBuilder2_1.

Method Summary

Modifier and TypeMethod and Description
protected DefaultStateObjectBuilder
public DefaultConditionalExpressionStateObjectBuilder
buildStateObjectBuilder(AbstractConditionalClauseStateObject
The clause for which a conditional expression can be created
stateObject
)

Implements org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder.buildStateObjectBuilder.

Creates a builder that can create a conditional expression programmatically.
public DefaultSelectExpressionStateObjectBuilder
buildStateObjectBuilder(SelectClauseStateObject
The clause for which one or many select expressions can be created
stateObject
)

Implements org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder.buildStateObjectBuilder.

Creates a builder that can create a select expression programmatically.
public DefaultSimpleSelectExpressionStateObjectBuilder
buildStateObjectBuilder(SimpleSelectClauseStateObject
The clause for which a select expression can be created
stateObject
)

Implements org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder.buildStateObjectBuilder.

Creates a builder that can create a single select expression programmatically.
public INewValueStateObjectBuilder
buildStateObjectBuilder(UpdateItemStateObject
The parent for which a new value expression can be created
stateObject
)

Implements org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder.buildStateObjectBuilder.

Creates a builder that can create a new value expression programmatically.
public JPQLGrammar
getGrammar()

Implements org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder.getGrammar.

Returns the JPQLGrammar that is associated with this builder.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.eclipse.persistence.jpa.jpql.tools.model.AbstractJPQLQueryBuilder:
buildCaseExpressionStateObjectBuilderbuildStateObjectbuildStateObjectbuildStateObjectgetStateObjectBuilderparseparsewrap

Constructor Detail

JPQLQueryBuilder2_1back to summary
public JPQLQueryBuilder2_1()

Creates a new JPQLQueryBuilder2_1.

Method Detail

buildStateObjectBuilderback to summary
protected DefaultStateObjectBuilder buildStateObjectBuilder()

Implements abstract org.eclipse.persistence.jpa.jpql.tools.model.AbstractJPQLQueryBuilder.buildStateObjectBuilder.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.AbstractJPQLQueryBuilder.buildStateObjectBuilder.

Creates the builder that creates the StateObject for each Expression.

Returns:DefaultStateObjectBuilder

The builder that will be visiting the Expression

Annotations
@Override
buildStateObjectBuilderback to summary
public DefaultConditionalExpressionStateObjectBuilder buildStateObjectBuilder(AbstractConditionalClauseStateObject stateObject)

Implements org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder.buildStateObjectBuilder.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder.buildStateObjectBuilder.

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:AbstractConditionalClauseStateObject

The clause for which a conditional expression can be created

Returns:DefaultConditionalExpressionStateObjectBuilder

The builder of a conditional expression

Annotations
@Override
buildStateObjectBuilderback to summary
public DefaultSelectExpressionStateObjectBuilder buildStateObjectBuilder(SelectClauseStateObject stateObject)

Implements org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder.buildStateObjectBuilder.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder.buildStateObjectBuilder.

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:SelectClauseStateObject

The clause for which one or many select expressions can be created

Returns:DefaultSelectExpressionStateObjectBuilder

The builder of a conditional expression

Annotations
@Override
buildStateObjectBuilderback to summary
public DefaultSimpleSelectExpressionStateObjectBuilder buildStateObjectBuilder(SimpleSelectClauseStateObject stateObject)

Implements org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder.buildStateObjectBuilder.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder.buildStateObjectBuilder.

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:SimpleSelectClauseStateObject

The clause for which a select expression can be created

Returns:DefaultSimpleSelectExpressionStateObjectBuilder

The builder of a conditional expression

Annotations
@Override
buildStateObjectBuilderback to summary
public INewValueStateObjectBuilder buildStateObjectBuilder(UpdateItemStateObject stateObject)

Implements org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder.buildStateObjectBuilder.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder.buildStateObjectBuilder.

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:UpdateItemStateObject

The parent for which a new value expression can be created

Returns:INewValueStateObjectBuilder

The builder of a new value expression

Annotations
@Override
getGrammarback to summary
public JPQLGrammar getGrammar()

Implements org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder.getGrammar.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryBuilder.getGrammar.

Returns the JPQLGrammar that is associated with this builder.

Returns:JPQLGrammar

The JPQLGrammar that was used to parse the JPQL query or JPQL fragments

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override