@Test void rowMapper() throws SQLException { when(database.dialect()).thenReturn(dialect); when(dialect.type(DbTypeId.INTEGER)).thenReturn(new DefaultInteger()); when(resultSet.getInt("bob")).thenReturn(1034); Sequence<Integer> sut = createSut(); RowMapper<Integer> result = sut.rowMapper("bob"); assertThat(result, notNullValue()); assertThat(result.mapRow(resultSet), is(1034)); }
public RowMapper<T> rowMapper(String label) { return rs -> dataType.get(rs, label, database).orElse(null); }
Sequence { public RowMapper<T> rowMapper(String label) { return rs -> dataType.get(rs, label, database).orElse(null); } }
Sequence { public RowMapper<T> rowMapper(String label) { return rs -> dataType.get(rs, label, database).orElse(null); } private  Sequence(Builder<T> builder); }
Sequence { public RowMapper<T> rowMapper(String label) { return rs -> dataType.get(rs, label, database).orElse(null); } private  Sequence(Builder<T> builder); SequenceExpression<T> nextVal(); T single(); TypeToken<T> type(); RowMapper<T> rowMapper(String label); String name(); String sql(); static Builder<T> newBuilder(); }
Sequence { public RowMapper<T> rowMapper(String label) { return rs -> dataType.get(rs, label, database).orElse(null); } private  Sequence(Builder<T> builder); SequenceExpression<T> nextVal(); T single(); TypeToken<T> type(); RowMapper<T> rowMapper(String label); String name(); String sql(); static Builder<T> newBuilder();  }