EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

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

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.parser.AbstractExpressionVisitor
      extended by org.eclipse.persistence.jpa.jpql.model.BasicStateObjectBuilder
          extended by org.eclipse.persistence.jpa.jpql.model.EclipseLinkStateObjectBuilder
All Implemented Interfaces:
EclipseLinkExpressionVisitor, ExpressionVisitor

public class EclipseLinkStateObjectBuilder
extends BasicStateObjectBuilder
implements EclipseLinkExpressionVisitor

The default implementation of BasicStateObjectBuilder, which provides support based on the JPQL grammar defined in the Java Persistence functional specification and for the additional support provided by EclipseLink.

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Version:
2.4
Author:
Pascal Filion
Since:
2.4

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.persistence.jpa.jpql.model.BasicStateObjectBuilder
BasicStateObjectBuilder.AbstractRangeDeclarationBuilder<S extends AbstractFromClauseStateObject>, BasicStateObjectBuilder.AbstractSelectStatementBuilder<T extends AbstractSelectStatementStateObject,P extends StateObject>, BasicStateObjectBuilder.CollectionExpressionVisitor, BasicStateObjectBuilder.CollectionMemberDeclarationBuilder, BasicStateObjectBuilder.DeleteStatementBuilder, BasicStateObjectBuilder.JoinBuilder, BasicStateObjectBuilder.RangeDeclarationBuilder, BasicStateObjectBuilder.SelectItemBuilder, BasicStateObjectBuilder.SelectStatementBuilder, BasicStateObjectBuilder.SimpleRangeDeclarationBuilder, BasicStateObjectBuilder.SimpleSelectStatementBuilder, BasicStateObjectBuilder.UpdateStatementBuilder, BasicStateObjectBuilder.WhenClauseBuilder
 
Field Summary
 
Fields inherited from class org.eclipse.persistence.jpa.jpql.model.BasicStateObjectBuilder
managedTypeProvider, parent, stateObject
 
Constructor Summary
EclipseLinkStateObjectBuilder()
          Creates a new EclipseLinkStateObjectBuilder.
 
Method Summary
protected  LiteralVisitor buildLiteralVisitor()
          Creates the visitor that can retrieve the "literal" value from a given Expression based on the desired LiteralType.
 void visit(CastExpression expression)
          Visits the CastExpression expression.
 void visit(DatabaseType expression)
          Visits the DatabaseType expression.
 void visit(ExtractExpression expression)
          Visits the ExtractExpression expression.
 void visit(RegexpExpression expression)
          
 void visit(TableExpression expression)
          Visits the TableExpression expression.
 void visit(TableVariableDeclaration expression)
          Visits the TableVariableDeclaration expression.
 void visit(UnionClause expression)
          Visits the UnionClause expression.
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.model.BasicStateObjectBuilder
buildChildren, buildCollectionDeclarationBuilder, buildDeleteStatementBuilder, buildJoinBuilder, buildRangeDeclarationBuilder, buildSelectItemBuilder, buildSelectStatementBuilder, buildSimpleRangeDeclarationBuilder, buildSimpleSelectStatementBuilder, buildStateObjectImp, buildUpdateStatementBuilder, buildWhenClauseBuilder, children, getCollectionDeclarationBuilder, getCollectionExpressionVisitor, getDeleteStatementBuilder, getJoinBuilder, getLiteralVisitor, getRangeDeclarationBuilder, getSelectItemBuilder, getSelectStatementBuilder, getSimpleRangeDeclarationBuilder, getSimpleSelectStatementBuilder, getStateObject, getUpdateStatementBuilder, literal, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, whenClauseBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.persistence.jpa.jpql.parser.ExpressionVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 

Constructor Detail

EclipseLinkStateObjectBuilder

public EclipseLinkStateObjectBuilder()
Creates a new EclipseLinkStateObjectBuilder.

Method Detail

buildLiteralVisitor

protected LiteralVisitor buildLiteralVisitor()
Creates the visitor that can retrieve the "literal" value from a given Expression based on the desired LiteralType.

Specified by:
buildLiteralVisitor in class BasicStateObjectBuilder
Returns:
A new concrete instance of LiteralVisitor

visit

public void visit(CastExpression expression)
Visits the CastExpression expression.

Specified by:
visit in interface EclipseLinkExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(DatabaseType expression)
Visits the DatabaseType expression.

Specified by:
visit in interface EclipseLinkExpressionVisitor
Parameters:
expression - The DatabaseType to visit

visit

public void visit(ExtractExpression expression)
Visits the ExtractExpression expression.

Specified by:
visit in interface EclipseLinkExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(RegexpExpression expression)

Specified by:
visit in interface EclipseLinkExpressionVisitor

visit

public void visit(TableExpression expression)
Visits the TableExpression expression.

Specified by:
visit in interface EclipseLinkExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(TableVariableDeclaration expression)
Visits the TableVariableDeclaration expression.

Specified by:
visit in interface EclipseLinkExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(UnionClause expression)
Visits the UnionClause expression.

Specified by:
visit in interface EclipseLinkExpressionVisitor
Parameters:
expression - The Expression to visit

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference