Package com.pyranid

Interface ResultSetMapper

All Known Implementing Classes:
DefaultResultSetMapper

public interface ResultSetMapper
Contract for mapping a ResultSet row to a different type.
Since:
1.0.0
Author:
Mark Allen
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    map(ResultSet resultSet, Class<T> resultClass)
    Maps the current row of resultSet into an instance of resultClass.
  • Method Details

    • map

      <T> T map(ResultSet resultSet, Class<T> resultClass)
      Maps the current row of resultSet into an instance of resultClass.
      Type Parameters:
      T - result instance type token
      Parameters:
      resultSet - provides raw row data to pull from
      resultClass - the type of instance to map to
      Returns:
      an instance of the given resultClass
      Throws:
      DatabaseException - if an error occurs during mapping