Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
DefaultRefactoringTool, EclipseLinkRefactoringTool
| Modifier and Type | Class and Description |
|---|---|
| protected static class | RefactoringTool.ClassNameRenamer
This visitor renames a fully qualified class name. |
| protected static class | RefactoringTool.EntityNameRenamer
This visitor renames an entity name. |
| protected static class | RefactoringTool.EnumConstantRenamer
This visitor renames an enum constant. |
| protected static class | RefactoringTool.FieldNameRenamer
This visitor renames any segment of a path expression. |
| protected static class | RefactoringTool.ResultVariableNameRenamer
This visitor renames all the result variables found in the JPQL query. |
| protected static interface | RefactoringTool.StateObjectUpdater<T extends StateObject>
This interface is used to transparently push the new value into the |
| protected static class | RefactoringTool.VariableNameRenamer
This visitor renames all the identification variables found in the JPQL query. |
| Modifier and Type | Field and Description |
|---|---|
| private IJPQLQueryBuilder | jpqlQueryBuilder
The builder that creates the |
| private IJPQLQueryFormatter | jpqlQueryFormatter
The formatter that converts a |
| private JPQLQueryStateObject | stateObject
The editable representation of the JPQL query. |
| Access | Constructor and Description |
|---|---|
| protected | RefactoringTool(IManagedTypeProvider
The external form of a provider that gives access to the JPA metadata managedTypeProvider, IJPQLQueryBuilder The builder that creates the jpqlQueryBuilder, CharSequence StateObject representation of the
JPQL queryThe JPQL query to manipulate jpqlQuery)Creates a new |
| protected | RefactoringTool(IManagedTypeProvider
The external form of a provider that gives access to the JPA metadata managedTypeProvider, IJPQLQueryBuilder The builder that creates the jpqlQueryBuilder, CharSequence StateObject representation of the
JPQL queryThe JPQL query to manipulate or a single JPQL fragment, which is parsed
using the JPQL query BNF identifier by the given ID jpqlFragment, String The unique identifier of the jpqlQueryBNFId)JPQLQueryBNF that determines how to parse the JPQL fragmentCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected RefactoringTool. | Returns: A newClassNameRenamerThe current name of the class to rename oldClassName, String The new name of the class newClassName)Creates the visitor that will traverse the |
| protected RefactoringTool. | Returns: A newEntityNameRenamerThe current name of the entity to rename oldEntityName, String The new name of the entity newEntityName)Creates the visitor that will traverse the |
| protected RefactoringTool. | Returns: A newEnumConstantRenamerThe new name of the enum constant oldClassName, String The current name of the enum constant to rename newClassName)Creates the visitor that will traverse the |
| protected RefactoringTool. | Returns: A newAttributeNameRenamerThe fully qualified name of the type that got one of its attributes renamed typeName, String The current name of the attribute to rename oldFieldName, String The new name of the attribute newFieldName)Creates the visitor that will traverse the |
| protected abstract IJPQLQueryFormatter | Returns: A new concrete instance ofIJPQLQueryFormatterCreates a new formatter that will convert the |
| protected abstract JPQLQueryContext | Returns: A new concrete instance ofJPQLQueryContextCreates a new |
| protected RefactoringTool. | Returns: A newResultVariableNameRenamerThe current result variable name oldVariableName, String The new name of the result variable newVariableName)Creates the visitor that will traverse the |
| protected JPQLQueryStateObject | Returns: The parsed and editable JPQL queryCreates the |
| protected RefactoringTool. | Returns: A newVariableNameRenamerThe current identification variable name oldVariableName, String The new name of the identification variable newVariableName)Creates the visitor that will traverse the |
| public IJPQLQueryFormatter | Returns: An instance ofIJPQLQueryFormatterReturns the |
| public JPQLGrammar | Returns: TheJPQLGrammar that was used to parse the JPQL query or JPQL fragmentsReturns the |
| public IJPQLQueryBuilder | Returns: The builder of theStateObject to be manipulatedReturns the builder that creates the |
| public JPQLQueryStateObject | Returns: The editable state modelReturns the |
| public void | renameClassName(String
The current fully qualified class name of the class to rename oldClassName, String The new fully qualified class name newClassName)Renames a fully qualified class name. |
| public void | renameEntityName(String
The current name of the entity to rename oldEntityName, String The new name of the entity newEntityName)Renames a given entity name. |
| public void | renameEnumConstant(String
The current fully qualified name of the enum constant to rename oldEnumConstant, String The new fully qualified name of the enum constant newEnumConstant)Renames an enum constant, which has to be fully qualified. |
| public void | renameField(Class<?>
The Java class from which the change originate type, String The current name of the attribute to rename oldFieldName, String The new name of the attribute newFieldName)Renames a field from the given type. |
| public void | renameField(IType
The type, String IType from which the change originateThe current name of the attribute to rename oldFieldName, String The new name of the attribute newFieldName)Renames a field from the given type. |
| public void | renameField(String
The fully qualified name of the type that got one of its attributes renamed typeName, String The current name of the attribute to rename oldFieldName, String The new name of the attribute newFieldName)Renames a field from the given type. |
| public void | renameResultVariable(String
The current identification variable name oldVariableName, String The new name of the identification variable newVariableName)Renames a result variable name. |
| public void | renameVariable(String
The current identification variable name oldVariableName, String The new name of the identification variable newVariableName)Renames a variable name. |
| public void | setFormatter(IJPQLQueryFormatter
This formatter converts a jpqlQueryFormatter)StateObject representation of the
JPQL query into a string representationSets the |
| public String | toActualText()
Implements abstract org. |