DefaultDeleteSqlBuilder extends AbstractTermsFragmentBuilder<DeleteOperatorParameter> implements DeleteSqlBuilder { @Override public SqlRequest build(DeleteOperatorParameter parameter) { if (CollectionUtils.isEmpty(parameter.getWhere())) { throw new UnsupportedOperationException("Unsupported No Conditions delete"); } PrepareSqlFragments fragments = PrepareSqlFragments.of(); fragments.addSql("delete from", table.getFullName(), "where"); SqlFragments where = createTermFragments(parameter, parameter.getWhere()); if (where.isEmpty()) { throw new UnsupportedOperationException("Unsupported No Conditions delete"); } fragments.addFragments(where); return fragments.toRequest(); }  @Override SqlRequest build(DeleteOperatorParameter parameter);  }
@Test public void test(){ DeleteOperatorParameter parameter=new DeleteOperatorParameter(); { parameter.getWhere().addAll(Query.of().where("id", "1234").and().notNull("name").getParam().getTerms()); } SqlRequest sql= builder.build(parameter); System.out.println(sql); Assert.assertEquals(sql.getSql(),"delete from PUBLIC.test where \"ID\" = ? and \"NAME\" is not null"); }