Class PreparedQuery<T>
- java.lang.Object
-
- io.vertx.mutiny.sqlclient.Query<T>
-
- io.vertx.mutiny.sqlclient.PreparedQuery<T>
-
public class PreparedQuery<T> extends Query<T>
A query for a prepared statement allowing parameterized execution of the query, this query will use a prepared statement. 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<PreparedQuery>
__TYPE_ARG
TypeArg<T>
__typeArg_0
-
Constructor Summary
Constructors Constructor Description PreparedQuery(io.vertx.sqlclient.PreparedQuery delegate)
PreparedQuery(io.vertx.sqlclient.PreparedQuery delegate, TypeArg<T> typeArg_0)
PreparedQuery(Object delegate, 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.io.smallrye.mutiny.Uni<T>
execute(Tuple tuple)
Execute the query.T
executeAndAwait()
Blocking variant ofQuery.execute()
.T
executeAndAwait(Tuple tuple)
Blocking variant ofexecute(io.vertx.mutiny.sqlclient.Tuple)
.void
executeAndForget()
Variant ofQuery.execute()
that ignores the result of the operation.void
executeAndForget(Tuple tuple)
Variant ofexecute(io.vertx.mutiny.sqlclient.Tuple)
that ignores the result of the operation.io.smallrye.mutiny.Uni<T>
executeBatch(List<Tuple> batch)
Execute the query with a batch of tuples.T
executeBatchAndAwait(List<Tuple> batch)
Blocking variant ofio.vertx.mutiny.sqlclient.PreparedQuery#executeBatch(List
.) void
executeBatchAndForget(List<Tuple> batch)
Variant ofio.vertx.mutiny.sqlclient.PreparedQuery#executeBatch(List
that ignores the result of the operation.) io.vertx.sqlclient.PreparedQuery
getDelegate()
int
hashCode()
<U> PreparedQuery<RowSet<U>>
mapping(Function<Row,U> mapper)
static <T> PreparedQuery<T>
newInstance(io.vertx.sqlclient.PreparedQuery arg)
static <T> PreparedQuery<T>
newInstance(io.vertx.sqlclient.PreparedQuery arg, TypeArg<T> __typeArg_T)
String
toString()
-
Methods inherited from class io.vertx.mutiny.sqlclient.Query
newInstance, newInstance
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<PreparedQuery> __TYPE_ARG
-
-
Method Detail
-
getDelegate
public io.vertx.sqlclient.PreparedQuery getDelegate()
- Overrides:
getDelegate
in classQuery<T>
-
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.
-
executeAndAwait
public T executeAndAwait()
Blocking variant ofQuery.execute()
.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).
- Overrides:
executeAndAwait
in classQuery<T>
- Returns:
- the T instance produced by the operation.
-
executeAndForget
public void executeAndForget()
Variant ofQuery.execute()
that ignores the result of the operation.This method subscribes on the result of
Query.execute()
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromQuery.execute()
but you don't need to compose it with other operations.- Overrides:
executeAndForget
in classQuery<T>
-
execute
public io.smallrye.mutiny.Uni<T> execute(Tuple tuple)
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.- Parameters:
tuple
-- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
executeAndAwait
public T executeAndAwait(Tuple tuple)
Blocking variant ofexecute(io.vertx.mutiny.sqlclient.Tuple)
.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).
- Parameters:
tuple
-- Returns:
- the T instance produced by the operation.
-
executeAndForget
public void executeAndForget(Tuple tuple)
Variant ofexecute(io.vertx.mutiny.sqlclient.Tuple)
that ignores the result of the operation.This method subscribes on the result of
execute(io.vertx.mutiny.sqlclient.Tuple)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromexecute(io.vertx.mutiny.sqlclient.Tuple)
but you don't need to compose it with other operations.- Parameters:
tuple
-
-
executeBatch
public io.smallrye.mutiny.Uni<T> executeBatch(List<Tuple> batch)
Execute the query with a batch of tuples.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
batch
- the batch of tuples- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
executeBatchAndAwait
public T executeBatchAndAwait(List<Tuple> batch)
Blocking variant ofio.vertx.mutiny.sqlclient.PreparedQuery#executeBatch(List
.) 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).
- Parameters:
batch
- the batch of tuples- Returns:
- the T instance produced by the operation.
-
executeBatchAndForget
public void executeBatchAndForget(List<Tuple> batch)
Variant ofio.vertx.mutiny.sqlclient.PreparedQuery#executeBatch(List
that ignores the result of the operation.) This method subscribes on the result of
io.vertx.mutiny.sqlclient.PreparedQuery#executeBatch(List
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation from) io.vertx.mutiny.sqlclient.PreparedQuery#executeBatch(List
but you don't need to compose it with other operations.) - Parameters:
batch
- the batch of tuples
-
mapping
public <U> PreparedQuery<RowSet<U>> mapping(Function<Row,U> mapper)
-
newInstance
public static <T> PreparedQuery<T> newInstance(io.vertx.sqlclient.PreparedQuery arg)
-
newInstance
public static <T> PreparedQuery<T> newInstance(io.vertx.sqlclient.PreparedQuery arg, TypeArg<T> __typeArg_T)
-
-