public interface PgPreparedQuery
Modifier and Type | Method and Description |
---|---|
<R> PgPreparedQuery |
batch(List<Tuple> argsList,
Collector<Row,?,R> collector,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgResult<R>>> handler)
Execute a batch.
|
PgPreparedQuery |
batch(List<Tuple> argsList,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
Execute a batch.
|
void |
close()
Close the prepared query and release its resources.
|
void |
close(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Like
close() but notifies the completionHandler when it's closed. |
PgStream<Row> |
createStream(int fetch,
Tuple args)
Execute the prepared query with a cursor and createStream the result.
|
default PgCursor |
cursor() |
PgCursor |
cursor(Tuple args)
Create a cursor with the provided
arguments . |
default <R> PgPreparedQuery |
execute(Collector<Row,?,R> collector,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgResult<R>>> handler)
Calls
execute(Tuple, Collector, Handler) with an empty tuple argument. |
default PgPreparedQuery |
execute(io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
Calls
execute(Tuple, Handler) with an empty tuple argument. |
<R> PgPreparedQuery |
execute(Tuple args,
Collector<Row,?,R> collector,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgResult<R>>> handler)
Create a cursor with the provided
arguments . |
PgPreparedQuery |
execute(Tuple args,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
Create a cursor with the provided
arguments . |
default PgPreparedQuery execute(io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
execute(Tuple, Handler)
with an empty tuple argument.default <R> PgPreparedQuery execute(Collector<Row,?,R> collector, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgResult<R>>> handler)
execute(Tuple, Collector, Handler)
with an empty tuple argument.PgPreparedQuery execute(Tuple args, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
arguments
.args
- the list of arguments<R> PgPreparedQuery execute(Tuple args, Collector<Row,?,R> collector, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgResult<R>>> handler)
arguments
.args
- the list of argumentscollector
- the collectordefault PgCursor cursor()
fetch
size and empty argumentsPgCursor cursor(Tuple args)
arguments
.args
- the list of argumentsPgStream<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 argumentsPgPreparedQuery batch(List<Tuple> argsList, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
argsList
- the list of tuple for the batch<R> PgPreparedQuery batch(List<Tuple> argsList, Collector<Row,?,R> collector, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgResult<R>>> handler)
argsList
- the list of tuple for the batchcollector
- the collectorvoid close()
Copyright © 2019 Eclipse. All rights reserved.