er.bugtracker.migrations
Class BugTracker0
java.lang.Object
er.extensions.migration.ERXMigrationDatabase.Migration
er.bugtracker.migrations.BugTracker0
- All Implemented Interfaces:
- IERXMigration, IERXPostMigration
public class BugTracker0
- extends ERXMigrationDatabase.Migration
- implements IERXPostMigration
Method Summary |
void |
downgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
ERXMigrationDatabase database)
|
com.webobjects.foundation.NSArray<ERXModelVersion> |
modelDependencies()
Overridden to return null by default |
void |
postUpgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
com.webobjects.eoaccess.EOModel model)
Called after executing all of the upgrade() migrations. |
void |
upgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
ERXMigrationDatabase database)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BugTracker0
public BugTracker0()
modelDependencies
public com.webobjects.foundation.NSArray<ERXModelVersion> modelDependencies()
- Description copied from class:
ERXMigrationDatabase.Migration
- Overridden to return null by default
- Specified by:
modelDependencies
in interface IERXMigration
- Overrides:
modelDependencies
in class ERXMigrationDatabase.Migration
- Returns:
- an array of model versions that this migration depends on
downgrade
public void downgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
ERXMigrationDatabase database)
throws java.lang.Throwable
- Specified by:
downgrade
in class ERXMigrationDatabase.Migration
- Parameters:
editingContext
- the editing contextdatabase
- the migration database
- Throws:
java.lang.Throwable
- if anything goes wrong- See Also:
IERXMigration.downgrade
upgrade
public void upgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
ERXMigrationDatabase database)
throws java.lang.Throwable
- Specified by:
upgrade
in class ERXMigrationDatabase.Migration
- Parameters:
editingContext
- the editing contextdatabase
- the migration database
- Throws:
java.lang.Throwable
- if anything goes wrong- See Also:
IERXMigration.upgrade
postUpgrade
public void postUpgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
com.webobjects.eoaccess.EOModel model)
throws java.lang.Throwable
- Description copied from interface:
IERXPostMigration
- Called after executing all of the upgrade() migrations. At this point, the databases match the current EOModel,
so it is safe to perform EO operations.
- Specified by:
postUpgrade
in interface IERXPostMigration
- Parameters:
editingContext
- the editing context you can perform EO operations with.model
- the model being upgraded
- Throws:
java.lang.Throwable
- if something fails
Copyright © 2002 – 2007 Project Wonder.