ERXMigrationDatabase.Migration Class Reference

Inherits er::extensions::migration::IERXMigration.

Inherited by ERAttachment0, ERAttachment1, ERAttachmentMigration, BugTracker0, BugTracker1, ERCoreBusinessLogic0, ERXTest0, RestExample0, ERTaggable0, ERTaggableEntity0, Uber0, Uber1, Movies0, and Movies3.

Collaboration diagram for ERXMigrationDatabase.Migration:

Collaboration graph
[legend]

List of all members.

Public Member Functions

abstract void downgrade (EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable
void downgrade (EOEditingContext editingContext, EOAdaptorChannel channel, EOModel model) throws Throwable
NSArray< Stringlanguages ()
NSArray< ERXModelVersionmodelDependencies ()
abstract void upgrade (EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable
void upgrade (EOEditingContext editingContext, EOAdaptorChannel channel, EOModel model) throws Throwable

Static Public Attributes

static final boolean ALLOWS_NULL = true
static final boolean NOT_NULL = false

Protected Member Functions

 Migration (NSArray languages)
 Migration ()

Private Attributes

NSArray< String_languages


Detailed Description

A convenience implementation of IERXMigration that passes in an ERXMigrationDatabase instead of channel + model.

Author:
mschrag

Constructor & Destructor Documentation

Migration (  )  [protected]

Migration ( NSArray  languages  )  [protected]


Member Function Documentation

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

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

Implemented in Uber0, Uber1, RestExample0, BugTracker0, BugTracker1, ERAttachment0, ERAttachment1, ERAttachmentMigration, ERCoreBusinessLogic0, Movies0, Movies1, Movies3, ERTaggable0, ERTaggableEntity0, and ERXTest0.

void downgrade ( EOEditingContext  editingContext,
EOAdaptorChannel  channel,
EOModel  model 
) throws Throwable

Called when migrating the database from the next version to this version. For instance if this is AuthModel1, it will be called to migrate from version 1 back to version 0.

If this is the lowest migration you support, downgrade should throw an ERXMigrationFailedException.

Parameters:
editingContext the editing context you can perform EO operations with.
channel the channel to perform low level operations with
model the model being downgraded
Exceptions:
Throwable if something fails

Implements IERXMigration.

NSArray<String> languages (  ) 

NSArray<ERXModelVersion> modelDependencies (  ) 

Overridden to return null by default

Implements IERXMigration.

Reimplemented in Uber0, Uber1, RestExample0, BugTracker0, BugTracker1, ERAttachmentMigration, ERCoreBusinessLogic0, Movies0, Movies1, Movies3, and ERTaggableEntity0.

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

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

Implemented in Uber0, Uber1, RestExample0, BugTracker0, BugTracker1, ERAttachment0, ERAttachment1, ERAttachmentMigration, ERCoreBusinessLogic0, Movies0, Movies3, ERTaggable0, ERTaggableEntity0, and ERXTest0.

void upgrade ( EOEditingContext  editingContext,
EOAdaptorChannel  channel,
EOModel  model 
) throws Throwable

Called when migrating the database from the last version to this version. For instance if this is AuthModel1, it will be called to migrate from version 0 to version 1.

Parameters:
editingContext the editing context you can perform EO operations with.
channel the channel to perform low level operations with
model the model being upgraded
Exceptions:
Throwable if something fails

Implements IERXMigration.


Member Data Documentation

NSArray<String> _languages [private]

final boolean ALLOWS_NULL = true [static]

final boolean NOT_NULL = false [static]


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

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