public interface PreparedStatement
From a prepared statement you can
query()
to create and execute a PreparedQuery
cursor()
to create a Cursor
createStream(int)
to create a RowStream
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the prepared query and release its resources.
|
void |
close(Handler<AsyncResult<Void>> completionHandler)
Like
close() but notifies the completionHandler when it's closed. |
default RowStream<Row> |
createStream(int fetch)
Like
createStream(int, Tuple) but with empty arguments. |
RowStream<Row> |
createStream(int fetch,
Tuple args)
Execute the prepared query with a cursor and createStream the result.
|
default Cursor |
cursor()
Like
cursor(Tuple) but with empty arguments. |
Cursor |
cursor(Tuple args)
Create a cursor with the provided
arguments . |
PreparedQuery<RowSet<Row>> |
query()
Create a prepared query for this statement.
|
PreparedQuery<RowSet<Row>> query()
default Cursor cursor()
cursor(Tuple)
but with empty arguments.Cursor cursor(Tuple args)
arguments
.args
- the list of argumentsdefault RowStream<Row> createStream(int fetch)
createStream(int, Tuple)
but with empty arguments.RowStream<Row> createStream(int fetch, Tuple args)
fetch
size to fetch the results.
Note: this requires to be in a transaction, since cursors require it.fetch
- the cursor fetch sizeargs
- the prepared query argumentsvoid close()
void close(Handler<AsyncResult<Void>> completionHandler)
close()
but notifies the completionHandler
when it's closed.Copyright © 2023 Eclipse. All rights reserved.