org.qi4j.migration.operation
Class AddProperty
java.lang.Object
org.qi4j.migration.operation.AddProperty
- All Implemented Interfaces:
- EntityMigrationOperation
public class AddProperty
- extends java.lang.Object
- implements EntityMigrationOperation
Add a property
Constructor Summary |
AddProperty(java.lang.String property,
java.lang.Object defaultValue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AddProperty
public AddProperty(java.lang.String property,
java.lang.Object defaultValue)
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