Interface SQLManager.ConnectionConsumer

Enclosing class:
SQLManager
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 SQLManager.ConnectionConsumer
Functional interface for connection consumers that may throw SQLException.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(Connection connection)
    Performs an operation using the given connection.
  • Method Details

    • accept

      void accept(Connection connection) throws SQLException
      Performs an operation using the given connection.
      Parameters:
      connection - the database connection
      Throws:
      SQLException - if a database error occurs