Search in sources :

Example 1 with UpdatePrimaryKey

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

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

Example 2 with UpdatePrimaryKey

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

the class PrimaryKeyChangeBuilder method createUpdatePrimaryKey.

protected UpdatePrimaryKey createUpdatePrimaryKey(PrimaryKey oldPk, PrimaryKey newPk, Match match) {
    UpdatePrimaryKey updatePK = DbevolutionFactory.eINSTANCE.createUpdatePrimaryKey();
    updatePK.setPrimaryKey(oldPk);
    updatePK.setNewPrimaryKey(newPk);
    fillDBDiff(updatePK, match);
    return updatePK;
}
Also used : UpdatePrimaryKey(org.obeonetwork.dsl.database.dbevolution.UpdatePrimaryKey)

Aggregations

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