EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql.model
Class BasicStateObjectBuilder.AbstractRangeDeclarationBuilder<S extends AbstractFromClauseStateObject>

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
      extended by org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseChildrenVisitor
          extended by org.eclipse.persistence.jpa.jpql.model.BasicStateObjectBuilder.AbstractRangeDeclarationBuilder<S>
All Implemented Interfaces:
IBuilder<AbstractIdentificationVariableDeclarationStateObject,S>, ExpressionVisitor
Direct Known Subclasses:
BasicStateObjectBuilder.RangeDeclarationBuilder, BasicStateObjectBuilder.SimpleRangeDeclarationBuilder
Enclosing class:
BasicStateObjectBuilder

protected abstract class BasicStateObjectBuilder.AbstractRangeDeclarationBuilder<S extends AbstractFromClauseStateObject>
extends AbstractTraverseChildrenVisitor
implements IBuilder<AbstractIdentificationVariableDeclarationStateObject,S>

This builder is responsible to create a new identification variable declaration and to add it to the state object representing the FROM clause.


Field Summary
protected  S parent
          The concrete instance of AbstractFromClauseStateObject where the new identification variable declaration is added.
protected  AbstractIdentificationVariableDeclarationStateObject stateObject
          The concrete instance of IdentificationVariableDeclarationStateObject that represents the visited IdentificationVariableDeclaration.
 
Constructor Summary
protected BasicStateObjectBuilder.AbstractRangeDeclarationBuilder()
           
 
Method Summary
protected abstract  AbstractIdentificationVariableDeclarationStateObject addRangeDeclaration(IdentificationVariableDeclaration expression)
          Creates the concrete instance of an AbstractIdentificationVariableDeclarationStateObject for the given IdentificationVariableDeclaration.
 AbstractIdentificationVariableDeclarationStateObject buildStateObject(S parent, Expression expression)
          Creates the StateObject representation of the given Expression.
 void visit(AbstractSchemaName expression)
          Visits the AbstractSchemaName expression.
 void visit(IdentificationVariable expression)
          Visits the IdentificationVariable expression.
 void visit(IdentificationVariableDeclaration expression)
          Visits the IdentificationVariableDeclaration expression.
 void visit(RangeVariableDeclaration expression)
          Visits the RangeVariableDeclaration expression.
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseChildrenVisitor
visit
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected S extends AbstractFromClauseStateObject parent
The concrete instance of AbstractFromClauseStateObject where the new identification variable declaration is added.


stateObject

protected AbstractIdentificationVariableDeclarationStateObject stateObject
The concrete instance of IdentificationVariableDeclarationStateObject that represents the visited IdentificationVariableDeclaration.

Constructor Detail

BasicStateObjectBuilder.AbstractRangeDeclarationBuilder

protected BasicStateObjectBuilder.AbstractRangeDeclarationBuilder()
Method Detail

addRangeDeclaration

protected abstract AbstractIdentificationVariableDeclarationStateObject addRangeDeclaration(IdentificationVariableDeclaration expression)
Creates the concrete instance of an AbstractIdentificationVariableDeclarationStateObject for the given IdentificationVariableDeclaration.

Parameters:
expression - The IdentificationVariableDeclaration to convert into a StateObject
Returns:
A new StateObject representing an identification variable declaration

buildStateObject

public AbstractIdentificationVariableDeclarationStateObject buildStateObject(S parent,
                                                                             Expression expression)
Creates the StateObject representation of the given Expression.

Specified by:
buildStateObject in interface IBuilder<AbstractIdentificationVariableDeclarationStateObject,S extends AbstractFromClauseStateObject>
Parameters:
parent - The parent of the new StateObject to create
expression - The parsed Expression to convert into a StateObject
Returns:
The StateObject representation of the given Expression

visit

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

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

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

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

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

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

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

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference