|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.jpql.model.query.AnonymousStateObjectVisitor org.eclipse.persistence.jpa.jpql.model.query.AbstractTraverseChildrenVisitor org.eclipse.persistence.jpa.jpql.RefactoringTool.EntityNameRenamer
protected static class RefactoringTool.EntityNameRenamer
This visitor renames an entity name. There are three possible StateObjects
that can represent an entity name:
AbstractSchemaNameStateObject
:
Employee inSELECT e
FROM Employee e
EntityTypeLiteralStateObject
:
Exempt inSELECT CASE TYPE(e) WHEN Exempt THEN 'Exempt'
ELSE 'NONE'
END
FROM Employee e
IdentificationVariableStateObject
:
Exempt inSELECT e
FROM Employee e
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 |
---|
protected final java.lang.String newEntityName
protected final java.lang.String oldEntityName
Constructor Detail |
---|
public RefactoringTool.EntityNameRenamer(java.lang.String oldEntityName, java.lang.String newEntityName)
EntityNameRenamer
.
oldEntityName
- The current name of the entity to renamenewEntityName
- The new name of the entityMethod Detail |
---|
public void visit(AbstractSchemaNameStateObject stateObject)
AbstractSchemaNameStateObject
.
visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The AbstractSchemaNameStateObject
to visitpublic void visit(EntityTypeLiteralStateObject stateObject)
EntityTypeLiteralStateObject
.
visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The EntityTypeLiteralStateObject
to visitpublic void visit(IdentificationVariableStateObject stateObject)
IdentificationVariableStateObject
.
visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The IdentificationVariableStateObject
to visitpublic void visit(TreatExpressionStateObject stateObject)
TreatExpressionStateObject
.
visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The TreatExpressionStateObject
to visit
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |