@Override
    public boolean update(DataRow parameters, DataRow row) {
        if(!parameters.getName().equals(row.getName()))
        {
            ErrorDialog errorDialog = new ErrorDialog(true, "Nazwy tabel w parameters i row są różne!", "SqlServerLocalDatabaseConnector", "update", "row, parameters");
            errorDialog.setVisible(true);
            return false;
        }
        String statement = "UPDATE " + row.getTableName() + " SET ";
        boolean isFirst = true;
        for(DataCell cell : row.row)
        {
            if(!cell.getName().equals("name"))
            {
                if(isFirst)
                {
                    isFirst = false;
                    statement += cell.getName() + " = '" + cell.getValue() + "'";
                } else {
                    statement += ", " + cell.getName() + " = '" + cell.getValue() + "'";
                }
            }
        }
        statement += " WHERE name = '" + parameters.getName() + "'";
        try
        {
            Statement stat = dbConnection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
            stat.executeUpdate(statement);
            return true;
        } catch(Exception e) {
            ErrorDialog errorDialog = new ErrorDialog(true, "Nastąpił błąd podczas wykonywania update w bazie danych:\n" + e.getMessage(), "SqlServerLocalDatabaseConnector", "update", "row, parameters, statement");
            errorDialog.setVisible(true);
            return false;
        }
    }