public interface Cursor
Modifier and Type | Method and Description |
---|---|
default void |
close()
Release the cursor.
|
void |
close(Handler<AsyncResult<Void>> completionHandler)
Like
close() but with a completionHandler called when the cursor has been released. |
boolean |
hasMore()
Returns
true when the cursor has results in progress and the read(int, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.sqlclient.RowSet<io.vertx.sqlclient.Row>>>) should be called to retrieve
them. |
boolean |
isClosed() |
void |
read(int count,
Handler<AsyncResult<RowSet<Row>>> handler)
Read rows from the cursor, the result is provided asynchronously to the
handler . |
void read(int count, Handler<AsyncResult<RowSet<Row>>> handler)
handler
.count
- the amount of rows to readhandler
- the handler for the resultboolean hasMore()
true
when the cursor has results in progress and the read(int, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.sqlclient.RowSet<io.vertx.sqlclient.Row>>>)
should be called to retrieve
them.default void close()
void close(Handler<AsyncResult<Void>> completionHandler)
close()
but with a completionHandler
called when the cursor has been released.boolean isClosed()
Copyright © 2023 Eclipse. All rights reserved.