Interface RowMapperFactory

All Known Implementing Classes:
BeanFactoryAwareRowMapperFactory, DefaultRowMapperFactory

public interface RowMapperFactory
Factory to create a RowMapper for a given class.
Since:
4.0
Author:
Jens Schauder, Mikhail Polivakha
  • Method Details

    • create

      RowMapper<Object> create(Class<?> result)
      Obtain a RowMapper based on the expected return type passed in as an argument.
      Parameters:
      result - must not be null.
      Returns:
      a RowMapper producing instances of result.
    • getRowMapper

      default RowMapper<Object> getRowMapper(String reference)
      Obtain a RowMapper from some other source, typically a BeanFactory.
      Parameters:
      reference - must not be null.
    • getResultSetExtractor

      default ResultSetExtractor<Object> getResultSetExtractor(String reference)
      Obtain a ResultSetExtractor from some other source, typically a BeanFactory.
      Parameters:
      reference - must not be null.