@Test public void prependTo_prependsProperSql() { SelectWhereImpl where = new SelectWhereImpl("a=?", new Object[] {1}, mock(SqlPart.class)); RawSqlBuilder builder = new RawSqlBuilderImpl(); where.prependTo(builder); assertThat(builder.toString(), is("WHERE a=?")); }
@Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend(mExpression).prepend("WHERE "); }
SelectWhereImpl extends BaseFinishedSelectStatement implements SelectWhere { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend(mExpression).prepend("WHERE "); } }
SelectWhereImpl extends BaseFinishedSelectStatement implements SelectWhere { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend(mExpression).prepend("WHERE "); } SelectWhereImpl(@NotNull final String expression, @NotNull final Object[] arguments, @NotNull final SqlPart previous); }
SelectWhereImpl extends BaseFinishedSelectStatement implements SelectWhere { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend(mExpression).prepend("WHERE "); } SelectWhereImpl(@NotNull final String expression, @NotNull final Object[] arguments, @NotNull final SqlPart previous); @NotNull @Override GroupBy groupBy(@NotNull final String expression); @NotNull @Override OrderBy orderBy(@NotNull final String... terms); @NotNull @Override Limit limit(final long limit); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override Object[] getArguments(); @Nullable @Override SqlPart previous(); }
SelectWhereImpl extends BaseFinishedSelectStatement implements SelectWhere { @Override public void prependTo(@NotNull final RawSqlBuilder builder) { builder.prepend(mExpression).prepend("WHERE "); } SelectWhereImpl(@NotNull final String expression, @NotNull final Object[] arguments, @NotNull final SqlPart previous); @NotNull @Override GroupBy groupBy(@NotNull final String expression); @NotNull @Override OrderBy orderBy(@NotNull final String... terms); @NotNull @Override Limit limit(final long limit); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override Object[] getArguments(); @Nullable @Override SqlPart previous();  }