Interface DatabaseFunction<C,T,R>

Type Parameters:
C - the connection type required by this function
T - the argument type
R - the return type

public interface DatabaseFunction<C,T,R>
A database function
  • Method Summary

    Modifier and Type
    Method
    Description
    execute(C connection, T argument)
    Executes this function with the given connection
  • Method Details

    • execute

      R execute(C connection, T argument) throws DatabaseException
      Executes this function with the given connection
      Parameters:
      connection - the connection being used to execute this function
      argument - the function argument, if any
      Returns:
      the function return argument
      Throws:
      DatabaseException - in case of an exception during the execution