@Test void nextVal() { when(database.dialect()).thenReturn(dialect); when(dialect.nextFromSequence("TOM", "MYSCHEMA", "TEST_SEQ")).thenReturn("select next value from TEST_SEQ"); Sequence<Integer> sut = createSut(); SequenceExpression<Integer> result = sut.nextVal(); assertThat(result.sql(new Scope(database)), is("select next value from TEST_SEQ")); }
public SequenceExpression<T> nextVal() { return new SequenceExpression<>(this); }
Sequence { public SequenceExpression<T> nextVal() { return new SequenceExpression<>(this); } }
Sequence { public SequenceExpression<T> nextVal() { return new SequenceExpression<>(this); } private  Sequence(Builder<T> builder); }
Sequence { public SequenceExpression<T> nextVal() { return new SequenceExpression<>(this); } 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 SequenceExpression<T> nextVal() { return new SequenceExpression<>(this); } 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();  }