Interface Database.ConnectionHandler<R>

  • Type Parameters:
    R - the return type for this function
    Enclosing class:
    Database

    public static interface Database.ConnectionHandler<R>
    An interface to a component to implement bespoke functionality against a database
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      R apply​(java.sql.Connection connection)
      Executes some database logic with the connection provided
    • Method Detail

      • apply

        R apply​(java.sql.Connection connection)
         throws java.sql.SQLException
        Executes some database logic with the connection provided
        Parameters:
        connection - the database connection
        Returns:
        the result of this function
        Throws:
        java.sql.SQLException - if there is a database access error