@Test public void prependTo_prependsProperSql() { TemporaryImpl temporary = new TemporaryImpl(mock(SqlPart.class)); RawSqlBuilder builder = new RawSqlBuilderImpl(); temporary.prependTo(builder); assertThat(builder.toString(), is("TEMPORARY")); }
@Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("TEMPORARY"); }
TemporaryImpl extends BaseSqlPart implements Temporary { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("TEMPORARY"); } }
TemporaryImpl extends BaseSqlPart implements Temporary { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("TEMPORARY"); } TemporaryImpl(@NotNull final SqlPart previous); }
TemporaryImpl extends BaseSqlPart implements Temporary { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("TEMPORARY"); } TemporaryImpl(@NotNull final SqlPart previous); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous(); @NotNull @Override CreateTable table(@NotNull final String tableName); @NotNull @Override CreateTable table(@Nullable final String databaseName, @NotNull final String tableName); @NotNull @Override CreateTableIfNotExists tableIfNotExists(@NotNull final String tableName); @NotNull @Override CreateTableIfNotExists tableIfNotExists(@Nullable final String databaseName, @NotNull final String tableName); }
TemporaryImpl extends BaseSqlPart implements Temporary { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend("TEMPORARY"); } TemporaryImpl(@NotNull final SqlPart previous); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous(); @NotNull @Override CreateTable table(@NotNull final String tableName); @NotNull @Override CreateTable table(@Nullable final String databaseName, @NotNull final String tableName); @NotNull @Override CreateTableIfNotExists tableIfNotExists(@NotNull final String tableName); @NotNull @Override CreateTableIfNotExists tableIfNotExists(@Nullable final String databaseName, @NotNull final String tableName);  }