Interface SqlRunnable

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 SqlRunnable
Wraps a function that works useing a JDBC connection.
Author:
Tobias Liefke
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run(Connection connection)
    Executes the work using the supplied connection.
  • Method Details

    • run

      void run(Connection connection) throws SQLException
      Executes the work using the supplied connection.
      Parameters:
      connection - The connection on which to perform the work.
      Throws:
      SQLException - if there is a problem with the work