@Test public void prependTo_prependsProperSql() { RollbackTransactionImpl rollbackTransaction = new RollbackTransactionImpl(mock(SqlPart.class)); RawSqlBuilder builder = new RawSqlBuilderImpl(); rollbackTransaction.prependTo(builder); assertThat(builder.toString(), is("TRANSACTION")); }
@Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("TRANSACTION"); }
RollbackTransactionImpl extends BaseFinishedStatement implements RollbackTransaction { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("TRANSACTION"); } }
RollbackTransactionImpl extends BaseFinishedStatement implements RollbackTransaction { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("TRANSACTION"); } RollbackTransactionImpl(@NotNull final SqlPart previous); }
RollbackTransactionImpl extends BaseFinishedStatement implements RollbackTransaction { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("TRANSACTION"); } RollbackTransactionImpl(@NotNull final SqlPart previous); @NotNull @Override To to(); @NotNull @Override SavePoint to(@NotNull final String savePointName); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous(); }
RollbackTransactionImpl extends BaseFinishedStatement implements RollbackTransaction { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("TRANSACTION"); } RollbackTransactionImpl(@NotNull final SqlPart previous); @NotNull @Override To to(); @NotNull @Override SavePoint to(@NotNull final String savePointName); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }