@Test void sql() { when(intSequence.sql()).thenReturn("sql to get sequence value"); SequenceExpression<Integer> sut = new SequenceExpression<>(intSequence); String result = sut.sql(scope); assertThat(result, is("sql to get sequence value")); }
@Override public String sql(Scope scope) { return sequence.sql(); }
SequenceExpression implements TypedExpression<T> { @Override public String sql(Scope scope) { return sequence.sql(); } }
SequenceExpression implements TypedExpression<T> { @Override public String sql(Scope scope) { return sequence.sql(); } SequenceExpression(Sequence<T> sequence); }
SequenceExpression implements TypedExpression<T> { @Override public String sql(Scope scope) { return sequence.sql(); } 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 String sql(Scope scope) { return sequence.sql(); } 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();  }