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) |
int |
getRows() |
ValueObject |
getValueObject(int i)
gets the value at position i in the result set. i starts at zero!
|
boolean |
isAfterLast() |
boolean |
isBeforeFirst() |
boolean |
next() |
getColumnInformation, getMessage, getResultSetType, getRowPointer, getWarnings, moveRowPointerTo
isClosed
public ValueObject[] values
public static StreamingSelectResult createStreamingSelectResult(ResultSetPacket packet, PacketFetcher packetFetcher, MySQLProtocol protocol) throws IOException, QueryException
packet
- the result set packet from the serverpacketFetcher
- packetfetcherprotocol
- the current connection protocol classIOException
- when something goes wrong while reading/writing from the serverQueryException
- if there is an actual active result on the current connectionpublic boolean next() throws IOException, QueryException
next
in class SelectQueryResult
IOException
QueryException
public void close()
close
in class QueryResult
public ValueObject getValueObject(int i) throws NoSuchColumnException
getValueObject
in class SelectQueryResult
i
- index, starts at 0NoSuchColumnException
- if the column does not existpublic int getRows()
getRows
in class QueryResult
public boolean isBeforeFirst()
isBeforeFirst
in class SelectQueryResult
public boolean isAfterLast()
isAfterLast
in class SelectQueryResult
Copyright © 2015. All rights reserved.