use of com.cubrid.common.ui.er.commands.DeleteRelationshipCommand in project cubrid-manager by CUBRID.
the class RelationshipEditPolicy method createDeleteCommand.
protected Command createDeleteCommand(GroupRequest request) {
Relationship relationship = (Relationship) getHost().getModel();
ERTable primaryKeyTarget = relationship.getPrimaryKeyTable();
ERTable foreignKeySource = relationship.getForeignKeyTable();
DeleteRelationshipCommand deleteCmd = new DeleteRelationshipCommand(foreignKeySource, primaryKeyTarget, relationship);
return deleteCmd;
}
Aggregations