Interface ProcedureType<C,T>

Type Parameters:
C - the connection type
T - the procedure argument type

public interface ProcedureType<C,T>
  • Method Details

    • name

      String name()
      Returns:
      the procedure name
    • execute

      void execute(C connection, DatabaseProcedure<C,T> procedure, T argument) throws DatabaseException
      Executes the given procedure.
      Parameters:
      connection - the connection being used
      procedure - the procedure to execute
      argument - the procedure argument, if any
      Throws:
      DatabaseException - in case of an exception
    • procedureType

      static <C, T> ProcedureType<C,T> procedureType(String name)
      Creates a ProcedureType with the given name and types.
      Type Parameters:
      C - the connection type
      T - the procedure argument type
      Parameters:
      name - the name
      Returns:
      a new ProcedureType