try { ArrayList nodes = domDb.findKeys(idx); Value ref; for (Iterator i = nodes.iterator(); i.hasNext();) { ref = (Value) i.next(); domDb.removeValue(ref); } domDb.flush(); } catch (BTreeException e) { LOG.warn("error while removing doc", e); } catch (DBException e) { LOG.warn("error while removing doc", e); } catch (IOException e) { LOG.warn("error while removing doc", e);
NodeList children = doc.getChildNodes(); domDb.remove(doc.getAddress()); NodeImpl node; for (int i = 0; i < children.getLength(); i++) { node = (NodeImpl) children.item(i); Iterator j = getDOMIterator(doc, node.getGID()); removeNodes(j);
				public Object start() {					try {						ArrayList nodes = domDb.findKeys(idx);						Value ref;						for (Iterator i = nodes.iterator(); i.hasNext();) {							ref = (Value) i.next();							domDb.removeValue(ref);						}						domDb.flush();					} catch (BTreeException e) {						LOG.warn("error while removing doc", e);					} catch (DBException e) {						LOG.warn("error while removing doc", e);					} catch (IOException e) {						LOG.warn("error while removing doc", e);					}					return null;				}