/** Basic delete with no logging or referential checks. */ public final void delete(Row row) { for (int i = indexList.length - 1; i >= 0; i--) { indexList[i].delete(this, row); } remove(row.getPos()); }
public final void indexRow(Session session, Row row) { int i = 0; try { for (; i < indexList.length; i++) { indexList[i].insert(session, this, row); } } catch (HsqlException e) { // unique index violation - rollback insert for (--i; i >= 0; i--) { indexList[i].delete(this, row); } remove(row.getPos()); throw e; } }