ERAttachmentMigration Class Reference

Inherits er::extensions::migration::ERXMigrationDatabase::Migration.

Inherited by Movies1.

Collaboration diagram for ERAttachmentMigration:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void downgrade (EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable
 ERAttachmentMigration (String tableName, String columnName, boolean allowsNull)
NSArray< ERXModelVersionmodelDependencies ()
void upgrade (EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable

Private Attributes

boolean _allowsNull
String _columnName
String _tableName


Detailed Description

Provides a base class for a migration that adds an attachment to an existing table.

Author:
mschrag

Constructor & Destructor Documentation

ERAttachmentMigration ( String  tableName,
String  columnName,
boolean  allowsNull 
)

Construct an ERAttachmentMigration.

Parameters:
tableName the name of the table to add an attachment to
columnName the name of the attachment foreign key column
allowsNull whether or not the attachment is allowed to be null


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.

Reimplemented in Movies1.

NSArray<ERXModelVersion> modelDependencies (  ) 

Overridden to return null by default

Reimplemented from ERXMigrationDatabase.Migration.

Reimplemented in Movies1.

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.


Member Data Documentation

boolean _allowsNull [private]

String _columnName [private]

String _tableName [private]


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

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