|
| ExportQuery (Collection< String > columns, Collection< Object[]> results) |
|
InputStream | getExcel (String sheetName) |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 40 of file ExportQuery.java.
◆ ExportQuery()
org.turro.jpa.export.ExportQuery.ExportQuery |
( |
Collection< String > |
columns, |
|
|
Collection< Object[]> |
results |
|
) |
| |
Definition at line 45 of file ExportQuery.java.
46 this.columns = columns;
47 this.results = results;
◆ getExcel()
InputStream org.turro.jpa.export.ExportQuery.getExcel |
( |
String |
sheetName | ) |
|
Definition at line 50 of file ExportQuery.java.
52 ByteArrayOutputStream baos =
new ByteArrayOutputStream();
53 WritableWorkbook ww = Workbook.createWorkbook(baos);
54 WritableSheet ws = ww.createSheet(sheetName, 0);
59 return new ByteArrayInputStream(baos.toByteArray());
60 }
catch (WriteException | IOException ex) {
61 Logger.getLogger(
ExportQuery.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
ExportQuery(Collection< String > columns, Collection< Object[]> results)
The documentation for this class was generated from the following file: