Package GeneracionHorarios

Examples of GeneracionHorarios.Curso


        String lineaCurso = lector.readLine();
        if (lineaCurso==null)
            throw new IOException();
        String [] datosCurso = lineaCurso.split(",");
        Profesor profesor = ProfesorBD.buscarProfesor(datosCurso[7]);
        return new Curso (-1,datosCurso[0],datosCurso[1],datosCurso[2],Integer.parseInt(datosCurso[3]),
                          Integer.parseInt(datosCurso[4]),Integer.parseInt(datosCurso[5]),Integer.parseInt(datosCurso[6]),profesor);
    }
View Full Code Here


                              "WHERE C.codProfesor = P.codProfesor;";
        Statement stm = AccesoBD.conn.createStatement();
        ResultSet rs = stm.executeQuery(cadObtCursos);
        ArrayList<Curso> arrCursos = new ArrayList<Curso>();
        while (rs.next()){
            Curso curso =  new Curso (rs.getInt(11),rs.getString(1),rs.getString(2),rs.getString(3),rs.getInt(4),rs.getInt(5),
                                      rs.getInt(6),rs.getInt(7),new Profesor(rs.getInt(8),rs.getString(9),rs.getString(10)));
            arrCursos.add(curso);
        }
        rs.close();
        stm.close();
View Full Code Here

                           "FROM Curso WHERE codCurso = ?;";
        PreparedStatement pst = AccesoBD.conn.prepareStatement(cadBuscar);
        pst.setInt(1,codCurso);
        ResultSet rs = pst.executeQuery();
        rs.next();
        Curso cursoBuscado = new Curso(rs.getInt(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getInt(5),rs.getInt(6),
                                       rs.getInt(7),rs.getInt(8),ProfesorBD.buscarProfesor(rs.getInt(9)));
        pst.close();
        rs.close();
        return cursoBuscado;
    }
View Full Code Here

TOP

Related Classes of GeneracionHorarios.Curso

Copyright © 2018 www.massapicom. 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.