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
StatementSheetSheet.Column| 限定符和类型 | 字段和说明 |
|---|---|
protected ResultSet |
rs |
autoOdd, autoSize, cellValueAndStyle, columns, comments, copyCount, copySheet, extProp, extPropMark, forceExport, headerReady, headStyle, headStyleIndex, hidden, id, LOGGER, name, nonHeader, oddFill, relManager, rowBlock, rows, sheetWriter, shouldClose, showGridLines, waterMark, width, workbook| 构造器和说明 |
|---|
ResultSetSheet()
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 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, checkColumnLimit, clone, createComments, defaultHeadStyle, defaultHeadStyleIndex, findRel, fixSize, fixSize, forceExport, getAndSortHeaderColumns, getAutoOdd, getAutoSize, getComments, getCopySheetName, getDefaultWidth, getExtPropAsMap, getExtPropValue, getFileName, getForceExport, getHeadStyle, getHeadStyleIndex, getId, getName, getNonHeader, getOddFill, getRowBlockSize, getRowLimit, getSheetWriter, getSst, getWaterMark, getWorkbook, hasHeaderColumns, hidden, hideGridLines, ignoreHeader, int2Col, isAutoSize, isHidden, isShowGridLines, markExtProp, mergeHeaderCellsIfEquals, nextBlock, nonOrIntDefault, paging, putAllExtProp, putExtProp, putExtPropIfAbsent, resetCommonProperties, reverseHeadColumn, search, setAutoOdd, setCellValueAndStyle, setColumns, setHeadStyle, setHeadStyle, setHeadStyle, setHeadStyle, setHeadStyleIndex, setId, setName, setOddFill, setSheetWriter, setWaterMark, setWorkbook, showGridLines, size, sortColumns, what, what, writeToprotected ResultSet rs
public ResultSetSheet()
public ResultSetSheet(String name)
name - the worksheet namepublic 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 在类中 SheetCopyright © 2022. All rights reserved.