|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.jpa.jpql.tools.model.query.AnonymousStateObjectVisitor
org.eclipse.persistence.jpa.jpql.tools.model.query.AbstractTraverseChildrenVisitor
org.eclipse.persistence.jpa.jpql.tools.RefactoringTool.FieldNameRenamer
protected static class RefactoringTool.FieldNameRenamer
This visitor renames any segment of a path expression.
| Field Summary | |
|---|---|
protected IManagedTypeProvider |
managedTypeProvider
The external form of a provider that gives access to the JPA metadata. |
protected java.lang.String |
newFieldName
The new name of the attribute. |
protected java.lang.String |
oldFieldName
The current name of the attribute to rename. |
protected java.lang.String |
typeName
The fully qualified name of the type that got one of its attributes renamed. |
| Constructor Summary | |
|---|---|
RefactoringTool.FieldNameRenamer(IManagedTypeProvider managedTypeProvider,
java.lang.String typeName,
java.lang.String oldFieldName,
java.lang.String newFieldName)
Creates a new AttributeNameRenamer. |
|
| Method Summary | |
|---|---|
protected void |
rename(AbstractPathExpressionStateObject stateObject)
Performs the rename on the path expression. |
void |
visit(CollectionValuedPathExpressionStateObject stateObject)
Visits the given CollectionValuedPathExpressionStateObject. |
void |
visit(StateFieldPathExpressionStateObject stateObject)
Visits the given StateFieldPathExpressionStateObject. |
| Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.model.query.AbstractTraverseChildrenVisitor |
|---|
visit |
| Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.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, visit, visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final IManagedTypeProvider managedTypeProvider
protected final java.lang.String newFieldName
protected final java.lang.String oldFieldName
protected final java.lang.String typeName
| Constructor Detail |
|---|
public RefactoringTool.FieldNameRenamer(IManagedTypeProvider managedTypeProvider,
java.lang.String typeName,
java.lang.String oldFieldName,
java.lang.String newFieldName)
AttributeNameRenamer.
typeName - The fully qualified name of the type that got one of its attributes renamedoldFieldName - The current name of the attribute to renamenewFieldName - The new name of the attribute| Method Detail |
|---|
protected void rename(AbstractPathExpressionStateObject stateObject)
stateObject - The AbstractPathExpressionStateObject being visited, which may
have to have its path renamedpublic void visit(CollectionValuedPathExpressionStateObject stateObject)
CollectionValuedPathExpressionStateObject.
visit in interface StateObjectVisitorvisit in class AnonymousStateObjectVisitorstateObject - The CollectionValuedPathExpressionStateObject to visitpublic void visit(StateFieldPathExpressionStateObject stateObject)
StateFieldPathExpressionStateObject.
visit in interface StateObjectVisitorvisit in class AnonymousStateObjectVisitorstateObject - The StateFieldPathExpressionStateObject to visit
|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||