@Test public void testOrderBy() { StatementBuilder statementBuilder = new StatementBuilder(); Statement statement = statementBuilder.orderBy("id ASC").toStatement(); assertEquals("ORDER BY id ASC", statement.getQuery()); }
public StatementBuilder orderBy(String orderBy) { queryBuilder.orderBy(orderBy); return this; }
StatementBuilder { public StatementBuilder orderBy(String orderBy) { queryBuilder.orderBy(orderBy); return this; } }
StatementBuilder { public StatementBuilder orderBy(String orderBy) { queryBuilder.orderBy(orderBy); return this; } StatementBuilder(); @VisibleForTesting  StatementBuilder(QueryBuilderInterface<Value> queryBuilder); }
StatementBuilder { public StatementBuilder orderBy(String orderBy) { queryBuilder.orderBy(orderBy); return this; } StatementBuilder(); @VisibleForTesting  StatementBuilder(QueryBuilderInterface<Value> queryBuilder); StatementBuilder withBindVariableValue(String key, Object value); StatementBuilder withBindVariableValue(String key, Value value); Statement toStatement(); StatementBuilder select(String columns); StatementBuilder from(String table); StatementBuilder where(String conditions); StatementBuilder limit(Integer count); StatementBuilder offset(Integer count); StatementBuilder increaseOffsetBy(Integer amount); Integer getOffset(); StatementBuilder removeLimitAndOffset(); StatementBuilder orderBy(String orderBy); Map<String, Value> getBindVariableMap(); String buildQuery(); }
StatementBuilder { public StatementBuilder orderBy(String orderBy) { queryBuilder.orderBy(orderBy); return this; } StatementBuilder(); @VisibleForTesting  StatementBuilder(QueryBuilderInterface<Value> queryBuilder); StatementBuilder withBindVariableValue(String key, Object value); StatementBuilder withBindVariableValue(String key, Value value); Statement toStatement(); StatementBuilder select(String columns); StatementBuilder from(String table); StatementBuilder where(String conditions); StatementBuilder limit(Integer count); StatementBuilder offset(Integer count); StatementBuilder increaseOffsetBy(Integer amount); Integer getOffset(); StatementBuilder removeLimitAndOffset(); StatementBuilder orderBy(String orderBy); Map<String, Value> getBindVariableMap(); String buildQuery(); static final int SUGGESTED_PAGE_LIMIT; }