public class StatementSheet extends ResultSetSheet
ResultSetSheet, and will be obtained from
MetaData if no header information is given. When MetaData
cannot be obtained, the header name will be setting as 1, 2,
and 3...
The Connection will not be actively closed, but the Statement
and ResultSet will be closed with worksheet.
ResultSetSheetSheet.ColumnrsautoOdd, 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| 构造器和说明 |
|---|
StatementSheet()
Constructor worksheet
|
StatementSheet(Connection con,
String sql)
Constructor worksheet
|
StatementSheet(Connection con,
String sql,
Column... columns)
Constructor worksheet
|
StatementSheet(Connection con,
String sql,
ParamProcessor pp)
Constructor worksheet
|
StatementSheet(Connection con,
String sql,
ParamProcessor pp,
Column... columns)
Constructor worksheet
|
StatementSheet(String name)
Constructor worksheet
|
StatementSheet(String name,
Column... columns)
Constructor worksheet
|
StatementSheet(String name,
Connection con,
String sql)
Constructor worksheet
|
StatementSheet(String name,
Connection con,
String sql,
Column... columns)
Constructor worksheet
|
StatementSheet(String name,
Connection con,
String sql,
ParamProcessor pp)
Constructor worksheet
|
StatementSheet(String name,
Connection con,
String sql,
ParamProcessor pp,
Column... columns)
Constructor worksheet
|
StatementSheet(String name,
WaterMark waterMark,
Column... columns)
Constructor worksheet
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Release resources
will close the
Statement and ResultSet |
StatementSheet |
setPs(PreparedStatement ps)
Setting PreparedStatement
|
void |
writeTo(Path path)
write worksheet data to path
|
columnTypeToClass, getHeaderColumns, getStyleProcessor, resetBlockData, setRs, setStyleProcessoraddRel, 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, whatpublic StatementSheet()
public StatementSheet(String name)
name - the worksheet namepublic StatementSheet(String name, Column... columns)
name - the worksheet namecolumns - the header infopublic StatementSheet(String name, WaterMark waterMark, Column... columns)
name - the worksheet namewaterMark - the water markcolumns - the header infopublic StatementSheet(Connection con, String sql)
con - the Connectionsql - the query SQL stringpublic StatementSheet(String name, Connection con, String sql)
name - the worksheet namecon - the Connectionsql - the query SQL stringpublic StatementSheet(Connection con, String sql, ParamProcessor pp)
con - the Connectionsql - the query SQL stringpp - the sql parameter replacement function-interfacepublic StatementSheet(String name, Connection con, String sql, ParamProcessor pp)
name - the worksheet namecon - the Connectionsql - the query SQL stringpp - the sql parameter replacement function-interfacepublic StatementSheet(Connection con, String sql, Column... columns)
con - the Connectionsql - the sql stringcolumns - the header columnpublic StatementSheet(String name, Connection con, String sql, Column... columns)
name - the worksheet namecon - the Connectionsql - the sql stringcolumns - the header columnpublic StatementSheet(Connection con, String sql, ParamProcessor pp, Column... columns)
con - the Connectionsql - the sql stringpp - the sql parameter replacement function-interfacecolumns - the header columnpublic StatementSheet(String name, Connection con, String sql, ParamProcessor pp, Column... columns)
name - the worksheet namecon - the Connectionsql - the sql stringpp - the sql parameter replacement function-interfacecolumns - the header columnpublic StatementSheet setPs(PreparedStatement ps)
ps - PreparedStatementStatementSheetpublic void close()
throws IOException
Statement and ResultSetclose 在类中 ResultSetSheetIOException - if I/O error occurpublic void writeTo(Path path) throws IOException
writeTo 在接口中 StorablewriteTo 在类中 Sheetpath - the storage pathIOException - if I/O error occurCopyright © 2022. All rights reserved.