@Test public void testLimit() { StatementBuilder statementBuilder = new StatementBuilder(); Statement statement = statementBuilder.limit(500).toStatement(); assertEquals("LIMIT 500", statement.getQuery()); }
public StatementBuilder limit(Integer count) { queryBuilder.limit(count); return this; }
StatementBuilder { public StatementBuilder limit(Integer count) { queryBuilder.limit(count); return this; } }
StatementBuilder { public StatementBuilder limit(Integer count) { queryBuilder.limit(count); return this; } StatementBuilder(); @VisibleForTesting  StatementBuilder(QueryBuilderInterface<Value> queryBuilder); }
StatementBuilder { public StatementBuilder limit(Integer count) { queryBuilder.limit(count); 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 limit(Integer count) { queryBuilder.limit(count); 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; }