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();
}
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;
}
Aggregations