Interface Database.DatabaseOperation

Enclosing class:
Database
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 Database.DatabaseOperation
Functional interface used by transaction helpers.
Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Execute database operations using the provided connection.
  • Method Details

    • execute

      void execute(Connection conn) throws SQLException
      Execute database operations using the provided connection. Implementations must use the supplied conn for all statements so they participate in the surrounding transaction.
      Parameters:
      conn - active JDBC connection
      Throws:
      SQLException - when a database error occurs