Class Query<T>

  • Direct Known Subclasses:
    PreparedQuery

    public class Query<T>
    extends Object
    A query.

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

    • Field Detail

      • __typeArg_0

        public final TypeArg<T> __typeArg_0
    • Constructor Detail

      • Query

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

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

      • getDelegate

        public io.vertx.sqlclient.Query getDelegate()
      • 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.

      • 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)