try { Value ref = new NodeRef(doc.getDocId()); IndexQuery query = new IndexQuery(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); } catch (TerminatedException e) { LOG.warn("method terminated", e); }
if(doc.getResourceType() == DocumentImpl.BINARY_FILE) { domDb.remove(doc.getAddress()); domDb.removeOverflowValue(((BinaryDocument)doc).getPage()); } else { NodeImpl node = (NodeImpl)doc.getFirstChild(); domDb.removeAll(node.getInternalAddress()); }
					public Object start() {						try {							Value ref = new NodeRef(doc.getDocId());							IndexQuery query =								new IndexQuery(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);						} catch (TerminatedException e) {                            LOG.warn("method terminated", e);                        }						return null;					}