Interface SQLExecutor<T>

Type Parameters:
T - the type of the value returned by this executor.

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.