Examples of queryCollection()


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

               case 0:  style = XPathQueryResolver.STYLE_XPATH;       break;
               case 1:  style = FullTextQueryResolver.STYLE_FULLTEXT; break;
               case 2:  style = XSLTQueryResolver.STYLE_XSLT;         break;
               default: style = XUpdateQueryResolver.STYLE_XUPDATE;   break;
            }
            ResultSetClient rs = col.queryCollection(style, query, cfg.getNamespaceMap());

            sw.stop();
            statusBar.setText(sw.toString());

            Document doc = DOMHelper.newDocument();
View Full Code Here

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

         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);
         else {
            while ( rs.next() ) {
View Full Code Here

Examples of com.dbxml.db.common.adapters.XMLSerializableAdapter.queryCollection()

   public String[] listGroupContents(String group) throws DBException {
      Transaction tx = new Transaction();
      try {
         XMLSerializableAdapter col = getContentCollection();
         ResultSet res = col.queryCollection(tx, XPathQueryResolver.STYLE_XPATH, "/content[@status='active']/groups/group[.='"+group+"']", EmptyNSMap);
         Set s = new TreeSet();
         while ( res.next() )
            s.add(res.getResultKey().toString());
      return (String[])s.toArray(EmptyStrings);
      }
View Full Code Here

Examples of com.dbxml.db.common.adapters.XMLSerializableAdapter.queryCollection()

            sb.append("]");
         }
         sb.append("]");

         XMLSerializableAdapter col = getContentCollection();
         ResultSet rs = col.queryCollection(tx, XPathQueryResolver.STYLE_XPATH, sb.toString(), null);
         Map grpMap = new HashMap(); // of String to List of Element

         while ( rs.next() ) {
            try {
               DocumentTable dt = rs.getResult();
View Full Code Here

Examples of com.dbxml.db.common.adapters.XMLSerializableAdapter.queryCollection()

   public String[] listUsersForRole(String roleID) throws DBException {
      Transaction tx = new Transaction();
      try {
         XMLSerializableAdapter col = getUsersCollection();
         String queryString = "/user[role[.='"+roleID+"']]/@id";
         ResultSet rs = col.queryCollection(tx, XPathQueryResolver.STYLE_XPATH, queryString, null);
         Set roles = new TreeSet();
         while ( rs.next() ) {
            try {
               String userID = DTSMHelper.tableToText(rs.getResult());
               roles.add(userID);
View Full Code Here

Examples of com.dbxml.db.common.adapters.XMLSerializableAdapter.queryCollection()

         col.remove(tx, roleID);
         roleCache.remove(roleID);

         col = getUsersCollection();
         String queryString = "/user[role[.='"+roleID+"']]/@id";
         ResultSet rs = col.queryCollection(tx, XPathQueryResolver.STYLE_XPATH, queryString, null);
         while ( rs.next() ) {
            try {
               String userID = DTSMHelper.tableToText(rs.getResult());
               User user = readUser(userID);
               user.removeRole(role);
View Full Code Here

Examples of com.dbxml.db.common.adapters.XMLSerializableAdapter.queryCollection()

            }
         }

         col = getAccessCollection();
         queryString = "/access[role[.='"+roleID+"']]/path/text()";
         rs = col.queryCollection(tx, XPathQueryResolver.STYLE_XPATH, queryString, null);
         while ( rs.next() ) {
            try {
               String path = DTSMHelper.tableToText(rs.getResult());
               Access access = readAccess(path);
               access.removePermissions(role);
View Full Code Here

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

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

      // 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

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

   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.