Interface Rename
- All Superinterfaces:
CustomizableRefactoring<Rename>
,Refactoring
Renames entities or properties of entities.
- Since:
- 1.10.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionstatic Rename
Provides a refactoring renaming a given node label.static Rename
nodeProperty
(String from, String to) Provides a refactoring renaming a property on a node.static Rename
relationshipProperty
(String from, String to) Provides a refactoring renaming a property on a relationship.static Rename
Provides a refactoring renaming a given relationship type.Methods inherited from interface ac.simons.neo4j.migrations.core.refactorings.CustomizableRefactoring
inBatchesOf, withCustomQuery
Methods inherited from interface ac.simons.neo4j.migrations.core.refactorings.Refactoring
apply
-
Method Details
-
label
Provides a refactoring renaming a given node label. Any customization can be done directly on theRename
instance.- Parameters:
from
- The label to renameto
- The new label- Returns:
- The refactoring ready to use
-
type
Provides a refactoring renaming a given relationship type. Any customization can be done directly on theRename
instance.- Parameters:
from
- The type to renameto
- The new type- Returns:
- The refactoring ready to use
-
nodeProperty
Provides a refactoring renaming a property on a node. Any customization can be done directly on theRename
instance. If the property does not exist on the given node, nothing changes.- Parameters:
from
- The property to renameto
- The new name of the property- Returns:
- The refactoring ready to use
-
relationshipProperty
Provides a refactoring renaming a property on a relationship. Any customization can be done directly on theRename
instance. If the property does not exist on the given relationship, nothing changes.- Parameters:
from
- The property to renameto
- The new name of the property- Returns:
- The refactoring ready to use
-