Interface StatementMapper<T>

Type Parameters:
T - the type of object to map from the statement
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 interface StatementMapper<T>
Maps a JDBC CallableStatement to a Java object of type T.
  • Method Summary

    Modifier and Type
    Method
    Description
    Extracts a value from the given CallableStatement.
  • Method Details

    • get

      T get(CallableStatement statement) throws SQLException
      Extracts a value from the given CallableStatement.
      Parameters:
      statement - the CallableStatement to extract from
      Returns:
      mapped result object
      Throws:
      SQLException - if an error occurs while extracting