Interface ResultMapper<T>

Type Parameters:
T - The type of the object that the row is mapped to.
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 ResultMapper<T>
A functional interface used to convert a row from a JDBC ResultSet into a POJO or other data structure. This interface is designed to be used in conjunction with AbstractTableQuery.select(ResultMapper).
  • Method Summary

    Modifier and Type
    Method
    Description
    Performs the mapping of the current row in the given ResultSet.
  • Method Details

    • map

      T map(ResultSet rs) throws Exception
      Performs the mapping of the current row in the given ResultSet.
      Parameters:
      rs - The ResultSet positioned at the row to be mapped.
      Returns:
      An instance of type T containing the row data.
      Throws:
      Exception - If an error occurs during mapping or database retrieval.