Package io.vertx.sqlclient
Interface PreparedQuery<T>
-
- All Superinterfaces:
Query<T>
public interface PreparedQuery<T> extends Query<T>
A query for a prepared statement allowing parameterized execution of the query, this query will use a prepared statement.- Author:
- Julien Viet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <R> PreparedQuery<SqlResult<R>>
collecting(java.util.stream.Collector<Row,?,R> collector)
Use the specifiedcollector
for collecting the query result to<R>
.Future<T>
execute(Tuple tuple)
Execute the query.Future<T>
executeBatch(List<Tuple> batch)
Execute the query with a batch of tuples.<U> PreparedQuery<RowSet<U>>
mapping(java.util.function.Function<Row,U> mapper)
-
-
-
Method Detail
-
execute
Future<T> execute(Tuple tuple)
Execute the query.- Returns:
- a future notified with the result
-
executeBatch
Future<T> executeBatch(List<Tuple> batch)
Execute the query with a batch of tuples.- Parameters:
batch
- the batch of tuples- Returns:
- a future notified with the result
-
collecting
<R> PreparedQuery<SqlResult<R>> collecting(java.util.stream.Collector<Row,?,R> collector)
Use the specifiedcollector
for collecting the query result to<R>
.- Specified by:
collecting
in interfaceQuery<T>
-
-