BrightSide Workbench Full Report + Source Code
org.turro.jpa.export.ExportAsStream Class Reference

Public Member Functions

 ExportAsStream (Dao dao, Collection< String > columns, SqlClause sc)
 
 ExportAsStream (Dao dao, Collection< String > columns, WhereClause wc)
 
void fieldReplacement (BiFunction< Integer, Object, Object > replace)
 
void generateExcel (File file)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 43 of file ExportAsStream.java.

Constructor & Destructor Documentation

◆ ExportAsStream() [1/2]

org.turro.jpa.export.ExportAsStream.ExportAsStream ( Dao  dao,
Collection< String >  columns,
SqlClause  sc 
)

Definition at line 57 of file ExportAsStream.java.

57  {
58  this.dao = dao;
59  this.columns = columns;
60  this.sc = sc;
61  this.wc = null;
62  }

◆ ExportAsStream() [2/2]

org.turro.jpa.export.ExportAsStream.ExportAsStream ( Dao  dao,
Collection< String >  columns,
WhereClause  wc 
)

Definition at line 64 of file ExportAsStream.java.

64  {
65  this.dao = dao;
66  this.columns = columns;
67  this.sc = null;
68  this.wc = wc;
69  }

Member Function Documentation

◆ fieldReplacement()

void org.turro.jpa.export.ExportAsStream.fieldReplacement ( BiFunction< Integer, Object, Object >  replace)

Definition at line 71 of file ExportAsStream.java.

71  {
72  this.replace = replace;
73  }

◆ generateExcel()

void org.turro.jpa.export.ExportAsStream.generateExcel ( File  file)

Definition at line 75 of file ExportAsStream.java.

75  {
76  try {
77  ww = Workbook.createWorkbook(file);
78  writeSheet();
79  ww.write();
80  ww.close();
81  } catch (WriteException | IOException ex) {
82  WebLoggers.severe(this).exception(ex).log();
83  }
84  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: