Search in sources :

Example 1 with AddForeignKey

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

the class ForeignKeyChangeBuilder method createAddForeignKey.

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

Example 2 with AddForeignKey

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

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

Aggregations

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