public class EntityMigrationRule extends AbstractMigrationRule
fromVersion, toVersion
Constructor and Description |
---|
EntityMigrationRule(String fromVersion,
String toVersion,
String[] entityTypes,
EntityMigrationOperation operationEntity) |
Modifier and Type | Method and Description |
---|---|
boolean |
appliesTo(String entityType) |
boolean |
downgrade(JSONObject state,
StateStore stateStore,
Migrator migrator) |
String[] |
entityTypes() |
String |
toString() |
boolean |
upgrade(JSONObject state,
StateStore stateStore,
Migrator migrator) |
fromVersion, toVersion
public EntityMigrationRule(String fromVersion, String toVersion, String[] entityTypes, EntityMigrationOperation operationEntity)
public String[] entityTypes()
public boolean upgrade(JSONObject state, StateStore stateStore, Migrator migrator) throws JSONException
JSONException
public boolean downgrade(JSONObject state, StateStore stateStore, Migrator migrator) throws JSONException
JSONException
public boolean appliesTo(String entityType)