Select extends QueryBuilder { Select(QueryBuilderOptions options) { super(options, Arrays.asList( new StringBlock(options, "SELECT"), new DistinctBlock(options), new GetFieldBlock(options), new FromTableBlock(options), new JoinBlock(options), new WhereBlock(options), new GroupByBlock(options), new OrderByBlock(options), new LimitBlock(options), new OffsetBlock(options), new UnionBlock(options) )); } Select(QueryBuilderOptions options); @Override QueryBuilder distinct(); @Override QueryBuilder from(String table, String alias); @Override QueryBuilder from(QueryBuilder table, String alias); @Override QueryBuilder field(String field, String alias); @Override QueryBuilder field(QueryBuilder field, String alias); @Override QueryBuilder fields(Iterable<String> fields); @Override QueryBuilder group(String field); @Override QueryBuilder join(String table, String alias, String condition, JoinType type); QueryBuilder join(QueryBuilder table, String alias, String condition, JoinType type); QueryBuilder join(String table, String alias, Expression condition, JoinType type); QueryBuilder join(QueryBuilder table, String alias, Expression condition, JoinType type); @Override QueryBuilder where(String condition, P param); @Override QueryBuilder where(Expression condition, P param); @Override QueryBuilder limit(int value); @Override QueryBuilder order(String field, SortOrder dir); @Override QueryBuilder offset(int value); @Override QueryBuilder union(String table, UnionType unionType); QueryBuilder union(QueryBuilder table, UnionType unionType);  }
@Test(expected=UnsupportedOperationException.class) public void setShouldThrow() { Squel.select() .set("NAME", "VALUE"); }