Search in sources :

Example 1 with UpdateForeignKey

use of org.obeonetwork.dsl.database.dbevolution.UpdateForeignKey in project InformationSystem by ObeoNetwork.

the class UpdateForeignKeyItemProvider method getText.

/**
 * This returns the label text for the adapted class.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
@Override
public String getText(Object object) {
    UpdateForeignKey updateForeignKey = (UpdateForeignKey) object;
    ForeignKey foreignKey = updateForeignKey.getForeignKey();
    return getString("_UI_UpdateForeignKey_type") + " " + foreignKey.getName();
}
Also used : UpdateForeignKey(org.obeonetwork.dsl.database.dbevolution.UpdateForeignKey) UpdateForeignKey(org.obeonetwork.dsl.database.dbevolution.UpdateForeignKey) ForeignKey(org.obeonetwork.dsl.database.ForeignKey)

Example 2 with UpdateForeignKey

use of org.obeonetwork.dsl.database.dbevolution.UpdateForeignKey in project InformationSystem by ObeoNetwork.

the class ForeignKeyChangeBuilder method createUpdateForeignKey.

protected UpdateForeignKey createUpdateForeignKey(ForeignKey fk, ForeignKey newFK, Match match) {
    UpdateForeignKey updateFK = DbevolutionFactory.eINSTANCE.createUpdateForeignKey();
    updateFK.setForeignKey(fk);
    updateFK.setNewForeignKey(newFK);
    fillDBDiff(updateFK, match);
    return updateFK;
}
Also used : UpdateForeignKey(org.obeonetwork.dsl.database.dbevolution.UpdateForeignKey)

Aggregations

UpdateForeignKey (org.obeonetwork.dsl.database.dbevolution.UpdateForeignKey)2 ForeignKey (org.obeonetwork.dsl.database.ForeignKey)1