er.attachment.migrations
Class ERAttachmentMigration
java.lang.Object
er.extensions.migration.ERXMigrationDatabase.Migration
er.attachment.migrations.ERAttachmentMigration
- All Implemented Interfaces:
- IERXMigration
public abstract class ERAttachmentMigration
- extends ERXMigrationDatabase.Migration
Provides a base class for a migration that adds an attachment to an
existing table.
- Author:
- mschrag
Constructor Summary |
ERAttachmentMigration(java.lang.String tableName,
java.lang.String columnName,
boolean allowsNull)
Construct an ERAttachmentMigration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERAttachmentMigration
public ERAttachmentMigration(java.lang.String tableName,
java.lang.String columnName,
boolean allowsNull)
- Construct an ERAttachmentMigration.
- Parameters:
tableName
- the name of the table to add an attachment tocolumnName
- the name of the attachment foreign key columnallowsNull
- whether or not the attachment is allowed to be null
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 contextdatabase
- 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 contextdatabase
- the migration database
- Throws:
java.lang.Throwable
- if anything goes wrong- See Also:
IERXMigration.upgrade
Copyright © 2002 – 2007 Project Wonder.