示例#1
0
        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);
        }
示例#2
0
        public void delete()
        {
            UpdateScan us = (UpdateScan)s;

            us.delete();
        }