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.

Author:
Julien Viet
See Also:
  • Query
  • 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<T> delegate)
      Create a new instance of Query delegating to the given (non-null) instance of Query.
    • Query

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

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

    • getDelegate

      public io.vertx.sqlclient.Query<T> getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • execute

      @CheckReturnValue public io.smallrye.mutiny.Uni<T> execute()
      Execute the query.

      Unlike the bare Vert.x variant, this method returns a Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.

      Don't forget to subscribe on it to trigger the operation.

      Returns:
      A Uni representing the asynchronous result of this operation.
      See Also:
      • Query.execute()
    • executeAndAwait

      public T executeAndAwait()
      Execute the query.

      Unlike the bare Vert.x variant, this method returns a Query. This method awaits indefinitely 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 operation result
      See Also:
      • Query.execute()
    • executeAndForget

      public Query<T> executeAndForget()
      Execute the query.

      Unlike the bare Vert.x variant, this method ignores the Query result or any failure.

      Returns:
      The current instance to chain operations if needed.
      See Also:
      • Query.execute()
    • mapping

      public <U> Query<RowSet<U>> mapping(Function<Row,U> mapper)
      Use the specified mapper for mapping Row to <U>.
    • newInstance

      public static <T> Query<T> newInstance(io.vertx.sqlclient.Query<T> delegate)
      Creates a new instance of the Query.
    • newInstance

      public static <T> Query<T> newInstance(io.vertx.sqlclient.Query<T> delegate, TypeArg<T> typeArg_0)
      Creates a new instance of the Query.
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object