@Test void rowMapper() { when(intSequence.rowMapper("fred")).thenReturn(rowMapper); SequenceExpression<Integer> sut = new SequenceExpression<>(intSequence); RowMapper<Integer> result = sut.rowMapper(scope, Optional.of("fred")); assertThat(result, sameInstance(rowMapper)); }
@Override public RowMapper<T> rowMapper(Scope scope, Optional<String> label) { return sequence.rowMapper(label.orElseGet(() -> label(scope))); }
SequenceExpression implements TypedExpression<T> { @Override public RowMapper<T> rowMapper(Scope scope, Optional<String> label) { return sequence.rowMapper(label.orElseGet(() -> label(scope))); } }
SequenceExpression implements TypedExpression<T> { @Override public RowMapper<T> rowMapper(Scope scope, Optional<String> label) { return sequence.rowMapper(label.orElseGet(() -> label(scope))); } SequenceExpression(Sequence<T> sequence); }
SequenceExpression implements TypedExpression<T> { @Override public RowMapper<T> rowMapper(Scope scope, Optional<String> label) { return sequence.rowMapper(label.orElseGet(() -> label(scope))); } SequenceExpression(Sequence<T> sequence); @Override String label(Scope scope); @Override RowMapper<T> rowMapper(Scope scope, Optional<String> label); @Override TypeToken<T> type(); @Override String sql(Scope scope); @Override Stream<Object> args(Scope scope); @Override Precedence precedence(); T single(); }
SequenceExpression implements TypedExpression<T> { @Override public RowMapper<T> rowMapper(Scope scope, Optional<String> label) { return sequence.rowMapper(label.orElseGet(() -> label(scope))); } SequenceExpression(Sequence<T> sequence); @Override String label(Scope scope); @Override RowMapper<T> rowMapper(Scope scope, Optional<String> label); @Override TypeToken<T> type(); @Override String sql(Scope scope); @Override Stream<Object> args(Scope scope); @Override Precedence precedence(); T single();  }