Project Wonder 5.0

er.bugtracker.migrations
Class BugTracker1

java.lang.Object
  extended by er.extensions.migration.ERXMigrationDatabase.Migration
      extended by er.bugtracker.migrations.BugTracker1
All Implemented Interfaces:
IERXMigration, IERXPostMigration

public class BugTracker1
extends ERXMigrationDatabase.Migration
implements IERXPostMigration


Field Summary
 
Fields inherited from class er.extensions.migration.ERXMigrationDatabase.Migration
ALLOWS_NULL, NOT_NULL
 
Constructor Summary
BugTracker1()
           
 
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 er.extensions.migration.ERXMigrationDatabase.Migration
downgrade, languages, upgrade
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface er.extensions.migration.IERXMigration
downgrade, upgrade
 

Constructor Detail

BugTracker1

public BugTracker1()
Method Detail

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 context
database - 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 context
database - 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

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

Copyright © 2002 – 2007 Project Wonder.