Package GeneracionHorarios

Examples of GeneracionHorarios.Profesor


    public Dia leer() throws IOException, SQLException {
        String lineaDiaLibre = lector.readLine();
        if (lineaDiaLibre==null)
            throw new IOException();
        String [] datosDiaLibre = lineaDiaLibre.split(",");
        Profesor profesor = ProfesorBD.buscarProfesor(datosDiaLibre[0]);
        Dia diaLibre = new Dia(datosDiaLibre[1],Integer.parseInt(datosDiaLibre[2])-8,Integer.parseInt(datosDiaLibre[3])-8,true,profesor);
        return diaLibre;
    }
View Full Code Here


        ArchivoProfesor archProfesor=null;
        try {
            //Cargamos los cursos en la BD
            AccesoBD.conexionODBC("horariosBD");
            archProfesor = new ArchivoProfesor(txtRuta.getText());
            Profesor profesor;
            while (true){
                try{
                    profesor = archProfesor.leer();
                } catch(IOException ex){
                    break;
View Full Code Here

    public Profesor leer() throws IOException, SQLException {
        String lineaProfesor = lector.readLine();
        if (lineaProfesor==null)
            throw new IOException();
        String [] datosProfesor = lineaProfesor.split(",");
        return new Profesor (-1,datosProfesor[0],datosProfesor[1]);
    }
View Full Code Here

    public Curso leer() throws IOException, SQLException {
        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

        String cadBuscar = "SELECT codProfesor,codigo,nombre FROM Profesor WHERE codigo = ?;";
        PreparedStatement pst = AccesoBD.conn.prepareStatement(cadBuscar);
        pst.setString(1,codigo);
        ResultSet rs = pst.executeQuery();
        rs.next();
        Profesor profesorBuscado = new Profesor(rs.getInt(1),rs.getString(2),rs.getString(3));
        pst.close();
        rs.close();
        return profesorBuscado;
    }
View Full Code Here

        String cadBuscar = "SELECT codProfesor,codigo,nombre FROM Profesor WHERE codProfesor = ?;";
        PreparedStatement pst = AccesoBD.conn.prepareStatement(cadBuscar);
        pst.setInt(1,codProfesor);
        ResultSet rs = pst.executeQuery();
        rs.next();
        Profesor profesorBuscado = new Profesor(rs.getInt(1),rs.getString(2),rs.getString(3));
        pst.close();
        rs.close();
        return profesorBuscado;
    }
View Full Code Here

        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();
        return arrCursos;
View Full Code Here

TOP

Related Classes of GeneracionHorarios.Profesor

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.