Delete extends QueryBuilder { Delete(QueryBuilderOptions options) { super(options, Arrays.asList( new StringBlock(options, "DELETE"), new FromTableBlock(options), new JoinBlock(options), new WhereBlock(options), new OrderByBlock(options), new LimitBlock(options) )); } Delete(QueryBuilderOptions options); @Override QueryBuilder from(String table, String alias); @Override QueryBuilder where(String condition, P param); @Override QueryBuilder where(Expression condition, P param); @Override QueryBuilder join(String table, String alias, String condition, JoinType type); @Override QueryBuilder join(QueryBuilder table, String alias, String condition, JoinType type); @Override QueryBuilder join(String table, String alias, Expression condition, JoinType type); @Override QueryBuilder join(QueryBuilder table, String alias, Expression condition, JoinType type); @Override QueryBuilder order(String field, SortOrder dir); @Override QueryBuilder limit(int value);  }
@Test(expected=UnsupportedOperationException.class) public void intoShouldThrow() { Squel.delete() .into("TABLE"); }
@Test(expected=UnsupportedOperationException.class) public void fromQueryShouldThrow() { Squel.delete() .fromQuery(Arrays.asList("F1", "F2"), Squel.select()); }