Search in sources :

Example 1 with RemoveForeignKey

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

the class RemoveForeignKeyItemProvider 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) {
    RemoveForeignKey removeForeignKey = (RemoveForeignKey) object;
    ForeignKey foreignKey = removeForeignKey.getForeignKey();
    return getString("_UI_RemoveForeignKey_type") + " " + foreignKey.getName();
}
Also used : RemoveForeignKey(org.obeonetwork.dsl.database.dbevolution.RemoveForeignKey) RemoveForeignKey(org.obeonetwork.dsl.database.dbevolution.RemoveForeignKey) ForeignKey(org.obeonetwork.dsl.database.ForeignKey)

Example 2 with RemoveForeignKey

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

the class ForeignKeyChangeBuilder method createRemoveForeignKey.

protected RemoveForeignKey createRemoveForeignKey(ForeignKey fk, ReferenceChange change) {
    RemoveForeignKey removeFK = DbevolutionFactory.eINSTANCE.createRemoveForeignKey();
    removeFK.setForeignKey(fk);
    fillDBDiff(removeFK, change);
    return removeFK;
}
Also used : RemoveForeignKey(org.obeonetwork.dsl.database.dbevolution.RemoveForeignKey)

Aggregations

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