Professional Documents
Culture Documents
Codigo en Java Consultajdbc
Codigo en Java Consultajdbc
Query q = em.createNativeQuery(cadprin);
return q.getResultList();
}
cell = row.createCell(0);
cell.setCellValue(getString(lista.get(i)[0]));//txt_constancia
cell = row.createCell(1);
cell.setCellValue(getString(lista.get(i)[1]));//txt_nombre
cell = row.createCell(2);
cell.setCellValue(getString(lista.get(i)[36]));//tipo
cell = row.createCell(3);
cell.setCellValue(getString(lista.get(i)[2]));//departamento
cell = row.createCell(4);
cell.setCellValue(getString(lista.get(i)[3]));//provincia
cell = row.createCell(5);
cell.setCellValue(getString(lista.get(i)[4]));//distrito
cell = row.createCell(6);
cell.setCellValue(getString(lista.get(i)[37]));//condicion
cell = row.createCell(7);
cell.setCellValue(getString(lista.get(i)[5]));//estado dna
cell = row.createCell(8);
cell.setCellValue(getString(lista.get(i)[6]));
cell = row.createCell(9);
cell.setCellValue(getString(lista.get(i)[7]));
cell = row.createCell(10);
cell.setCellValue(getString(lista.get(i)[8]));
cell = row.createCell(11);
cell.setCellValue(getString(lista.get(i)[9]));
cell = row.createCell(12);
cell.setCellValue(getString(lista.get(i)[10]));
cell = row.createCell(13);
cell.setCellValue(getString(lista.get(i)[11]));
cell = row.createCell(14);
cell.setCellValue(getString(lista.get(i)[12]));
cell = row.createCell(15);
cell.setCellValue(getString(lista.get(i)[13]));
cell = row.createCell(16);
cell.setCellValue(getString(lista.get(i)[14]));
cell = row.createCell(17);
cell.setCellValue(getString(lista.get(i)[15]));
cell = row.createCell(18);
cell.setCellValue(getString(lista.get(i)[16]));
cell = row.createCell(19);
cell.setCellValue(getString(lista.get(i)[17]));
cell = row.createCell(20);
cell.setCellValue(getString(lista.get(i)[18]));
cell = row.createCell(21);
cell.setCellValue(getString(lista.get(i)[19]));
cell = row.createCell(22);
cell.setCellValue(getString(lista.get(i)[20]));
cell = row.createCell(23);
cell.setCellValue(getString(lista.get(i)[21]));
cell = row.createCell(24);
cell.setCellValue(getString(lista.get(i)[22]));
cell = row.createCell(25);
cell.setCellValue(getString(lista.get(i)[23]));
cell = row.createCell(26);
cell.setCellValue(getString(lista.get(i)[24]));
cell = row.createCell(27);
cell.setCellValue(getString(lista.get(i)[25]));
cell = row.createCell(28);
cell.setCellValue(getString(lista.get(i)[26]));
cell = row.createCell(29);
cell.setCellValue(getString(lista.get(i)[27]));
cell = row.createCell(30);
cell.setCellValue(getString(lista.get(i)[28]));
cell = row.createCell(31);
cell.setCellValue(getString(lista.get(i)[29]));
cell = row.createCell(32);
cell.setCellValue(getString(lista.get(i)[30]));
cell = row.createCell(33);
cell.setCellValue(getString(lista.get(i)[31]));
cell = row.createCell(34);
cell.setCellValue(getString(lista.get(i)[32]));
cell = row.createCell(35);
cell.setCellValue(getString(lista.get(i)[33]));
cell = row.createCell(36);
cell.setCellValue(getString(lista.get(i)[34]));
cell = row.createCell(37);
…
List<Object[]> lista =
this.defensoriaPersonaFacade.exportarDefensoresPersonaExcel();