public final class ResultSetDataWrapper extends Object implements DataWrapper
| Constructor and Description |
|---|
ResultSetDataWrapper(Logger logger,
ToCellValueConverter converter,
String rangeName,
ResultSet rs,
TableCellStyle headCellStyle,
boolean autoFilter,
Map<Integer,CellType> cellTypeByColIndex,
CellValue nullValue,
int max) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addToTable(TableCellWalker walker) |
static ResultSetDataWrapperBuilder |
builder(String rangeName,
ResultSet rs) |
public ResultSetDataWrapper(Logger logger, ToCellValueConverter converter, String rangeName, ResultSet rs, TableCellStyle headCellStyle, boolean autoFilter, Map<Integer,CellType> cellTypeByColIndex, CellValue nullValue, int max)
logger - a loggerconverter - a converter SQL to OpenDocumentrangeName - the name of the rangers - the result cellheadCellStyle - a style for header, null if noneautoFilter - set an auto filter if truecellTypeByColIndex - a hint for cell typesnullValue - the default value for NULLmax - the maximum number of rows, -1 for unlimitedpublic static ResultSetDataWrapperBuilder builder(String rangeName, ResultSet rs)
rangeName - the name of the rangers - the result setpublic boolean addToTable(TableCellWalker walker) throws IOException
addToTable in interface DataWrapperwalker - a walker with a position (typically the top right corner of the data)IOException - if an I/O error occurred.Copyright © 2016–2021. All rights reserved.