try { Value ref = new NodeRef(doc.getDocId()); IndexQuery query = new IndexQuery(null, IndexQuery.TRUNC_RIGHT, ref); domDb.remove(query, null); domDb.flush(); } catch (BTreeException e) { LOG.warn("btree error while removing document", e); } catch (DBException e) { LOG.warn("db error while removing document", e); } catch (IOException e) { LOG.warn("io error while removing document", e);
domDb.remove(doc.getAddress()); NodeList children = doc.getChildNodes(); NodeImpl node; for (int j = 0; j < children.getLength(); j++) { node = (NodeImpl) children.item(j); Iterator k = getDOMIterator( new NodeProxy(doc, node.getGID(), node.getInternalAddress())); removeNodes(k);
					public Object start() {						try {							Value ref = new NodeRef(doc.getDocId());							IndexQuery query = new IndexQuery(null, IndexQuery.TRUNC_RIGHT, ref);							domDb.remove(query, null);							domDb.flush();						} catch (BTreeException e) {							LOG.warn("btree error while removing document", e);						} catch (DBException e) {							LOG.warn("db error while removing document", e);						} catch (IOException e) {							LOG.warn("io error while removing document", e);						}						return null;					}