Class DatasetExcelAdapter
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.util.excel.adapters.DatasetExcelAdapter
 
- 
- All Implemented Interfaces:
- ExcelAdapter<Dataset,org.apache.poi.xssf.streaming.SXSSFWorkbook>
 
 public class DatasetExcelAdapter extends java.lang.Object implements ExcelAdapter<Dataset,org.apache.poi.xssf.streaming.SXSSFWorkbook> 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.common.util.excel.adapters.ExcelAdapterExcelAdapter.KnownTypes
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static intMAX_ROWS_IN_MEMORY
 - 
Constructor SummaryConstructors Constructor Description DatasetExcelAdapter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandrawSheet(org.apache.poi.xssf.streaming.SXSSFWorkbook workbook, java.lang.String sheetName, Dataset dataset, boolean headerRow, boolean nullsEmpty)Draws aSheetfor the specificExcelAdapterorg.apache.poi.xssf.streaming.SXSSFWorkbookdrawWorkbook(boolean headerRow, boolean nullsEmpty, Dataset[] datasets, java.lang.String[] sheetNames)Draws the supplied object(s)ExcelAdapterand returnsExcelAdapter- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.util.excel.adapters.ExcelAdapterdrawWorkbook
 
- 
 
- 
- 
- 
Field Detail- 
MAX_ROWS_IN_MEMORYpublic static final int MAX_ROWS_IN_MEMORY - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
drawWorkbookpublic org.apache.poi.xssf.streaming.SXSSFWorkbook drawWorkbook(boolean headerRow, boolean nullsEmpty, Dataset[] datasets, java.lang.String[] sheetNames)Description copied from interface:ExcelAdapterDraws the supplied object(s)ExcelAdapterand returnsExcelAdapter- Specified by:
- drawWorkbookin interface- ExcelAdapter<Dataset,org.apache.poi.xssf.streaming.SXSSFWorkbook>
- Parameters:
- headerRow- if- true, header rows are expected to be written, otherwise false. It is up to the implementation whether this is respected or not.
- nullsEmpty- if- true, null values will not be written to cells in the excel document. It is up to the implementation whether this is respected or not.
- datasets- The object(s) that the Adapter is compatible with for writing.
- sheetNames- The names of the sheets to create. If null, will use a generic default.
- Returns:
- A Workbookof typeUthat can be closed or further manipulated.
 
 - 
drawSheetpublic boolean drawSheet(org.apache.poi.xssf.streaming.SXSSFWorkbook workbook, java.lang.String sheetName, Dataset dataset, boolean headerRow, boolean nullsEmpty)Description copied from interface:ExcelAdapterDraws aSheetfor the specificExcelAdapter- Specified by:
- drawSheetin interface- ExcelAdapter<Dataset,org.apache.poi.xssf.streaming.SXSSFWorkbook>
- Parameters:
- workbook- the Workbook to add the new sheet to
- sheetName- the name of the sheet. This name should be checked via- WorkbookUtil.createSafeSheetName(String)
- dataset- the object to write to the sheet
- headerRow- if- true, header rows are expected to be written, otherwise false. It is up to the implementation whether this is respected or not.
- nullsEmpty- if- true, null values will not be written to cells in the excel document. It is up to the implementation whether this is respected or not.
- Returns:
- trueif the object was successfully written to the workbook as a new sheet,- falseif the object was not written successfully.
 
 
- 
 
-