use of org.jkiss.dbeaver.ext.erd.command.AssociationDeleteCommand in project dbeaver by serge-rider.
the class AssociationEditPolicy method createDeleteCommand.
@Override
protected Command createDeleteCommand(GroupRequest request) {
ERDAssociation relationship = (ERDAssociation) getHost().getModel();
ERDEntity primaryKeyTarget = relationship.getPrimaryKeyEntity();
ERDEntity foreignKeySource = relationship.getForeignKeyEntity();
AssociationDeleteCommand deleteCmd = new AssociationDeleteCommand(foreignKeySource, primaryKeyTarget, relationship);
return deleteCmd;
}
Aggregations