public int executeDelete(DeleteData data, Transaction tx) { Plan p = new TablePlan(data.tableName(), tx); p = new SelectPlan(p, data.pred()); UpdateScan us = (UpdateScan)p.open(); int count = 0; while (us.next()) { us.delete(); count++; } us.close(); return(count); }
public void delete() { UpdateScan us = (UpdateScan)s; us.delete(); }