|
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.ResultVariableNameRenamer
protected static class RefactoringTool.ResultVariableNameRenamer
This visitor renames all the result variables found in the JPQL query.
Field Summary | |
---|---|
protected java.lang.String |
newVariableName
The new name of the result variable. |
protected java.lang.String |
oldVariableName
The current result variable name. |
protected boolean |
renameIdentificationVariable
Makes sure an identification variable is renamed only when it's used by an order by item. |
Constructor Summary | |
---|---|
RefactoringTool.ResultVariableNameRenamer(java.lang.String oldVariableName,
java.lang.String newVariableName)
Creates a new ResultVariableNameRenamer . |
Method Summary | |
---|---|
void |
visit(IdentificationVariableStateObject stateObject)
Visits the given IdentificationVariableStateObject . |
void |
visit(JPQLQueryStateObject stateObject)
Visits the given JPQLQueryStateObject . |
void |
visit(OrderByItemStateObject stateObject)
Visits the given OrderByItemStateObject . |
void |
visit(ResultVariableStateObject stateObject)
Visits the given ResultVariableStateObject . |
void |
visit(SelectStatementStateObject stateObject)
Visits the given SelectStatementStateObject . |
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 |
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 newVariableName
protected final java.lang.String oldVariableName
protected boolean renameIdentificationVariable
Constructor Detail |
---|
public RefactoringTool.ResultVariableNameRenamer(java.lang.String oldVariableName, java.lang.String newVariableName)
ResultVariableNameRenamer
.
oldVariableName
- The current result variable namenewVariableName
- The new name of the result variableMethod Detail |
---|
public void visit(IdentificationVariableStateObject stateObject)
IdentificationVariableStateObject
.
visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The IdentificationVariableStateObject
to visitpublic void visit(JPQLQueryStateObject stateObject)
JPQLQueryStateObject
.
visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The JPQLQueryStateObject
to visitpublic void visit(OrderByItemStateObject stateObject)
OrderByItemStateObject
.
visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The OrderByItemStateObject
to visitpublic void visit(ResultVariableStateObject stateObject)
ResultVariableStateObject
.
visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The ResultVariableStateObject
to visitpublic void visit(SelectStatementStateObject stateObject)
SelectStatementStateObject
.
visit
in interface StateObjectVisitor
visit
in class AnonymousStateObjectVisitor
stateObject
- The SelectStatementStateObject
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 |