public final class MySQLPacketStatementExecuteQueryResult extends Object implements QueryResult
Constructor and Description |
---|
MySQLPacketStatementExecuteQueryResult(CommandResponsePackets packets,
ResultSet resultSet,
List<ColumnType> columnTypes) |
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 MySQLPacketStatementExecuteQueryResult(CommandResponsePackets packets, ResultSet resultSet, List<ColumnType> columnTypes)
public boolean next() throws SQLException
QueryResult
next
in interface QueryResult
SQLException
- SQL Exceptionpublic int getColumnCount()
QueryResult
getColumnCount
in interface QueryResult
public String getColumnLabel(int columnIndex)
QueryResult
getColumnLabel
in interface QueryResult
columnIndex
- column indexpublic Object getValue(int columnIndex, Class<?> type)
QueryResult
getValue
in interface QueryResult
columnIndex
- column indextype
- class type of data valuepublic Object getValue(String columnLabel, Class<?> type)
QueryResult
getValue
in interface QueryResult
columnLabel
- column labeltype
- class type of data valuepublic Object getCalendarValue(int columnIndex, Class<?> type, Calendar calendar)
QueryResult
getCalendarValue
in interface QueryResult
columnIndex
- column indextype
- class type of data valuecalendar
- calendarpublic Object getCalendarValue(String columnLabel, Class<?> type, Calendar calendar)
QueryResult
getCalendarValue
in interface QueryResult
columnLabel
- column labeltype
- class type of data valuecalendar
- calendarpublic InputStream getInputStream(int columnIndex, String type)
QueryResult
getInputStream
in interface QueryResult
columnIndex
- column indextype
- class type of data valuepublic InputStream getInputStream(String columnLabel, String type)
QueryResult
getInputStream
in interface QueryResult
columnLabel
- column labeltype
- class type of data valuepublic boolean wasNull()
QueryResult
wasNull
in interface QueryResult
Copyright © 2018. All rights reserved.