Examples of queryDocument()


Examples of com.dbxml.db.client.CollectionClient.queryDocument()

         BodyContent content = getBodyContent();
         String query = content.getString();
         ResultSetClient rs;
         if ( key != null )
            rs = col.queryDocument(style, query, nsMap, key);
         else
            rs = col.queryCollection(style, query, nsMap);

         if ( name != null )
            pageContext.setAttribute(name, rs);
View Full Code Here

Examples of org.apache.xindice.client.corba.db.Collection.queryDocument()

   public static void updateDocument(Database app) throws Exception {
      String commands = "<xupdate:modifications version=\"1.0\" xmlns:xupdate=\"http://www.xmldb.org/xupdate\"><xupdate:remove select=\"/address/first-name\"/></xupdate:modifications>";

      Collection col = app.getCollection("root");

      col.queryDocument("XUpdate", commands, null, "address4", -1);
      System.out.println("Document Updated");

      col.remove();

   }
View Full Code Here

Examples of org.apache.xindice.client.corba.db.Collection.queryDocument()

   public XMLResource updateResourceResult(String id, String commands) throws XMLDBException {
      // Get the Xindice collection object from the XML:DB collection wrapper.
      Collection col = ((CollectionImpl) collection).getServerObject();

      try {
         EncodedBuffer buffer = col.queryDocument("XUpdate", commands, getNamespaces(), id, -1);
         return new XMLResourceImpl("", collection, new String(buffer.buf));
      }
      catch (Exception e) {     
         throw FaultCodes.createXMLDBException(e);
      }
View Full Code Here

Examples of org.apache.xindice.client.corba.db.Collection.queryDocument()

      // Get the Xindice collection object from the XML:DB collection wrapper.
      Collection col = ((CollectionImpl) collection).getServerObject();

      ResourceSet result = null;
      try {
         EncodedBuffer buffer = col.queryDocument("XPath", query,
            getNamespaces(), id, syms.getLastModified());

         if ( buffer.stamp != -1 ) {
            SymbolTable s = syms.getSymbols(buffer);
            result = new ResourceSetImpl(collection, s, buffer.buf);
View Full Code Here

Examples of org.apache.xindice.core.Collection.queryDocument()

      Collection col = getCollection( (String) message.get(COLLECTION) );
      NodeSet ns = null;

      if (message.containsKey( NAME )) {

         ns = col.queryDocument( (String)message.get(TYPE), (String)message.get(QUERY), mapNamespaces( (Hashtable)message.get(NAMESPACES) ), (String)message.get(NAME) );

      } else {

         ns = col.queryCollection( (String)message.get(TYPE), (String)message.get(QUERY), mapNamespaces( (Hashtable)message.get(NAMESPACES) ) );
      }
View Full Code Here

Examples of org.apache.xindice.core.Collection.queryDocument()

        Collection col = getCollection((String) message.get(COLLECTION));
        NodeSet ns = null;

        if (message.containsKey(NAME)) {
            ns = col.queryDocument((String) message.get(TYPE),
                                   (String) message.get(QUERY),
                                   mapNamespaces((Hashtable) message.get(NAMESPACES)),
                                   message.get(NAME));
        } else {
            ns = col.queryCollection((String) message.get(TYPE),
View Full Code Here

Examples of org.apache.xindice.core.Collection.queryDocument()

        Collection col = getCollection((String) message.get(COLLECTION));
        NamespaceMap nsMap = QueryUtil.mapNamespaces((Hashtable) message.get(NAMESPACES));

        NodeSet ns;
        if (message.containsKey(NAME)) {
            ns = col.queryDocument(type, query, nsMap, message.get(NAME));
        } else {
            ns = col.queryCollection(type, query, nsMap);
        }

        Hashtable result = new Hashtable();
View Full Code Here

Examples of org.apache.xindice.core.Collection.queryDocument()

        Collection col = getCollection((String) message.get(COLLECTION));
        NamespaceMap nsMap = QueryUtil.mapNamespaces((Map) message.get(NAMESPACES));

        NodeSet ns;
        if (message.containsKey(NAME)) {
            ns = col.queryDocument(type, query, nsMap, message.get(NAME));
        } else {
            ns = col.queryCollection(type, query, nsMap);
        }

        Map result = new HashMap(3);
View Full Code Here

Examples of org.apache.xindice.core.Collection.queryDocument()

        Collection col = getCollection((String) message.get(COLLECTION));
        NamespaceMap nsMap = QueryUtil.mapNamespaces((Hashtable) message.get(NAMESPACES));

        NodeSet ns;
        if (message.containsKey(NAME)) {
            ns = col.queryDocument(type, query, nsMap, message.get(NAME));
        } else {
            ns = col.queryCollection(type, query, nsMap);
        }

        Hashtable result = new Hashtable();
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.