Examples of TPcMain


Examples of ims.sqlClasses.TPcMain

        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 {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.