public interface Migrator
Modifier and Type | Method and Description |
---|---|
boolean |
addAssociation(JSONObject state,
String name,
String defaultReference) |
boolean |
addManyAssociation(JSONObject state,
String name,
String... defaultReferences) |
boolean |
addNamedAssociation(JSONObject state,
String name,
Map<String,String> defaultReferences) |
boolean |
addProperty(JSONObject state,
String name,
Object defaultValue) |
void |
changeEntityType(JSONObject state,
String newEntityType) |
boolean |
removeAssociation(JSONObject state,
String name) |
boolean |
removeManyAssociation(JSONObject state,
String name) |
boolean |
removeNamedAssociation(JSONObject state,
String name) |
boolean |
removeProperty(JSONObject state,
String name) |
boolean |
renameAssociation(JSONObject state,
String from,
String to) |
boolean |
renameManyAssociation(JSONObject state,
String from,
String to) |
boolean |
renameNamedAssociation(JSONObject state,
String from,
String to) |
boolean |
renameProperty(JSONObject state,
String from,
String to) |
boolean addProperty(JSONObject state, String name, Object defaultValue) throws JSONException
JSONException
boolean removeProperty(JSONObject state, String name) throws JSONException
JSONException
boolean renameProperty(JSONObject state, String from, String to) throws JSONException
JSONException
boolean addAssociation(JSONObject state, String name, String defaultReference) throws JSONException
JSONException
boolean removeAssociation(JSONObject state, String name) throws JSONException
JSONException
boolean renameAssociation(JSONObject state, String from, String to) throws JSONException
JSONException
boolean addManyAssociation(JSONObject state, String name, String... defaultReferences) throws JSONException
JSONException
boolean removeManyAssociation(JSONObject state, String name) throws JSONException
JSONException
boolean renameManyAssociation(JSONObject state, String from, String to) throws JSONException
JSONException
boolean addNamedAssociation(JSONObject state, String name, Map<String,String> defaultReferences) throws JSONException
JSONException
boolean removeNamedAssociation(JSONObject state, String name) throws JSONException
JSONException
boolean renameNamedAssociation(JSONObject state, String from, String to) throws JSONException
JSONException
void changeEntityType(JSONObject state, String newEntityType) throws JSONException
JSONException