EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql.model
Class JPQLQueryBuilder1_0

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.model.AbstractJPQLQueryBuilder
      extended by org.eclipse.persistence.jpa.jpql.model.JPQLQueryBuilder1_0
All Implemented Interfaces:
IJPQLQueryBuilder

public final class JPQLQueryBuilder1_0
extends AbstractJPQLQueryBuilder

An implementation of IJPQLQueryBuilder that provides support based on the Java Persistence functional specification defined in JSR-220 - Enterprise JavaBeans 3.0.

Version:
2.4
Author:
Pascal Filion
Since:
2.4

Constructor Summary
JPQLQueryBuilder1_0()
          Creates a new JPQLQueryBuilder1_0.
 
Method Summary
protected  DefaultStateObjectBuilder buildStateObjectBuilder()
          Creates the builder that creates the StateObject for each {@link org.eclipse.
 DefaultConditionalExpressionStateObjectBuilder buildStateObjectBuilder(AbstractConditionalClauseStateObject stateObject)
          Creates a builder that can create a conditional expression programmatically.
 DefaultSelectExpressionStateObjectBuilder buildStateObjectBuilder(SelectClauseStateObject stateObject)
          Creates a builder that can create a select expression programmatically.
 DefaultSimpleSelectExpressionStateObjectBuilder buildStateObjectBuilder(SimpleSelectClauseStateObject stateObject)
          Creates a builder that can create a single select expression programmatically.
 INewValueStateObjectBuilder buildStateObjectBuilder(UpdateItemStateObject stateObject)
          Creates a builder that can create a new value expression programmatically.
 JPQLGrammar getGrammar()
          Returns the JPQLGrammar that is associated with this builder.
 java.lang.String toString()
          
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.model.AbstractJPQLQueryBuilder
buildCaseExpressionStateObjectBuilder, buildStateObject, buildStateObject, buildStateObject, getStateObjectBuilder, parse, parse, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JPQLQueryBuilder1_0

public JPQLQueryBuilder1_0()
Creates a new JPQLQueryBuilder1_0.

Method Detail

buildStateObjectBuilder

protected DefaultStateObjectBuilder buildStateObjectBuilder()
Creates the builder that creates the StateObject for each persistence.jpa.jpql.parser.Expression Expression.

Specified by:
buildStateObjectBuilder in class AbstractJPQLQueryBuilder
Returns:
The builder that will be visiting the Expression 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 the JPQLGrammar that is associated with this builder.

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

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference