org.qi4j.migration.operation
Class RemoveProperty
java.lang.Object
org.qi4j.migration.operation.RemoveProperty
- All Implemented Interfaces:
- EntityMigrationOperation
public class RemoveProperty
- extends Object
- implements EntityMigrationOperation
Remove a property. Downgrading this operation will reset
the property to the default value.
RemoveProperty
public RemoveProperty(String property,
String defaultValue)
upgrade
public boolean upgrade(JSONObject state,
StateStore stateStore,
Migrator migrator)
throws JSONException
- Specified by:
upgrade
in interface EntityMigrationOperation
- Throws:
JSONException
downgrade
public boolean downgrade(JSONObject state,
StateStore stateStore,
Migrator migrator)
throws JSONException
- Specified by:
downgrade
in interface EntityMigrationOperation
- Throws:
JSONException
toString
public String toString()
- Overrides:
toString
in class Object