Class SQLHelper


  • public class SQLHelper
    extends Object

    SQLHelper class.

    Version:
    $Id: $Id
    Author:
    Long Dinh
    • Constructor Detail

      • SQLHelper

        public SQLHelper()
    • Method Detail

      • withTransaction

        public static <T> io.vertx.core.Future<T> withTransaction​(io.vertx.sqlclient.Pool pool,
                                                                  BiFunction<io.vertx.sqlclient.SqlConnection,​io.vertx.sqlclient.Transaction,​io.vertx.core.Future<T>> action)

        withTransaction.

        Type Parameters:
        T - a T object.
        Parameters:
        pool - a Pool object.
        action - a BiFunction object.
        Returns:
        a Future object.