public class StreamingSelectResult extends SelectQueryResult
| Modifier and Type | Field and Description |
|---|---|
ValueObject[] |
values |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static StreamingSelectResult |
createStreamingSelectResult(ResultSetPacket packet,
PacketFetcher packetFetcher,
MySQLProtocol protocol)
create StreamingResultSet - precondition is that a result set packet has been read
|
int |
getRows() |
ValueObject |
getValueObject(int i)
gets the value at position i in the result set.
|
boolean |
isAfterLast() |
boolean |
isBeforeFirst() |
boolean |
next() |
getColumnInformation, getMessage, getResultSetType, getRowPointer, getWarnings, moveRowPointerToisClosedpublic ValueObject[] values
public static StreamingSelectResult createStreamingSelectResult(ResultSetPacket packet, PacketFetcher packetFetcher, MySQLProtocol protocol) throws IOException, QueryException
packet - the result set packet from the serverIOException - when something goes wrong while reading/writing from the serverQueryExceptionpublic boolean next()
throws IOException,
QueryException
next in class SelectQueryResultIOExceptionQueryExceptionpublic void close()
close in class QueryResultpublic ValueObject getValueObject(int i) throws NoSuchColumnException
getValueObject in class SelectQueryResulti - index, starts at 0NoSuchColumnException - if the column does not existpublic int getRows()
getRows in class QueryResultpublic boolean isBeforeFirst()
isBeforeFirst in class SelectQueryResultpublic boolean isAfterLast()
isAfterLast in class SelectQueryResultCopyright © 2014. All rights reserved.