1 33 package smallsql.database; 34 35 36 40 class CommandDelete extends CommandSelect { 41 42 43 CommandDelete(Logger log){ 44 super(log); 45 } 46 47 48 void executeImpl(SSConnection con, SSStatement st) throws Exception { 49 compile(con); 50 TableViewResult result = TableViewResult.getTableViewResult(join); 51 52 updateCount = 0; 53 join.execute(); 54 while(next()){ 55 result.deleteRow(); 56 updateCount++; 57 } 58 } 59 60 } 61 | Popular Tags |