|
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.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 FieldNameRenamer . |
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.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, 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)
FieldNameRenamer
.
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 attributeMethod 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 StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The CollectionValuedPathExpressionStateObject
to visitpublic void visit(StateFieldPathExpressionStateObject stateObject)
StateFieldPathExpressionStateObject
.
visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The StateFieldPathExpressionStateObject
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 |