Class Query<T>

java.lang.Object
io.vertx.mutiny.sqlclient.Query<T>
All Implemented Interfaces:
MutinyDelegate
Direct Known Subclasses:
PreparedQuery

public class Query<T> extends Object implements MutinyDelegate
A query.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final TypeArg<Query> __TYPE_ARG
    • __typeArg_0

      public final TypeArg<T> __typeArg_0
  • Constructor Details

    • Query

      public Query(io.vertx.sqlclient.Query delegate)
    • Query

      public Query(Object delegate, TypeArg<T> typeArg_0)
    • Query

      public Query(io.vertx.sqlclient.Query delegate, TypeArg<T> typeArg_0)
  • Method Details

    • getDelegate

      public io.vertx.sqlclient.Query getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • execute

      @CheckReturnValue 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 of 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).

      Returns:
      the T instance produced by the operation.
    • executeAndForget

      public void executeAndForget()
      Variant of execute() that ignores the result of the operation.

      This method subscribes on the result of execute(), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation from execute() but you don't need to compose it with other operations.

    • mapping

      public <U> Query<RowSet<U>> mapping(Function<Row,U> mapper)
      Parameters:
      mapper -
      Returns:
    • newInstance

      public static <T> Query<T> newInstance(io.vertx.sqlclient.Query arg)
    • newInstance

      public static <T> Query<T> newInstance(io.vertx.sqlclient.Query arg, TypeArg<T> __typeArg_T)