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; }
Value val = domDb.get(p.getInternalAddress()); if (val == null) { LOG.debug("Node " + p.gid + " not found in document " + p.doc.getCollection().getName() + '/' + p.doc.getFileName()); LOG.debug(domDb.debugPages(p.doc)); Thread.dumpStack(); return objectWith(p.doc, p.gid); } NodeImpl node = NodeImpl.deserialize( val.getData(), 0, val.getLength(), (DocumentImpl) p.doc); node.setGID(p.gid); node.setOwnerDocument(p.doc); node.setInternalAddress(p.getInternalAddress()); return node; }
	            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;	            }