Package org.exist.dom

Examples of org.exist.dom.DocumentSet.lock()


        // check if the loaded documents should remain locked
        NewArrayNodeSet result = new NewArrayNodeSet(2);
        try {
            // wait for pending updates
            if (!context.inProtectedMode())
                {ds.lock(context.getBroker(), false, true);}
          DocumentImpl doc;
          for (final Iterator<DocumentImpl> i = ds.getDocumentIterator(); i.hasNext();) {
              doc = i.next();
                if (context.inProtectedMode() && !context.getProtectedDocs().containsKey(doc.getDocId()))
                    {continue;}
View Full Code Here


            throws XPathException {
     
        final Sequence docsArg = getArgument(0).eval(contextSequence, contextItem);
        final DocumentSet docs = docsArg.getDocumentSet();
        try {
            docs.lock(context.getBroker(), exclusive, false);
            return getArgument(1).eval(contextSequence, contextItem);
        } catch (final LockException e) {
            throw new XPathException(this, "Could not lock document set", e);
        } finally {
            docs.unlock(exclusive);
View Full Code Here

      }
  }
  try {
            if(!cacheIsValid)
                // wait for pending updates
                {docs.lock(context.getBroker(), lockOnLoad, true);}
      // wait for pending updates
      if(result == null) {
    result = new ExtArrayNodeSet(docs.getDocumentCount(), 1);
                DocumentImpl doc;
    for (final Iterator<DocumentImpl> i = docs.getDocumentIterator(); i.hasNext();) {
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.