String selectRow = "SELECT * FROM " + tableName + " WHERE " + id + "= "
+ tPcMainId+ ";";
Connection c = connectionDB.getConnection();
try {
TPcMain tPcMain = new TPcMain();
Statement st = connectionDB.getConnection().createStatement();
ResultSet rs = st.executeQuery(selectRow);
rs.next();
tPcMain.setPcMainId(rs.getInt(id));
tPcMain.setGpuId(rs.getInt(gpuId));
tPcMain.setHddId(rs.getInt(hddId));
tPcMain.setCpuId(rs.getInt(cpuId));
tPcMain.setOsId(rs.getInt(osId));
tPcMain.setRamId(rs.getInt(ramId));
tPcMain.setMonitorId(rs.getInt(monitorId));
tPcMain.setPeriId(rs.getInt(peripheralId));
tPcMain.setPcClassId(rs.getInt(pcClassId));
return tPcMain;
} catch (SQLException ex) {
System.err.print("Problems in " + TPcMainDao.class.toString() + " error " + ex);
return null;
} finally {