Search in sources :

Example 1 with RemovePrimaryKey

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

the class PrimaryKeyChangeBuilder method createRemovePrimaryKey.

protected RemovePrimaryKey createRemovePrimaryKey(PrimaryKey pk, ReferenceChange change) {
    RemovePrimaryKey removePK = DbevolutionFactory.eINSTANCE.createRemovePrimaryKey();
    removePK.setPrimaryKey(pk);
    fillDBDiff(removePK, change);
    return removePK;
}
Also used : RemovePrimaryKey(org.obeonetwork.dsl.database.dbevolution.RemovePrimaryKey)

Example 2 with RemovePrimaryKey

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

the class RemovePrimaryKeyItemProvider 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) {
    RemovePrimaryKey removePrimaryKey = (RemovePrimaryKey) object;
    PrimaryKey primaryKey = removePrimaryKey.getPrimaryKey();
    return getString("_UI_RemovePrimaryKey_type") + " " + primaryKey.getName();
}
Also used : RemovePrimaryKey(org.obeonetwork.dsl.database.dbevolution.RemovePrimaryKey) RemovePrimaryKey(org.obeonetwork.dsl.database.dbevolution.RemovePrimaryKey) PrimaryKey(org.obeonetwork.dsl.database.PrimaryKey)

Aggregations

RemovePrimaryKey (org.obeonetwork.dsl.database.dbevolution.RemovePrimaryKey)2 PrimaryKey (org.obeonetwork.dsl.database.PrimaryKey)1