public static class MigrationService.MigrationMixin extends Object implements MigrationService, Migrator
MigrationService.Activator, MigrationService.MigrationMixin| Modifier and Type | Field and Description | 
|---|---|
MigrationBuilder | 
builder  | 
org.slf4j.Logger | 
log  | 
| Constructor and Description | 
|---|
MigrationService.MigrationMixin()  | 
public MigrationBuilder builder
public org.slf4j.Logger log
public boolean migrate(JSONObject state, String toVersion, StateStore stateStore) throws JSONException
migrate in interface MigrationJSONExceptionpublic void initialize()
                throws Exception
initialize in interface MigrationServiceExceptionpublic boolean addProperty(JSONObject state, String name, Object defaultValue) throws JSONException
addProperty in interface MigratorJSONExceptionpublic boolean removeProperty(JSONObject state, String name) throws JSONException
removeProperty in interface MigratorJSONExceptionpublic boolean renameProperty(JSONObject state, String from, String to) throws JSONException
renameProperty in interface MigratorJSONExceptionpublic boolean addAssociation(JSONObject state, String name, String defaultReference) throws JSONException
addAssociation in interface MigratorJSONExceptionpublic boolean removeAssociation(JSONObject state, String name) throws JSONException
removeAssociation in interface MigratorJSONExceptionpublic boolean renameAssociation(JSONObject state, String from, String to) throws JSONException
renameAssociation in interface MigratorJSONExceptionpublic boolean addManyAssociation(JSONObject state, String name, String... defaultReferences) throws JSONException
addManyAssociation in interface MigratorJSONExceptionpublic boolean removeManyAssociation(JSONObject state, String name) throws JSONException
removeManyAssociation in interface MigratorJSONExceptionpublic boolean renameManyAssociation(JSONObject state, String from, String to) throws JSONException
renameManyAssociation in interface MigratorJSONExceptionpublic boolean addNamedAssociation(JSONObject state, String name, Map<String,String> defaultReferences) throws JSONException
addNamedAssociation in interface MigratorJSONExceptionpublic boolean removeNamedAssociation(JSONObject state, String name) throws JSONException
removeNamedAssociation in interface MigratorJSONExceptionpublic boolean renameNamedAssociation(JSONObject state, String from, String to) throws JSONException
renameNamedAssociation in interface MigratorJSONExceptionpublic void changeEntityType(JSONObject state, String newEntityType) throws JSONException
changeEntityType in interface MigratorJSONException