for example AfterElementDeleteCommand extends AbstractTransactionalCommand {
...
@Override
protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
IAdaptable info) throws ExecutionException {
//add here your mysql code
}
protected Command getDestroyElementCommand(DestroyElementRequest req) {
View view = (View) getHost().getModel();
CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(
getEditingDomain(), null);
cmd.setTransactionNestingEnabled(false);
cmd.add(new AfterElementDeleteCommand(getEditingDomain(), "delte", null, (IGraphicalEditPart) getHost()));
]]>