public class JDBCASCIITableAware extends Object implements IASCIITableAware
| 构造器和说明 |
|---|
JDBCASCIITableAware(Connection connection,
String sql)
Instantiates a new Jdbcascii table aware.
|
JDBCASCIITableAware(ResultSet resultSet)
Instantiates a new Jdbcascii table aware.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
formatData(ASCIITableHeader header,
int row,
int col,
Object data)
Format data string.
|
List<List<Object>> |
getData()
Gets data.
|
List<ASCIITableHeader> |
getHeaders()
Gets headers.
|
public JDBCASCIITableAware(Connection connection, String sql)
connection - the connectionsql - the sqlpublic JDBCASCIITableAware(ResultSet resultSet)
resultSet - the result setpublic List<List<Object>> getData()
IASCIITableAwaregetData 在接口中 IASCIITableAwarepublic List<ASCIITableHeader> getHeaders()
IASCIITableAwaregetHeaders 在接口中 IASCIITableAwarepublic String formatData(ASCIITableHeader header, int row, int col, Object data)
IASCIITableAwareformatData 在接口中 IASCIITableAwareheader - the p 0row - the p 1col - the p 2data - the p 3Copyright © 2018. All rights reserved.