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 using the given connection
  • Method Details

    • execute

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