Class PreparedQuery<T>
- All Implemented Interfaces:
MutinyDelegate
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPreparedQuery
(io.vertx.sqlclient.PreparedQuery delegate) PreparedQuery
(io.vertx.sqlclient.PreparedQuery delegate, TypeArg<T> typeArg_0) PreparedQuery
(Object delegate, TypeArg<T> typeArg_0) -
Method Summary
Modifier and TypeMethodDescriptionboolean
io.smallrye.mutiny.Uni<T>
execute()
Execute the query.io.smallrye.mutiny.Uni<T>
Execute the query.Blocking variant ofQuery.execute()
.executeAndAwait
(Tuple tuple) Blocking variant ofexecute(io.vertx.mutiny.sqlclient.Tuple)
.void
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.executeBatchAndAwait
(List<Tuple> batch) Blocking variant ofexecuteBatch(List)
.void
executeBatchAndForget
(List<Tuple> batch) Variant ofexecuteBatch(List)
that ignores the result of the operation.io.vertx.sqlclient.PreparedQuery
int
hashCode()
<U> PreparedQuery<RowSet<U>>
static <T> PreparedQuery<T>
newInstance
(io.vertx.sqlclient.PreparedQuery arg) static <T> PreparedQuery<T>
newInstance
(io.vertx.sqlclient.PreparedQuery arg, TypeArg<T> __typeArg_T) toString()
Methods inherited from class io.vertx.mutiny.sqlclient.Query
newInstance, newInstance
-
Field Details
-
__TYPE_ARG
-
__typeArg_0
-
-
Constructor Details
-
PreparedQuery
public PreparedQuery(io.vertx.sqlclient.PreparedQuery delegate) -
PreparedQuery
-
PreparedQuery
-
-
Method Details
-
getDelegate
public io.vertx.sqlclient.PreparedQuery getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Overrides:
getDelegate
in classQuery<T>
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
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
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
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
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
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
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
Blocking variant ofexecuteBatch(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
Variant ofexecuteBatch(List)
that ignores the result of the operation.This method subscribes on the result of
executeBatch(List)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromexecuteBatch(List)
but you don't need to compose it with other operations.- Parameters:
batch
- the batch of tuples
-
mapping
-
newInstance
-
newInstance
public static <T> PreparedQuery<T> newInstance(io.vertx.sqlclient.PreparedQuery arg, TypeArg<T> __typeArg_T)
-