public void Delete2(int arg2) { TernaryTable.Iter2 it = table.GetIter2(arg2); while (!it.Done()) { deleteIdxs = Array.Append(deleteIdxs, deleteCount, it.Index()); deleteList = Array.Append3(deleteList, deleteCount++, it.Get1(), arg2, it.Get2()); it.Next(); } }
private ForeignKeyViolationException ForeignKeyViolation(int delSurr) { TernaryTable.Iter2 it = source.table.GetIter2(delSurr); Obj arg1 = source.store1.SurrToValue(it.Get1()); Obj arg2 = source.store2.SurrToValue(delSurr); Obj arg3 = source.store3.SurrToValue(it.Get2()); Obj[] tuple = new Obj[] { arg1, arg2, arg3 }; return(ForeignKeyViolationException.TernaryUnary(source.relvarName, 2, target.relvarName, tuple, arg2)); }