@FXML
    private void handleBtnRegisterAction(ActionEvent event) {
        if (mode == Mode.MODIFY) {
            String sql = "update Suppliers set name = ? where suppliercode = ?;";
            getPersist().executeUpdate(sql, txtName.getText(), selected.getSuppliercode());
            mode = Mode.ADD;
        } else {
            getPersist().executeUpdate("insert into Suppliers (name) values (?);", txtName.getText());
        }

        updateTable();
        txtName.clear();
        txtName.requestFocus();
        MainController.showMessageBar("登録しました");
    }