Interface Database.XactGo<T>

Enclosing class:
Database
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public static interface Database.XactGo<T>
Used to define lambda expressions for more ergonomic transaction processing.
  • Method Summary

    Modifier and Type Method Description
    Response<T> go​(Xact tcw)
    Run the transaction
  • Method Details

    • go

      Response<T> go​(Xact tcw) throws java.sql.SQLException
      Run the transaction
      Parameters:
      tcw - Transaction wrapper.
      Returns:
      Result of transaction.
      Throws:
      java.sql.SQLException - thrown if operation fails.