Examples of Profesor


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

Examples of GeneracionHorarios.Profesor

        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

Examples of GeneracionHorarios.Profesor

    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

Examples of GeneracionHorarios.Profesor

    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

Examples of GeneracionHorarios.Profesor

        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

Examples of GeneracionHorarios.Profesor

        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

Examples of GeneracionHorarios.Profesor

        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

Examples of nom.Profesor

    }
    String numeProfesor="numeProfesorTest";
    String prenumeProfesor="prenumeProfesorTest";
   
    for(int i=0;i<5;i++){
      Profesor p=new Profesor();
      p.setEmail("email");
      p.setNume(numeProfesor+i);
      p.setPrenume(prenumeProfesor+i);
      p.setSitePersonal("site");
     
      for(int j=0;j<2;j++){
        Obiect o=new Obiect();
        o.setNume("obiect"+j);
        o.setIdEvaluare(j);
        o.setCredite(j+1);
        p.getObiecte().add(o);
       
      }
     
      em.persist(p);
    }
View Full Code Here

Examples of nom.Profesor

    profesori = UserService.creareListaProfesori();
    dataAleasa = new Date();
    stiri=UserService.creareListaN();
  }
  public void reset(){
    prof=new Profesor();
    prof.setIdProfesor(0);
    prof.setEmail(" ");
    prof.setNume(" ");
    prof.setSitePersonal(" ");
    prof.setPrenume(" ");
View Full Code Here

Examples of nom.Profesor

  public static void removeProfesor(Profesor prof){
    EntityManagerFactory emf = Persistence
        .createEntityManagerFactory("modul3L2");
    em = emf.createEntityManager();
    em.getTransaction().begin();
    Profesor profesor=em.find(Profesor.class, prof.getIdProfesor());
    em.remove(profesor);
    em.getTransaction().commit();
  }
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.