public class ResultSetSheet extends Sheet
StatementSheet. Most of the time it is used to get the
result of a stored procedure.
Write data to the row-block via the cursor, finished write when
ResultSet.next() returns false
StatementSheet| 限定符和类型 | 类和说明 |
|---|---|
static class |
ResultSetSheet.SQLColumn |
| 限定符和类型 | 字段和说明 |
|---|---|
protected ResultSet |
rs |
autoOdd, autoSize, cellValueAndStyle, columns, comments, copyCount, copySheet, extProp, extPropMark, forceExport, headerReady, headerRowHeight, headStyle, headStyleIndex, hidden, id, LOGGER, name, nonHeader, oddFill, relManager, rowBlock, rowHeight, rows, sheetWriter, shouldClose, showGridLines, startRowIndex, waterMark, width, workbook, zebraFill, zebraFillStyle| 构造器和说明 |
|---|
ResultSetSheet()
Constructor worksheet
|
ResultSetSheet(Column... columns)
Constructor worksheet
|
ResultSetSheet(ResultSet rs)
Constructor worksheet
|
ResultSetSheet(ResultSet rs,
Column... columns)
Constructor worksheet
|
ResultSetSheet(ResultSet rs,
WaterMark waterMark,
Column... columns)
Constructor worksheet
|
ResultSetSheet(String name)
Constructor worksheet
|
ResultSetSheet(String name,
Column... columns)
Constructor worksheet
|
ResultSetSheet(String name,
ResultSet rs)
Constructor worksheet
|
ResultSetSheet(String name,
ResultSet rs,
Column... columns)
Constructor worksheet
|
ResultSetSheet(String name,
ResultSet rs,
WaterMark waterMark,
Column... columns)
Constructor worksheet
|
ResultSetSheet(String name,
WaterMark waterMark,
Column... columns)
Constructor worksheet
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Release resources
|
protected Class<?> |
columnTypeToClass(int type)
Convert
Types to java type |
protected int |
findByKey(ResultSetMetaData metaData,
String key) |
protected Column[] |
getHeaderColumns()
Get header information, get from MetaData if not specified
The copy sheet will use the parent worksheet header information.
|
StyleProcessor<ResultSet> |
getStyleProcessor()
Returns the row style processor
|
protected void |
resetBlockData()
Reset the row-block data
|
ResultSetSheet |
setRs(ResultSet rs)
Setting ResultSet
|
Sheet |
setStyleProcessor(StyleProcessor<ResultSet> styleProcessor)
Setting a row style processor
|
addRel, afterSheetAccess, autoSize, buildHeadStyle, calculateRealColIndex, cancelForceExport, cancelOddStyle, cancelZebraLine, checkColumnLimit, clone, createComments, defaultHeadStyle, defaultHeadStyleIndex, defaultZebraLine, findRel, fixedSize, fixedSize, fixSize, fixSize, forceExport, getAndSortHeaderColumns, getAutoOdd, getAutoSize, getCellValueAndStyle, getColumns, getComments, getCopySheetName, getDefaultWidth, getExtPropAsMap, getExtPropValue, getFileName, getForceExport, getHeaderRowHeight, getHeadStyle, getHeadStyleIndex, getId, getName, getNonHeader, getOddFill, getRelManager, getRowBlockSize, getRowHeight, getRowLimit, getSheetWriter, getSst, getStartRowIndex, getWaterMark, getWorkbook, getZebraFill, getZebraFillStyle, hasHeaderColumns, hidden, hideGridLines, ignoreHeader, int2Col, isAutoSize, isHidden, isScrollToVisibleArea, isShowGridLines, markExtProp, mergeHeaderCellsIfEquals, nextBlock, nonOrIntDefault, paging, putAllExtProp, putExtProp, putExtPropIfAbsent, resetCommonProperties, reverseHeadColumn, search, setAutoOdd, setCellValueAndStyle, setColumns, setColumns, setHeaderRowHeight, setHeadStyle, setHeadStyle, setHeadStyle, setHeadStyle, setHeadStyleIndex, setId, setName, setOddFill, setRowHeight, setSheetWriter, setStartRowIndex, setStartRowIndex, setWaterMark, setWorkbook, setZebraLine, showGridLines, size, sortColumns, what, what, writeToprotected ResultSet rs
public ResultSetSheet()
public ResultSetSheet(String name)
name - the worksheet namepublic ResultSetSheet(Column... columns)
columns - the header infopublic ResultSetSheet(String name, Column... columns)
name - the worksheet namecolumns - the header infopublic ResultSetSheet(String name, WaterMark waterMark, Column... columns)
name - the worksheet namewaterMark - the water markcolumns - the header infopublic ResultSetSheet(ResultSet rs)
rs - the ResultSetpublic ResultSetSheet(String name, ResultSet rs)
name - the worksheet namers - the ResultSetpublic ResultSetSheet(ResultSet rs, Column... columns)
rs - the ResultSetcolumns - the header infopublic ResultSetSheet(String name, ResultSet rs, Column... columns)
name - the worksheet namers - the ResultSetcolumns - the header infopublic ResultSetSheet(ResultSet rs, WaterMark waterMark, Column... columns)
rs - the ResultSetwaterMark - the water markcolumns - the header infopublic ResultSetSheet setRs(ResultSet rs)
rs - the ResultSetResultSetSheetpublic Sheet setStyleProcessor(StyleProcessor<ResultSet> styleProcessor)
styleProcessor - a row style processorpublic StyleProcessor<ResultSet> getStyleProcessor()
StyleProcessorpublic void close()
throws IOException
close 在类中 SheetIOException - if I/O error occurprotected void resetBlockData()
resetBlockData 在类中 Sheetprotected Column[] getHeaderColumns()
getHeaderColumns 在类中 Sheetprotected int findByKey(ResultSetMetaData metaData, String key) throws SQLException
SQLExceptionCopyright © 2023. All rights reserved.