public class ForeignKeyMigrator extends Object
| Constructor and Description |
|---|
ForeignKeyMigrator(Backend backend,
ForeignKey foreignKey,
ForeignKeyMetaData foreignKeyMetaData)
Creates a migrator.
|
| Modifier and Type | Method and Description |
|---|---|
Backend |
getBackend()
Gets the backend.
|
ForeignKey |
getForeignKey()
Gets the foreign key to migrate.
|
ForeignKeyMetaData |
getForeignKeyMetaData()
Gets the foreign key metadata.
|
String |
migrate()
Migrates the foreign key.
|
public ForeignKeyMigrator(Backend backend, ForeignKey foreignKey, ForeignKeyMetaData foreignKeyMetaData)
backend - the backendforeignKey - the foreign key to migrate, null if no such fk in modelforeignKeyMetaData - the foreign key meta data, null if key does not existpublic Backend getBackend()
public ForeignKey getForeignKey()
public ForeignKeyMetaData getForeignKeyMetaData()
public String migrate() throws ModelException
ModelException - if migration failedTentackle - a domain driven enterprise framework