Class InstantiatorRowMapper<T>

  • All Implemented Interfaces:
    RowMapper<T>

    public final class InstantiatorRowMapper<T>
    extends java.lang.Object
    implements RowMapper<T>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T mapRow​(@NotNull java.sql.ResultSet resultSet)
      Produces a single value based on current row.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InstantiatorRowMapper

        public InstantiatorRowMapper​(@NotNull
                                     @NotNull java.lang.Class<T> cl,
                                     @NotNull
                                     @NotNull InstantiatorProvider instantiatorProvider)
    • Method Detail

      • mapRow

        public T mapRow​(@NotNull
                        @NotNull java.sql.ResultSet resultSet)
                 throws java.sql.SQLException
        Description copied from interface: RowMapper
        Produces a single value based on current row.

        The implementation should not call ResultSet.next() or other methods to move the current position of the ResultSet, caller is responsible for that.

        Specified by:
        mapRow in interface RowMapper<T>
        Throws:
        java.sql.SQLException