Package com.dbxml.db.common.adapters

Examples of com.dbxml.db.common.adapters.DOMAdapter


   private Source src;

   public XSLTQuery(Collection context, String query, NamespaceMap nsMap, Key[] keys, XSLTQueryResolver resolver) throws QueryException {
      super(context, query, nsMap, keys);
      this.resolver = resolver;
      domAdapter = new DOMAdapter(context);
   }
View Full Code Here


   public XPathResultSet(Transaction tx, Collection context, Query query, Key[] keySet, PrefixResolver pr, String xpath) {
      super(tx, context, query, keySet);
      this.pr = pr;
      this.xpath = xpath;
      domAdapter = new DOMAdapter(context);
   }
View Full Code Here

         try {
            // Bootstrap from the database itself...  This is accomplished
            // by intercepting the setConfig call and using a Configuration
            // retrieved from the database instead of the standard config
            Collection col = sysCol.getCollection(SystemCollection.CONFIGS);
            DOMAdapter domAdapter = new DOMAdapter(col);
            Document colDoc = domAdapter.getDocument(tx, COLKEY);

            if ( colDoc == null ) {
               colDoc = DOMHelper.newDocument();
               Element root = colDoc.createElement(DATABASE);
               root.setAttribute(NAME, name);
               colDoc.appendChild(root);

               domAdapter.setDocument(tx, COLKEY, colDoc);
            }

            super.setConfig(new Configuration(colDoc));
         }
         catch ( Throwable e ) {
View Full Code Here

   private DOMAdapter domAdapter;

   public CollectionClientImpl(dbXMLClient client, Collection col) {
      this.client = client;
      this.col = col;
      domAdapter = new DOMAdapter(col);
   }
View Full Code Here

   private XUpdateImpl xu;
   private DOMAdapter domAdapter;

   public XUpdateQuery(Collection context, String query, NamespaceMap nsMap, Key[] keys) throws QueryException {
      super(context, query, nsMap, keys);
      domAdapter = new DOMAdapter(context);
   }
View Full Code Here

         Transaction tx = new Transaction();

         try {
            Collection sysCol = collection.getSystemCollection();
            Collection cfgCol = sysCol.getCollection(SystemCollection.CONFIGS);
        DOMAdapter domAdapter = new DOMAdapter(cfgCol);
        Document doc = domAdapter.getDocument(tx, SYNCID_XML);
            if ( doc != null ) {
               Element elem = doc.getDocumentElement();
               machineID = elem.getAttribute(ID);
            }
            else {
               machineID = cfgCol.createNewOID().toString();
               doc = DOMHelper.newDocument();
               Element elem = doc.createElement(SYNC);
               doc.appendChild(elem);
               elem.setAttribute(ID, machineID);
          domAdapter.setDocument(tx, SYNCID_XML, doc);
            }
         }
         catch ( Exception e ) {
            try {
               tx.cancel();
View Full Code Here

TOP

Related Classes of com.dbxml.db.common.adapters.DOMAdapter

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.