RestExample0 Class Reference

Inherits er::extensions::migration::ERXMigrationDatabase::Migration, and er::extensions::migration::IERXPostMigration.

Collaboration diagram for RestExample0:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void downgrade (EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable
NSArray< ERXModelVersionmodelDependencies ()
void postUpgrade (EOEditingContext editingContext, EOModel model) throws Throwable
void upgrade (EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable


Detailed Description

Migrations, though the default example runs with a Memory adaptor.

Author:
mschrag

Member Function Documentation

void downgrade ( EOEditingContext  editingContext,
ERXMigrationDatabase  database 
) throws Throwable [virtual]

See also:
IERXMigration.downgrade
Parameters:
editingContext the editing context
database the migration database
Exceptions:
Throwable if anything goes wrong

Implements ERXMigrationDatabase.Migration.

NSArray<ERXModelVersion> modelDependencies (  ) 

Overridden to return null by default

Reimplemented from ERXMigrationDatabase.Migration.

void postUpgrade ( EOEditingContext  editingContext,
EOModel  model 
) throws 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
Exceptions:
Throwable if something fails

Implements IERXPostMigration.

void upgrade ( EOEditingContext  editingContext,
ERXMigrationDatabase  database 
) throws Throwable [virtual]

See also:
IERXMigration.upgrade
Parameters:
editingContext the editing context
database the migration database
Exceptions:
Throwable if anything goes wrong

Implements ERXMigrationDatabase.Migration.


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:30 2012 for Project Wonder by  doxygen 1.5.8