Interface SQLManager.ConnectionFunction<T>

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.ConnectionFunction<T>
Functional interface for connection functions that may throw SQLException.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(Connection connection)
    Performs an operation using the given connection and returns a result.
  • Method Details

    • apply

      T apply(Connection connection) throws SQLException
      Performs an operation using the given connection and returns a result.
      Parameters:
      connection - the database connection
      Returns:
      the result
      Throws:
      SQLException - if a database error occurs