public interface SQLRowStream extends ReadStream<JsonArray>
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the stream/underlying cursor(s).
|
void |
close(Handler<AsyncResult<Void>> handler)
Closes the stream/underlying cursor(s).
|
int |
column(String name)
Will convert the column name to the json array index.
|
List<String> |
columns()
Returns all column names available in the underlying resultset.
|
SQLRowStream |
endHandler(Handler<Void> endHandler)
Set an end handler.
|
SQLRowStream |
exceptionHandler(Handler<Throwable> handler)
Set an exception handler on the read stream.
|
SQLRowStream |
handler(Handler<JsonArray> handler)
Set a data handler.
|
void |
moreResults()
Request for more results if available
|
SQLRowStream |
pause()
Pause the
ReadSupport . |
SQLRowStream |
resultSetClosedHandler(Handler<Void> handler)
Event handler when a resultset is closed.
|
SQLRowStream |
resume()
Resume reading.
|
SQLRowStream exceptionHandler(Handler<Throwable> handler)
ReadStream
exceptionHandler
in interface ReadStream<JsonArray>
exceptionHandler
in interface StreamBase
handler
- the exception handlerSQLRowStream handler(Handler<JsonArray> handler)
ReadStream
handler
in interface ReadStream<JsonArray>
SQLRowStream pause()
ReadStream
ReadSupport
. While it's paused, no data will be sent to the dataHandler
pause
in interface ReadStream<JsonArray>
SQLRowStream resume()
ReadStream
ReadSupport
has been paused, reading will recommence on it.resume
in interface ReadStream<JsonArray>
SQLRowStream endHandler(Handler<Void> endHandler)
ReadStream
endHandler
in interface ReadStream<JsonArray>
int column(String name)
name
- the column nameList<String> columns()
SQLRowStream resultSetClosedHandler(Handler<Void> handler)
handler
- called when the current result set is closedvoid moreResults()
void close()
void close(Handler<AsyncResult<Void>> handler)
handler
- called when the stream/underlying cursor(s) is(are) closedCopyright © 2017. All rights reserved.