org.qi4j.migration
Interface Migrator
- All Known Implementing Classes:
- MigrationService.MigrationMixin
public interface Migrator
The Migrator implements this interface, which is invoked by MigrationOperation implementations
to perform changes to EntityState during a version migration.
Method Summary |
boolean |
addAssociation(org.json.JSONObject state,
java.lang.String name,
java.lang.String defaultReference)
|
boolean |
addManyAssociation(org.json.JSONObject state,
java.lang.String name,
java.lang.String... defaultReference)
|
boolean |
addProperty(org.json.JSONObject state,
java.lang.String name,
java.lang.Object defaultValue)
|
void |
changeEntityType(org.json.JSONObject state,
java.lang.String newEntityType)
|
boolean |
removeAssociation(org.json.JSONObject state,
java.lang.String name)
|
boolean |
removeManyAssociation(org.json.JSONObject state,
java.lang.String name)
|
boolean |
removeProperty(org.json.JSONObject state,
java.lang.String name)
|
boolean |
renameAssociation(org.json.JSONObject state,
java.lang.String from,
java.lang.String to)
|
boolean |
renameManyAssociation(org.json.JSONObject state,
java.lang.String from,
java.lang.String to)
|
boolean |
renameProperty(org.json.JSONObject state,
java.lang.String from,
java.lang.String to)
|
addProperty
boolean addProperty(org.json.JSONObject state,
java.lang.String name,
java.lang.Object defaultValue)
throws org.json.JSONException
- Throws:
org.json.JSONException
removeProperty
boolean removeProperty(org.json.JSONObject state,
java.lang.String name)
throws org.json.JSONException
- Throws:
org.json.JSONException
renameProperty
boolean renameProperty(org.json.JSONObject state,
java.lang.String from,
java.lang.String to)
throws org.json.JSONException
- Throws:
org.json.JSONException
addAssociation
boolean addAssociation(org.json.JSONObject state,
java.lang.String name,
java.lang.String defaultReference)
throws org.json.JSONException
- Throws:
org.json.JSONException
removeAssociation
boolean removeAssociation(org.json.JSONObject state,
java.lang.String name)
throws org.json.JSONException
- Throws:
org.json.JSONException
renameAssociation
boolean renameAssociation(org.json.JSONObject state,
java.lang.String from,
java.lang.String to)
throws org.json.JSONException
- Throws:
org.json.JSONException
addManyAssociation
boolean addManyAssociation(org.json.JSONObject state,
java.lang.String name,
java.lang.String... defaultReference)
throws org.json.JSONException
- Throws:
org.json.JSONException
removeManyAssociation
boolean removeManyAssociation(org.json.JSONObject state,
java.lang.String name)
throws org.json.JSONException
- Throws:
org.json.JSONException
renameManyAssociation
boolean renameManyAssociation(org.json.JSONObject state,
java.lang.String from,
java.lang.String to)
throws org.json.JSONException
- Throws:
org.json.JSONException
changeEntityType
void changeEntityType(org.json.JSONObject state,
java.lang.String newEntityType)
throws org.json.JSONException
- Throws:
org.json.JSONException