public final class MySQLPacketQueryResult extends Object implements QueryResult
| Constructor and Description |
|---|
MySQLPacketQueryResult(CommandResponsePackets packets,
ResultSet resultSet) |
| 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 MySQLPacketQueryResult(CommandResponsePackets packets, ResultSet resultSet)
public boolean next()
throws SQLException
QueryResultnext in interface QueryResultSQLException - SQL Exceptionpublic int getColumnCount()
QueryResultgetColumnCount in interface QueryResultpublic String getColumnLabel(int columnIndex)
QueryResultgetColumnLabel in interface QueryResultcolumnIndex - column indexpublic Object getValue(int columnIndex, Class<?> type)
QueryResultgetValue in interface QueryResultcolumnIndex - column indextype - class type of data valuepublic Object getValue(String columnLabel, Class<?> type)
QueryResultgetValue in interface QueryResultcolumnLabel - column labeltype - class type of data valuepublic Object getCalendarValue(int columnIndex, Class<?> type, Calendar calendar)
QueryResultgetCalendarValue in interface QueryResultcolumnIndex - column indextype - class type of data valuecalendar - calendarpublic Object getCalendarValue(String columnLabel, Class<?> type, Calendar calendar)
QueryResultgetCalendarValue in interface QueryResultcolumnLabel - column labeltype - class type of data valuecalendar - calendarpublic InputStream getInputStream(int columnIndex, String type)
QueryResultgetInputStream in interface QueryResultcolumnIndex - column indextype - class type of data valuepublic InputStream getInputStream(String columnLabel, String type)
QueryResultgetInputStream in interface QueryResultcolumnLabel - column labeltype - class type of data valuepublic boolean wasNull()
QueryResultwasNull in interface QueryResultCopyright © 2018. All rights reserved.