|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.extensions.migration.ERXMigrationDatabase.Migration
er.taggable.migrations.ERTaggableEntity0
public class ERTaggableEntity0
ERTaggableEntity0 provides a superclass for creating the join table for your taggable entities.
Field Summary |
---|
Fields inherited from class er.extensions.migration.ERXMigrationDatabase.Migration |
---|
ALLOWS_NULL, NOT_NULL |
Constructor Summary | |
---|---|
ERTaggableEntity0(java.lang.String entityName)
Constructs an ERTaggableEntity0. |
|
ERTaggableEntity0(java.lang.String entityName,
java.lang.String tagsRelationshipName)
Constructs an ERTaggableEntity0. |
|
ERTaggableEntity0(java.lang.String entityName,
java.lang.String tagsRelationshipName,
java.lang.String tagEntityName)
Constructs an ERTaggableEntity0. |
Method Summary | |
---|---|
void |
downgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
ERXMigrationDatabase database)
|
com.webobjects.foundation.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,
java.lang.String itemEntityName)
|
static void |
upgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
com.webobjects.eoaccess.EOAdaptorChannel channel,
com.webobjects.eoaccess.EOModel model,
java.lang.String itemEntityName,
java.lang.String tagsRelationshipName)
|
static void |
upgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
com.webobjects.eoaccess.EOAdaptorChannel channel,
com.webobjects.eoaccess.EOModel model,
java.lang.String entityName,
java.lang.String tagsRelationshipName,
java.lang.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)
|
Methods inherited from class er.extensions.migration.ERXMigrationDatabase.Migration |
---|
downgrade, languages, upgrade |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ERTaggableEntity0(java.lang.String entityName)
entityName
- the name of your entity to tagpublic ERTaggableEntity0(java.lang.String entityName, java.lang.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(java.lang.String entityName, java.lang.String tagsRelationshipName, java.lang.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")Method Detail |
---|
public com.webobjects.foundation.NSArray<ERXModelVersion> modelDependencies()
ERXMigrationDatabase.Migration
modelDependencies
in interface IERXMigration
modelDependencies
in class ERXMigrationDatabase.Migration
public void downgrade(com.webobjects.eocontrol.EOEditingContext editingContext, ERXMigrationDatabase database) throws java.lang.Throwable
downgrade
in class ERXMigrationDatabase.Migration
editingContext
- the editing contextdatabase
- the migration database
java.lang.Throwable
- if anything goes wrongIERXMigration.downgrade
public void upgrade(com.webobjects.eocontrol.EOEditingContext editingContext, ERXMigrationDatabase database) throws java.lang.Throwable
upgrade
in class ERXMigrationDatabase.Migration
editingContext
- the editing contextdatabase
- the migration database
java.lang.Throwable
- if anything goes wrongIERXMigration.upgrade
public static void upgrade(com.webobjects.eocontrol.EOEditingContext editingContext, com.webobjects.eoaccess.EOAdaptorChannel channel, com.webobjects.eoaccess.EOModel model, java.lang.String itemEntityName) throws java.sql.SQLException
java.sql.SQLException
public static void upgrade(com.webobjects.eocontrol.EOEditingContext editingContext, com.webobjects.eoaccess.EOAdaptorChannel channel, com.webobjects.eoaccess.EOModel model, java.lang.String itemEntityName, java.lang.String tagsRelationshipName) throws java.sql.SQLException
java.sql.SQLException
public static void upgrade(com.webobjects.eocontrol.EOEditingContext editingContext, com.webobjects.eoaccess.EOAdaptorChannel channel, com.webobjects.eoaccess.EOModel model, java.lang.String entityName, java.lang.String tagsRelationshipName, java.lang.String tagEntityName) throws java.sql.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")
java.sql.SQLException
- if the update script fails
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |