@Override
    public List<List<HorarioMaestro>> getData() {
        List<List<HorarioMaestro>> result = new ArrayList<>();
        List<HorarioMaestro> current;
        HorarioMaestro m,tmp;

        try {
            for (int i = 0; i < HorariosParse.getInstance().count(); i++) {
                current = new ArrayList<>();
                
                for (int j = 0; j < 5; j++) {
                    m=null;
                    RawData.beforeFirst();
                    while (RawData.next()) {
                        tmp = HorarioMaestroController.getFromResultSet(RawData);
                        if(tmp.getHorario()==i && tmp.getDia()==j){
                            m=tmp;
                            RawData.afterLast();
                        }
                    }
                    if(m==null){
                        m = new HorarioMaestro(j, i, "", "", true,"","");
                    }
                    current.add(m);
                }
                result.add(current);
            }

        } catch (SQLException | ParseException ex) {
            Logger.getLogger(HorarioMaestroDBData.class.getName()).log(Level.SEVERE, null, ex);
        }

        return result;
    }