Interface SQLExecutor<T>

Type Parameters:
T - the type of the value returned by this executor.
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 SQLExecutor<T>
Executes an SQL statement using a managed database connection.
  • Method Summary

    Modifier and Type
    Method
    Description
    executeSQL(Connection connection)
    Executes an SQL statement using a managed database connection.
  • Method Details

    • executeSQL

      T executeSQL(Connection connection) throws SQLException, Exception
      Executes an SQL statement using a managed database connection.
      Parameters:
      connection - the database connection.
      Returns:
      the value computed by the SQL statement.
      Throws:
      SQLException - if an SQL error occurs.
      Exception - if another error occurs.