Interface SQLTransactionConsumer

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 interface SQLTransactionConsumer
A special consumer that takes a SQLTransaction, but throws SQLExceptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Accepts the transaction, does something with it, and returns nothing.
  • Method Details

    • accept

      void accept(SQLConnection.Transaction transaction) throws SQLException
      Accepts the transaction, does something with it, and returns nothing.
      Parameters:
      transaction - the open connection.
      Throws:
      SQLException - if a SQLException occurs.