public class ERTaggableEntity0 extends ERXMigrationDatabase.Migration
ALLOWS_NULL, NOT_NULL| Constructor and Description |
|---|
ERTaggableEntity0(String entityName)
Constructs an ERTaggableEntity0.
|
ERTaggableEntity0(String entityName,
String tagsRelationshipName)
Constructs an ERTaggableEntity0.
|
ERTaggableEntity0(String entityName,
String tagsRelationshipName,
String tagEntityName)
Constructs an ERTaggableEntity0.
|
| Modifier and Type | Method and Description |
|---|---|
void |
downgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
ERXMigrationDatabase database) |
NSArray<ERXModelVersion> |
modelDependencies()
Overridden to return null by default
|
static void |
upgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
com.webobjects.eoaccess.EOAdaptorChannel channel,
com.webobjects.eoaccess.EOModel model,
String itemEntityName) |
static void |
upgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
com.webobjects.eoaccess.EOAdaptorChannel channel,
com.webobjects.eoaccess.EOModel model,
String itemEntityName,
String tagsRelationshipName) |
static void |
upgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
com.webobjects.eoaccess.EOAdaptorChannel channel,
com.webobjects.eoaccess.EOModel model,
String entityName,
String tagsRelationshipName,
String tagEntityName)
If you don't want to subclass ERTaggableEntity0, you can call this static method from your
own migration.
|
void |
upgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
ERXMigrationDatabase database) |
downgrade, languages, upgradepublic ERTaggableEntity0(String entityName)
entityName - the name of your entity to tagpublic ERTaggableEntity0(String entityName, String tagsRelationshipName)
entityName - the name of your entity to tagtagsRelationshipName - the name of the flattened to-many relationship to ERTag (defaults to "tags")public ERTaggableEntity0(String entityName, String tagsRelationshipName, String tagEntityName)
entityName - the name of your entity to tagtagsRelationshipName - the name of the flattened to-many relationship to ERTag (defaults to "tags")tagEntityName - the name of the tag entity (defaults to "ERTag")public NSArray<ERXModelVersion> modelDependencies()
ERXMigrationDatabase.MigrationmodelDependencies in interface IERXMigrationmodelDependencies in class ERXMigrationDatabase.Migrationpublic void downgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
ERXMigrationDatabase database)
throws Throwable
downgrade in class ERXMigrationDatabase.MigrationeditingContext - the editing contextdatabase - the migration databaseThrowable - if anything goes wrongIERXMigration.downgrade(EOEditingContext, EOAdaptorChannel, EOModel)public void upgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
ERXMigrationDatabase database)
throws Throwable
upgrade in class ERXMigrationDatabase.MigrationeditingContext - the editing contextdatabase - the migration databaseThrowable - if anything goes wrongIERXMigration.upgrade(EOEditingContext, EOAdaptorChannel, EOModel)public static void upgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
com.webobjects.eoaccess.EOAdaptorChannel channel,
com.webobjects.eoaccess.EOModel model,
String itemEntityName)
throws SQLException
SQLExceptionpublic static void upgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
com.webobjects.eoaccess.EOAdaptorChannel channel,
com.webobjects.eoaccess.EOModel model,
String itemEntityName,
String tagsRelationshipName)
throws SQLException
SQLExceptionpublic static void upgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
com.webobjects.eoaccess.EOAdaptorChannel channel,
com.webobjects.eoaccess.EOModel model,
String entityName,
String tagsRelationshipName,
String tagEntityName)
throws SQLException
editingContext - the editing contextchannel - the adaptor channelmodel - the modelentityName - the name of your entity to tagtagsRelationshipName - the name of the flattened to-many relationship to ERTag (defaults to "tags")tagEntityName - the name of the tag entity (defaults to "ERTag")SQLException - if the update script failsCopyright © 2002 – 2020 Project Wonder.