org.qi4j.migration.operation
Class RemoveAssociation
java.lang.Object
org.qi4j.migration.operation.RemoveAssociation
- All Implemented Interfaces:
- EntityMigrationOperation
public class RemoveAssociation
- extends java.lang.Object
- implements EntityMigrationOperation
Remove an association. Downgrading this operation will reset
the property to the default value.
Constructor Summary |
RemoveAssociation(java.lang.String association,
java.lang.String defaultReference)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RemoveAssociation
public RemoveAssociation(java.lang.String association,
java.lang.String defaultReference)
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