@Override
    public boolean update(DataRow parameters, DataRow row) 
    {
        Boolean flaga = false;
        try
        {
                con = DriverManager.getConnection(url, login, password);
                String stm;
                String tabelName = row.getTableName();
                List<DataCell> cells = row.row;
                List<DataCell> toUpdate = parameters.row;
                
                String kolumny = "";
                String doPodmiany = "";
                
                for(DataCell c : cells)
                {
                    kolumny += c.name + " = " + c.value + ", ";
                }
                
                for (DataCell x : toUpdate)
                {
                    doPodmiany += x.name + " = " + x.value + " AND ";
                }
                
                kolumny = kolumny.substring(0, kolumny.length() - 2);
                doPodmiany = doPodmiany.substring(0, doPodmiany.length() - 5);
                stm = "UPDATE " + tabelName + " SET " + kolumny + " WHERE " + doPodmiany;
                pst = con.prepareStatement(stm);
                pst.executeUpdate();
                flaga = true;
        }
        catch (Exception ex)
        {
             ErrorDialog errorDialog = new ErrorDialog(true, "Błąd operacji w lokalnej bazie danych: \n" +  ex.getMessage(), "LocalDatabaseConnectorPostgre", "update(DataRow parameters, DataRow row)", "con, stm, pst");
             errorDialog.setVisible(true);
        }
        return flaga;
    }