@Test void update() { Database database = Database.newBuilder() .defaultSchema("SIESTA") .build(); database.delete(WidgetRow.class) .where(WidgetRow::widgetId).isEqualTo(2L) .and(column(WidgetRow::description).isBetween("C").and(WidgetRow::name) .or(column(WidgetRow::description).isNull())) .execute(transaction); verify(transaction).update(sql.capture(), args.capture()); assertThat(sql.getValue(), is("delete from SIESTA.WIDGET " + "where SIESTA.WIDGET.WIDGET_ID = ? " + "and (" + "SIESTA.WIDGET.DESCRIPTION between ? and SIESTA.WIDGET.NAME " + "or SIESTA.WIDGET.DESCRIPTION is null" + ")")); assertThat(args.getValue(), is(toArray(2L, "C"))); }
private Delete(Database database, Alias<D> alias) { super(new Scope(database, alias)); this.alias = alias; }
Delete extends ExecutableStatement { private Delete(Database database, Alias<D> alias) { super(new Scope(database, alias)); this.alias = alias; } }
Delete extends ExecutableStatement { private Delete(Database database, Alias<D> alias) { super(new Scope(database, alias)); this.alias = alias; } private  Delete(Database database, Alias<D> alias); }
Delete extends ExecutableStatement { private Delete(Database database, Alias<D> alias) { super(new Scope(database, alias)); this.alias = alias; } private  Delete(Database database, Alias<D> alias); static ExpectingWhere delete(Database database, Table<U> table); static ExpectingWhere delete(Database database, Alias<U> alias); }
Delete extends ExecutableStatement { private Delete(Database database, Alias<D> alias) { super(new Scope(database, alias)); this.alias = alias; } private  Delete(Database database, Alias<D> alias); static ExpectingWhere delete(Database database, Table<U> table); static ExpectingWhere delete(Database database, Alias<U> alias);  }