|
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.parser.AnonymousExpressionVisitor org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseChildrenVisitor org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.AbstractRenamer org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.EntityNameRenamer
protected class BasicRefactoringTool.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 in SELECT CASE TYPE(e) WHEN Exempt THEN 'Exempt'
ELSE 'NONE'
END
FROM Employee e
IdentificationVariableStateObject
:
Exempt in SELECT e
FROM Employee e
WHERE TYPE(e) <> Exempt
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. |
Fields inherited from class org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.AbstractRenamer |
---|
textEdits |
Constructor Summary | |
---|---|
BasicRefactoringTool.EntityNameRenamer(java.lang.String oldEntityName,
java.lang.String newEntityName)
Creates a new EntityNameRenamer . |
Method Summary | |
---|---|
void |
visit(AbstractSchemaName expression)
Visits the AbstractSchemaName expression. |
void |
visit(EntityTypeLiteral expression)
Visits the EntityTypeLiteral expression. |
void |
visit(IdentificationVariable expression)
Visits the IdentificationVariable expression. |
Methods inherited from class org.eclipse.persistence.jpa.jpql.BasicRefactoringTool.AbstractRenamer |
---|
addTextEdit, addTextEdit, buildTextEdit, reposition |
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, 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 BasicRefactoringTool.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(AbstractSchemaName expression)
AbstractSchemaName
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(EntityTypeLiteral expression)
EntityTypeLiteral
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(IdentificationVariable expression)
IdentificationVariable
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
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 |