ERTaggableEntity0 Class Reference

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

Inherited by Uber2, and Movies2.

Collaboration diagram for ERTaggableEntity0:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void downgrade (EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable
 ERTaggableEntity0 (String entityName, String tagsRelationshipName, String tagEntityName)
 ERTaggableEntity0 (String entityName, String tagsRelationshipName)
 ERTaggableEntity0 (String entityName)
NSArray< ERXModelVersionmodelDependencies ()
void upgrade (EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable

Static Public Member Functions

static void upgrade (EOEditingContext editingContext, EOAdaptorChannel channel, EOModel model, String entityName, String tagsRelationshipName, String tagEntityName) throws SQLException
static void upgrade (EOEditingContext editingContext, EOAdaptorChannel channel, EOModel model, String itemEntityName, String tagsRelationshipName) throws SQLException
static void upgrade (EOEditingContext editingContext, EOAdaptorChannel channel, EOModel model, String itemEntityName) throws SQLException

Private Attributes

String _entityName
String _tagEntityName
String _tagsRelationshipName


Detailed Description

ERTaggableEntity0 provides a superclass for creating the join table for your taggable entities.

Author:
mschrag

Constructor & Destructor Documentation

ERTaggableEntity0 ( String  entityName  ) 

Constructs an ERTaggableEntity0.

Parameters:
entityName the name of your entity to tag

ERTaggableEntity0 ( String  entityName,
String  tagsRelationshipName 
)

Constructs an ERTaggableEntity0.

Parameters:
entityName the name of your entity to tag
tagsRelationshipName the name of the flattened to-many relationship to ERTag (defaults to "tags")

ERTaggableEntity0 ( String  entityName,
String  tagsRelationshipName,
String  tagEntityName 
)

Constructs an ERTaggableEntity0.

Parameters:
entityName the name of your entity to tag
tagsRelationshipName the name of the flattened to-many relationship to ERTag (defaults to "tags")
tagEntityName the name of the tag entity (defaults to "ERTag")


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.

NSArray<ERXModelVersion> modelDependencies (  ) 

Overridden to return null by default

Reimplemented from ERXMigrationDatabase.Migration.

static void upgrade ( EOEditingContext  editingContext,
EOAdaptorChannel  channel,
EOModel  model,
String  entityName,
String  tagsRelationshipName,
String  tagEntityName 
) throws SQLException [static]

If you don't want to subclass ERTaggableEntity0, you can call this static method from your own migration.

Parameters:
editingContext the editing context
channel the adaptor channel
model the model
entityName the name of your entity to tag
tagsRelationshipName the name of the flattened to-many relationship to ERTag (defaults to "tags")
tagEntityName the name of the tag entity (defaults to "ERTag")
Exceptions:
SQLException if the update script fails

static void upgrade ( EOEditingContext  editingContext,
EOAdaptorChannel  channel,
EOModel  model,
String  itemEntityName,
String  tagsRelationshipName 
) throws SQLException [static]

static void upgrade ( EOEditingContext  editingContext,
EOAdaptorChannel  channel,
EOModel  model,
String  itemEntityName 
) throws SQLException [static]

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

String _entityName [private]


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

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