Package org.apache.xindice.client.corba.db

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


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

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


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

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

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

   public XMLResource queryResult(String query) throws XMLDBException {
      Collection col = ((CollectionImpl) collection).getServerObject();

      XMLResource result = null;
      try {
         EncodedBuffer buffer = col.queryCollection("XPath", query, getNamespaces(), syms.getLastModified());

         if ( buffer.stamp != -1 ) {
            SymbolTable s = syms.getSymbols(buffer);
            result = new XMLResourceImpl("", collection, s, buffer.buf);
         }
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.