Package org.exist.xmldb.concurrent.action

Examples of org.exist.xmldb.concurrent.action.ReplaceResourceAction


      Collection c1 = DBUtils.addCollection(getTestCollection(), "C1-C2");
      assertNotNull(c1);
      DBUtils.addXMLResource(c1, "R1.xml", ReplaceResourceAction.XML);   
          //String query0 = "//user[email = 'sam@email.com']";
          //String query1 = "distinct-values(//user/@id)";         
      addAction(new ReplaceResourceAction(URI + "/C1/C1-C2", "R1.xml"), 100, 0, 100);
          addAction(new ReplaceResourceAction(URI + "/C1/C1-C2", "R2.xml"), 100, 0, 100);
      addAction(new RetrieveResourceAction(URI + "/C1/C1-C2", "R1.xml"), 150, 500, 100);
      //addAction(new XQueryAction(URI + "/C1", "R1.xml", query0), 100, 1000, 100);
      //addAction(new XQueryAction(URI + "/C1", "R1.xml", query1), 100, 1000, 100);
    } catch (Exception e) {           
            fail(e.getMessage());
View Full Code Here

TOP

Related Classes of org.exist.xmldb.concurrent.action.ReplaceResourceAction

Copyright © 2018 www.massapicom. 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.