Class Transaction<T>

java.lang.Object
com.github.fabriciofx.cactoos.jdbc.statement.Transaction<T>
Type Parameters:
T - Type of the result
All Implemented Interfaces:
Statement<T>

public final class Transaction<T> extends Object implements Statement<T>
StatementTransaction.
Since:
0.1
  • Constructor Details

    • Transaction

      public Transaction(Session sssn, Callable<T> call)
      Ctor.
      Parameters:
      sssn - A session
      call - A Callable to be executed in a transaction
    • Transaction

      public Transaction(Transacted sssn, Callable<T> call)
      Ctor.
      Parameters:
      sssn - A transacted session
      call - A Callable to be executed in a transaction
  • Method Details

    • result

      public T result() throws Exception
      Description copied from interface: Statement
      Execute it and returns a single or set of data(s).
      Specified by:
      result in interface Statement<T>
      Returns:
      A Result of a type
      Throws:
      Exception - If fails