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, headerReady, headStyle, hidden, id, LOGGER, name, oddFill, relManager, rowBlock, rows, sheetWriter, shouldClose, waterMark, width, workbook| 构造器和说明 |
|---|
ResultSetSheet()
Constructor worksheet
|
ResultSetSheet(ResultSet rs)
Constructor worksheet
|
ResultSetSheet(ResultSet rs,
Sheet.Column... columns)
Constructor worksheet
|
ResultSetSheet(ResultSet rs,
WaterMark waterMark,
Sheet.Column... columns)
Constructor worksheet
|
ResultSetSheet(String name)
Constructor worksheet
|
ResultSetSheet(String name,
ResultSet rs)
Constructor worksheet
|
ResultSetSheet(String name,
ResultSet rs,
Sheet.Column... columns)
Constructor worksheet
|
ResultSetSheet(String name,
ResultSet rs,
WaterMark waterMark,
Sheet.Column... columns)
Constructor worksheet
|
ResultSetSheet(String name,
Sheet.Column... columns)
Constructor worksheet
|
ResultSetSheet(String name,
WaterMark waterMark,
Sheet.Column... columns)
Constructor worksheet
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Release resources
|
protected Class<?> |
columnTypeToClass(int type)
Convert
Types to java type |
Sheet.Column[] |
getHeaderColumns()
Get header information, get from MetaData if not specified
The copy sheet will use the parent worksheet header information.
|
protected void |
resetBlockData()
Reset the row-block data
|
ResultSetSheet |
setRs(ResultSet rs)
Setting ResultSet
|
addRel, afterSheetAccess, autoSize, cancelOddStyle, checkColumnLimit, clone, createComments, defaultHeadStyle, findRel, fixSize, fixSize, getAutoOdd, getAutoSize, getComments, getCopySheetName, getDefaultWidth, getFileName, getId, getName, getOddFill, getRowBlockSize, getSst, getWaterMark, getWorkbook, hasHeaderColumns, hasNonHeader, hidden, int2Col, isAutoSize, isHidden, nextBlock, nonOrIntDefault, paging, setAutoOdd, setCellValueAndStyle, setColumns, setHeadStyle, setHeadStyle, setHeadStyle, setHeadStyle, setId, setName, setOddFill, setSheetWriter, setWaterMark, setWorkbook, size, what, what, writeToprotected ResultSet rs
public ResultSetSheet()
public ResultSetSheet(String name)
name - the worksheet namepublic ResultSetSheet(String name, Sheet.Column... columns)
name - the worksheet namecolumns - the header infopublic ResultSetSheet(String name, WaterMark waterMark, Sheet.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, Sheet.Column... columns)
rs - the ResultSetcolumns - the header infopublic ResultSetSheet(String name, ResultSet rs, Sheet.Column... columns)
name - the worksheet namers - the ResultSetcolumns - the header infopublic ResultSetSheet(ResultSet rs, WaterMark waterMark, Sheet.Column... columns)
rs - the ResultSetwaterMark - the water markcolumns - the header infopublic ResultSetSheet(String name, ResultSet rs, WaterMark waterMark, Sheet.Column... columns)
name - the worksheet namers - the ResultSetwaterMark - the water markcolumns - the header infopublic ResultSetSheet setRs(ResultSet rs)
rs - the ResultSetResultSetSheetpublic void close()
throws IOException
close 在类中 SheetIOException - if I/O error occurprotected void resetBlockData()
resetBlockData 在类中 Sheetpublic Sheet.Column[] getHeaderColumns()
getHeaderColumns 在类中 SheetCopyright © 2020. All rights reserved.