public interface PreparedQuery<T> extends Query<T>
| Modifier and Type | Method and Description |
|---|---|
<R> PreparedQuery<SqlResult<R>> |
collecting(java.util.stream.Collector<Row,?,R> collector)
Use the specified
collector for collecting the query result to <R>. |
Future<T> |
execute(Tuple tuple)
Like
Query.execute(Handler) but returns a Future of the asynchronous result |
void |
execute(Tuple tuple,
Handler<AsyncResult<T>> handler)
Execute the query.
|
Future<T> |
executeBatch(List<Tuple> batch)
Like
executeBatch(List, Handler) but returns a Future of the asynchronous result |
void |
executeBatch(List<Tuple> batch,
Handler<AsyncResult<T>> handler)
Execute the query with a batch of tuples.
|
<U> PreparedQuery<RowSet<U>> |
mapping(java.util.function.Function<Row,U> mapper)
|
void execute(Tuple tuple, Handler<AsyncResult<T>> handler)
handler - the handler receiving the responseFuture<T> execute(Tuple tuple)
Query.execute(Handler) but returns a Future of the asynchronous resultvoid executeBatch(List<Tuple> batch, Handler<AsyncResult<T>> handler)
batch - the batch of tupleshandler - the handler receiving the responseFuture<T> executeBatch(List<Tuple> batch)
executeBatch(List, Handler) but returns a Future of the asynchronous result<R> PreparedQuery<SqlResult<R>> collecting(java.util.stream.Collector<Row,?,R> collector)
collector for collecting the query result to <R>.collecting in interface Query<T><U> PreparedQuery<RowSet<U>> mapping(java.util.function.Function<Row,U> mapper)
Copyright © 2021 Eclipse. All rights reserved.