Enumeration e = selection( getUserColumn().eqClause(user.troid()) + " AND " + getBoardColumn().eqClause(board.troid())); while (e.hasMoreElements()) ((Subscription)e.nextElement()).deleteAndCommit();
List toDelete = new ArrayList(); for (Enumeration e = selection( getUserColumn().eqClause(user.troid()) + " AND " + getBoardColumn().eqClause(board.troid())); e.hasMoreElements();) { toDelete.add(e.nextElement()); } for (Iterator it = toDelete.iterator(); it.hasNext();) { Subscription s = (Subscription)it.next(); s.deleteAndCommit(); }
  public void unsubscribe(User user, Board board) {    Enumeration e = selection(                      getUserColumn().eqClause(user.troid()) + " AND " +                      getBoardColumn().eqClause(board.troid()));    while (e.hasMoreElements())      ((Subscription)e.nextElement()).deleteAndCommit();  }