Interface SQLConnectionConsumer

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

    Modifier and Type
    Method
    Description
    void
    accept(SQLConnection connection)
    Accepts the connection, does something with it, and returns nothing.
  • Method Details

    • accept

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