Examples of endRemove()


Examples of org.exist.storage.DBBroker.endRemove()

            }
            broker.removeAllNodes(transaction, oldNode, oldPath, listener);
            --children;
            if (oldChild.getNodeType() == Node.ATTRIBUTE_NODE)
                {--attributes;}
            broker.endRemove(transaction);
            setDirty(true);
            broker.updateNode(transaction, this, false);
            broker.flush();
            if (reindexRoot != null && !reindexRoot.getNodeId().equals(oldNode.getNodeId()))
                {broker.getIndexController().reindex(transaction, reindexRoot, StreamListener.STORE);}
View Full Code Here

Examples of org.exist.storage.DBBroker.endRemove()

                        broker.removeNode(transaction, old, oldPath, null);
                        children--;
                        attributes--;
                    }
                } finally {
                    broker.endRemove(transaction);
                }
            }
            final NodePath path = getPath();
            broker.getIndexController().setDocument(ownerDocument, StreamListener.STORE);
            final StreamListener listener = broker.getIndexController().getStreamListener();
View Full Code Here

Examples of org.exist.storage.DBBroker.endRemove()

            } else {
                broker.getIndexController().reindex(transaction, reindexRoot,
                    StreamListener.REMOVE_SOME_NODES);
            }
            broker.removeAllNodes(transaction, oldNode, oldPath, listener);
            broker.endRemove(transaction);
            broker.flush();
            broker.getIndexController().setMode(StreamListener.STORE);
            listener = broker.getIndexController().getStreamListener();
            newNode = appendChild(transaction, oldNode.nodeId, new NodeImplRef(previous),
                getPath(), newChild, listener);
View Full Code Here

Examples of org.exist.storage.DBBroker.endRemove()

                    {path.removeLastComponent();}
            }
            broker.getIndexController().flush();
            broker.getIndexController().setMode(StreamListener.STORE);
            broker.getIndexController().getStreamListener();
            broker.endRemove(transaction);
            children = i;
            final NodeId newNodeId = last == this ? nodeId.newChild() : last.nodeId.nextSibling();
            //Append new content
            appendChildren(transaction, newNodeId, null, new NodeImplRef(last), path, newContent, listener);
            broker.updateNode(transaction, this, false);
View Full Code Here

Examples of org.exist.storage.DBBroker.endRemove()

            //TODO: fix once range index has been moved to new architecture
            final StoredNode valueReindexRoot = broker.getValueIndex().getReindexRoot(this, oldPath);
            broker.getValueIndex().reindex(valueReindexRoot);
            //Remove the actual node data
            broker.removeNode(transaction, oldNode, oldPath, null);
            broker.endRemove(transaction);
            newNode.nodeId = oldNode.nodeId;
            //Reinsert the new node data
            broker.insertNodeAfter(transaction, previousNode, newNode);
            final NodePath path = newNode.getPath(currentPath);
            broker.indexNode(transaction, newNode, path);
View Full Code Here

Examples of org.exist.storage.DBBroker.endRemove()

                if (newChild.getNodeType() != Node.ELEMENT_NODE)
                    {throw new DOMException(
                       DOMException.INVALID_MODIFICATION_ERR,
                       "A node replacing the document root needs to be an element");}
                broker.removeNode(transaction, oldNode, oldNode.getPath(), null);
                broker.endRemove(transaction);
                newNode.setNodeId(oldNode.getNodeId());
                broker.insertNodeAfter(null, previousNode, newNode);
                final NodePath path = newNode.getPath();
                broker.indexNode(transaction, newNode, path);
                broker.endElement(newNode, path, null);
View Full Code Here

Examples of org.exist.storage.DBBroker.endRemove()

                broker.indexNode(transaction, newNode, path);
                broker.endElement(newNode, path, null);
                broker.flush();
            } else {
                broker.removeNode(transaction, oldNode, oldNode.getPath(), null);
                broker.endRemove(transaction);
                newNode.setNodeId(oldNode.getNodeId());
                broker.insertNodeAfter(transaction, previousNode, newNode);
            }
        } catch (final EXistException e) {
            LOG.warn("Exception while updating child node: " + e.getMessage(), e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.