@Test public void prependTo_prependsProperSql() { TransactionImpl transaction = new TransactionImpl(mock(SqlPart.class)); RawSqlBuilder builder = new RawSqlBuilderImpl(); transaction.prependTo(builder); assertThat(builder.toString(), is("TRANSACTION")); }
@Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("TRANSACTION"); }
TransactionImpl extends BaseFinishedStatement implements Transaction { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("TRANSACTION"); } }
TransactionImpl extends BaseFinishedStatement implements Transaction { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("TRANSACTION"); } TransactionImpl(final SqlPart sqlPart); }
TransactionImpl extends BaseFinishedStatement implements Transaction { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("TRANSACTION"); } TransactionImpl(final SqlPart sqlPart); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous(); }
TransactionImpl extends BaseFinishedStatement implements Transaction { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("TRANSACTION"); } TransactionImpl(final SqlPart sqlPart); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }