public final class MemoryQueryResult extends Object implements QueryResult
| 构造器和说明 |
|---|
MemoryQueryResult(ResultSet resultSet) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
getCalendarValue(int columnIndex,
Class<?> type,
Calendar calendar)
Get calendar value.
|
int |
getColumnCount()
Get column count.
|
String |
getColumnLabel(int columnIndex)
Get column label.
|
String |
getColumnName(int columnIndex)
Get column name.
|
InputStream |
getInputStream(int columnIndex,
String type)
Get InputStream.
|
ResultSetMetaData |
getResultSetMetaData()
Get JDBC ResultSetMetaData.
|
Object |
getValue(int columnIndex,
Class<?> type)
Get data value.
|
boolean |
next()
iterate next data.
|
boolean |
wasNull()
Judge ResultSet is null or not.
|
public MemoryQueryResult(ResultSet resultSet) throws SQLException
SQLExceptionpublic ResultSetMetaData getResultSetMetaData()
QueryResultgetResultSetMetaData 在接口中 QueryResultpublic boolean next()
QueryResultnext 在接口中 QueryResultpublic Object getValue(int columnIndex, Class<?> type)
QueryResultgetValue 在接口中 QueryResultcolumnIndex - column indextype - class type of data valuepublic Object getCalendarValue(int columnIndex, Class<?> type, Calendar calendar)
QueryResultgetCalendarValue 在接口中 QueryResultcolumnIndex - column indextype - class type of data valuecalendar - calendarpublic InputStream getInputStream(int columnIndex, String type)
QueryResultgetInputStream 在接口中 QueryResultcolumnIndex - column indextype - class type of data valuepublic boolean wasNull()
QueryResultwasNull 在接口中 QueryResultpublic int getColumnCount()
throws SQLException
QueryResultgetColumnCount 在接口中 QueryResultSQLException - SQL Exceptionpublic String getColumnName(int columnIndex) throws SQLException
QueryResultgetColumnName 在接口中 QueryResultcolumnIndex - column indexSQLException - SQL Exceptionpublic String getColumnLabel(int columnIndex) throws SQLException
QueryResultgetColumnLabel 在接口中 QueryResultcolumnIndex - column indexSQLException - SQL ExceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.