public final class JDBCQueryResult extends Object implements QueryResult
Constructor and Description |
---|
JDBCQueryResult() |
Modifier and Type | Method and Description |
---|---|
Object |
getCalendarValue(int columnIndex,
Class<?> type,
Calendar calendar)
Get calendar value.
|
Object |
getCalendarValue(String columnLabel,
Class<?> type,
Calendar calendar)
Get calendar value.
|
int |
getColumnCount()
Get column count.
|
String |
getColumnLabel(int columnIndex)
Get column label.
|
InputStream |
getInputStream(int columnIndex,
String type)
Get InputStream.
|
InputStream |
getInputStream(String columnLabel,
String type)
Get InputStream.
|
Object |
getValue(int columnIndex,
Class<?> type)
Get data value.
|
Object |
getValue(String columnLabel,
Class<?> type)
Get data value.
|
boolean |
next()
iterate next data.
|
boolean |
wasNull()
Adjust ResultSet is null or not.
|
public boolean next() throws SQLException
QueryResult
next
in interface QueryResult
SQLException
- SQL Exceptionpublic Object getValue(int columnIndex, Class<?> type) throws SQLException
QueryResult
getValue
in interface QueryResult
columnIndex
- column indextype
- class type of data valueSQLException
- SQL Exceptionpublic Object getValue(String columnLabel, Class<?> type) throws SQLException
QueryResult
getValue
in interface QueryResult
columnLabel
- column labeltype
- class type of data valueSQLException
- SQL Exceptionpublic Object getCalendarValue(int columnIndex, Class<?> type, Calendar calendar) throws SQLException
QueryResult
getCalendarValue
in interface QueryResult
columnIndex
- column indextype
- class type of data valuecalendar
- calendarSQLException
- SQL Exceptionpublic Object getCalendarValue(String columnLabel, Class<?> type, Calendar calendar) throws SQLException
QueryResult
getCalendarValue
in interface QueryResult
columnLabel
- column labeltype
- class type of data valuecalendar
- calendarSQLException
- SQL Exceptionpublic InputStream getInputStream(int columnIndex, String type) throws SQLException
QueryResult
getInputStream
in interface QueryResult
columnIndex
- column indextype
- class type of data valueSQLException
- SQL Exceptionpublic InputStream getInputStream(String columnLabel, String type) throws SQLException
QueryResult
getInputStream
in interface QueryResult
columnLabel
- column labeltype
- class type of data valueSQLException
- SQL Exceptionpublic boolean wasNull() throws SQLException
QueryResult
wasNull
in interface QueryResult
SQLException
- SQL Exceptionpublic int getColumnCount() throws SQLException
QueryResult
getColumnCount
in interface QueryResult
SQLException
- SQL Exceptionpublic String getColumnLabel(int columnIndex) throws SQLException
QueryResult
getColumnLabel
in interface QueryResult
columnIndex
- column indexSQLException
- SQL ExceptionCopyright © 2018. All rights reserved.