Package io.vertx.mutiny.sqlclient
Class Query<T>
- java.lang.Object
-
- io.vertx.mutiny.sqlclient.Query<T>
-
- Direct Known Subclasses:
PreparedQuery
public class Query<T> extends Object
A query. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<Query>
__TYPE_ARG
TypeArg<T>
__typeArg_0
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
io.smallrye.mutiny.Uni<T>
execute()
Execute the query.T
executeAndAwait()
Blocking variant ofexecute()
.void
executeAndForget()
Variant ofexecute()
that ignores the result of the operation.io.vertx.sqlclient.Query
getDelegate()
int
hashCode()
<U> Query<RowSet<U>>
mapping(Function<Row,U> mapper)
static <T> Query<T>
newInstance(io.vertx.sqlclient.Query arg)
static <T> Query<T>
newInstance(io.vertx.sqlclient.Query arg, TypeArg<T> __typeArg_T)
String
toString()
-
-
-
Method Detail
-
getDelegate
public io.vertx.sqlclient.Query getDelegate()
-
execute
public io.smallrye.mutiny.Uni<T> execute()
Execute the query.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
executeAndAwait
public T executeAndAwait()
Blocking variant ofexecute()
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Returns:
- the T instance produced by the operation.
-
executeAndForget
public void executeAndForget()
-
newInstance
public static <T> Query<T> newInstance(io.vertx.sqlclient.Query arg)
-
-