Interface Database.ConnectionUser<T>

Type Parameters:
T - Return type of go(...)
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.ConnectionUser<T>
Used to define lambda expressions that make use of a Connection and return a value of type T.
  • Method Summary

    Modifier and Type Method Description
    T go​(java.sql.Connection c)
    Use a connection.
  • Method Details

    • go

      T go​(java.sql.Connection c) throws java.sql.SQLException
      Use a connection.
      Parameters:
      c - Connection.
      Returns:
      Specified return type.
      Throws:
      java.sql.SQLException - thrown if operation fails.