public abstract static class ERXMigrationDatabase.Migration extends Object implements IERXMigration
Modifier and Type | Field and Description |
---|---|
static boolean |
ALLOWS_NULL |
static boolean |
NOT_NULL |
Modifier | Constructor and Description |
---|---|
protected |
Migration() |
protected |
Migration(NSArray languages) |
Modifier and Type | Method and Description |
---|---|
void |
downgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
com.webobjects.eoaccess.EOAdaptorChannel channel,
com.webobjects.eoaccess.EOModel model)
Called when migrating the database from the next version to this version.
|
abstract void |
downgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
ERXMigrationDatabase database) |
NSArray<String> |
languages() |
NSArray<ERXModelVersion> |
modelDependencies()
Overridden to return null by default
|
void |
upgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
com.webobjects.eoaccess.EOAdaptorChannel channel,
com.webobjects.eoaccess.EOModel model)
Called when migrating the database from the last version to this version.
|
abstract void |
upgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
ERXMigrationDatabase database) |
public static final boolean ALLOWS_NULL
public static final boolean NOT_NULL
protected Migration()
protected Migration(NSArray languages)
public void downgrade(com.webobjects.eocontrol.EOEditingContext editingContext, com.webobjects.eoaccess.EOAdaptorChannel channel, com.webobjects.eoaccess.EOModel model) throws Throwable
IERXMigration
downgrade
in interface IERXMigration
editingContext
- the editing context you can perform EO operations with.channel
- the channel to perform low level operations withmodel
- the model being downgradedThrowable
- if something failspublic abstract void downgrade(com.webobjects.eocontrol.EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable
editingContext
- the editing contextdatabase
- the migration databaseThrowable
- if anything goes wrongIERXMigration.downgrade(EOEditingContext, EOAdaptorChannel, EOModel)
public NSArray<ERXModelVersion> modelDependencies()
modelDependencies
in interface IERXMigration
public void upgrade(com.webobjects.eocontrol.EOEditingContext editingContext, com.webobjects.eoaccess.EOAdaptorChannel channel, com.webobjects.eoaccess.EOModel model) throws Throwable
IERXMigration
upgrade
in interface IERXMigration
editingContext
- the editing context you can perform EO operations with.channel
- the channel to perform low level operations withmodel
- the model being upgradedThrowable
- if something failspublic abstract void upgrade(com.webobjects.eocontrol.EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable
editingContext
- the editing contextdatabase
- the migration databaseThrowable
- if anything goes wrongIERXMigration.upgrade(EOEditingContext, EOAdaptorChannel, EOModel)
Copyright © 2002 – 2020 Project Wonder.