Interface FunctionType<C,T,R>

Type Parameters:
C - the connection type
T - the function argument type
R - the function result type

public interface FunctionType<C,T,R>
  • Method Details

    • name

      String name()
      Returns:
      the function name
    • execute

      R execute(C connection, DatabaseFunction<C,T,R> function, T argument) throws DatabaseException
      Executes the given function.
      Parameters:
      connection - the connection being used
      function - the function to execute
      argument - the function argument, if any
      Returns:
      the function result
      Throws:
      DatabaseException - in case of an exception
    • functionType

      static <C, T, R> FunctionType<C,T,R> functionType(String name)
      Creates a FunctionType with the given name and types.
      Type Parameters:
      C - the connection type
      T - the function argument type
      R - the function result type
      Parameters:
      name - the name
      Returns:
      a new FunctionType