Project Wonder 5.0

er.extensions.migration
Interface IERXPostMigration

All Superinterfaces:
IERXMigration
All Known Implementing Classes:
BugTracker0, BugTracker1

public interface IERXPostMigration
extends IERXMigration

IERXPostMigration is the interface that you must implement to provide migrations that execute after the database structurally matches your EOModels. Post upgrades are not versioned independently, so there is an assumption (for now) that if the upgrade migration itself succeeded, that the postUpgrades will also and can just queue up to execute at the end. This feature is here as a "just in case". Under almost all circumstances, you should be using direct SQL in your normal migration classes.

Author:
mschrag

Method Summary
 void postUpgrade(com.webobjects.eocontrol.EOEditingContext editingContext, com.webobjects.eoaccess.EOModel model)
          Called after executing all of the upgrade() migrations.
 
Methods inherited from interface er.extensions.migration.IERXMigration
downgrade, modelDependencies, upgrade
 

Method Detail

postUpgrade

void postUpgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
                 com.webobjects.eoaccess.EOModel model)
                 throws java.lang.Throwable
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.

Parameters:
editingContext - the editing context you can perform EO operations with.
model - the model being upgraded
Throws:
java.lang.Throwable - if something fails

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.