org.qi4j.migration.operation
Class RenameProperty
java.lang.Object
org.qi4j.migration.operation.RenameProperty
- All Implemented Interfaces:
- EntityMigrationOperation
public class RenameProperty
- extends java.lang.Object
- implements EntityMigrationOperation
Rename a property
Constructor Summary |
RenameProperty(java.lang.String fromProperty,
java.lang.String toProperty)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RenameProperty
public RenameProperty(java.lang.String fromProperty,
java.lang.String toProperty)
upgrade
public boolean upgrade(org.json.JSONObject state,
StateStore stateStore,
Migrator migrator)
throws org.json.JSONException
- Specified by:
upgrade
in interface EntityMigrationOperation
- Throws:
org.json.JSONException
downgrade
public boolean downgrade(org.json.JSONObject state,
StateStore stateStore,
Migrator migrator)
throws org.json.JSONException
- Specified by:
downgrade
in interface EntityMigrationOperation
- Throws:
org.json.JSONException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object