EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql
Class RefactoringTool.EntityNameRenamer

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.model.query.AnonymousStateObjectVisitor
      extended by org.eclipse.persistence.jpa.jpql.model.query.AbstractTraverseChildrenVisitor
          extended by org.eclipse.persistence.jpa.jpql.RefactoringTool.EntityNameRenamer
All Implemented Interfaces:
StateObjectVisitor
Enclosing class:
RefactoringTool

protected static class RefactoringTool.EntityNameRenamer
extends AbstractTraverseChildrenVisitor

This visitor renames an entity name. There are three possible StateObjects that can represent an entity name:


Field Summary
protected  java.lang.String newEntityName
          The current name of the entity to rename.
protected  java.lang.String oldEntityName
          The new name of the entity.
 
Constructor Summary
RefactoringTool.EntityNameRenamer(java.lang.String oldEntityName, java.lang.String newEntityName)
          Creates a new EntityNameRenamer.
 
Method Summary
 void visit(AbstractSchemaNameStateObject stateObject)
          Visits the given AbstractSchemaNameStateObject.
 void visit(EntityTypeLiteralStateObject stateObject)
          Visits the given EntityTypeLiteralStateObject.
 void visit(IdentificationVariableStateObject stateObject)
          Visits the given IdentificationVariableStateObject.
 void visit(TreatExpressionStateObject stateObject)
          Visits the given TreatExpressionStateObject.
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.model.query.AbstractTraverseChildrenVisitor
visit
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.model.query.AnonymousStateObjectVisitor
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

newEntityName

protected final java.lang.String newEntityName
The current name of the entity to rename.


oldEntityName

protected final java.lang.String oldEntityName
The new name of the entity.

Constructor Detail

RefactoringTool.EntityNameRenamer

public RefactoringTool.EntityNameRenamer(java.lang.String oldEntityName,
                                         java.lang.String newEntityName)
Creates a new EntityNameRenamer.

Parameters:
oldEntityName - The current name of the entity to rename
newEntityName - The new name of the entity
Method Detail

visit

public void visit(AbstractSchemaNameStateObject stateObject)
Visits the given AbstractSchemaNameStateObject.

Specified by:
visit in interface StateObjectVisitor
Overrides:
visit in class AnonymousStateObjectVisitor
Parameters:
stateObject - The AbstractSchemaNameStateObject to visit

visit

public void visit(EntityTypeLiteralStateObject stateObject)
Visits the given EntityTypeLiteralStateObject.

Specified by:
visit in interface StateObjectVisitor
Overrides:
visit in class AnonymousStateObjectVisitor
Parameters:
stateObject - The EntityTypeLiteralStateObject to visit

visit

public void visit(IdentificationVariableStateObject stateObject)
Visits the given IdentificationVariableStateObject.

Specified by:
visit in interface StateObjectVisitor
Overrides:
visit in class AnonymousStateObjectVisitor
Parameters:
stateObject - The IdentificationVariableStateObject to visit

visit

public void visit(TreatExpressionStateObject stateObject)
Visits the given TreatExpressionStateObject.

Specified by:
visit in interface StateObjectVisitor
Overrides:
visit in class AnonymousStateObjectVisitor
Parameters:
stateObject - The TreatExpressionStateObject to visit

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference