@Test public void prependTo_prependsProperSql() { SavePointImpl savePoint = new SavePointImpl("savepoint", mock(SqlPart.class)); RawSqlBuilder builder = new RawSqlBuilderImpl(); savePoint.prependTo(builder); assertThat(builder.toString(), is("SAVEPOINT savepoint")); }
@Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend(mSavePointName).prepend("SAVEPOINT "); }
SavePointImpl extends BaseFinishedStatement implements SavePoint { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend(mSavePointName).prepend("SAVEPOINT "); } }
SavePointImpl extends BaseFinishedStatement implements SavePoint { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend(mSavePointName).prepend("SAVEPOINT "); } SavePointImpl(@NotNull final String savePointName, @NotNull final SqlPart previous); }
SavePointImpl extends BaseFinishedStatement implements SavePoint { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend(mSavePointName).prepend("SAVEPOINT "); } SavePointImpl(@NotNull final String savePointName, @NotNull final SqlPart previous); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous(); }
SavePointImpl extends BaseFinishedStatement implements SavePoint { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend(mSavePointName).prepend("SAVEPOINT "); } SavePointImpl(@NotNull final String savePointName, @NotNull final SqlPart previous); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }