Package com.dbxml.xml.dtsm

Examples of com.dbxml.xml.dtsm.DocumentTable


   }

   private void putDocument(Transaction tx, Key key, DocumentTable document) throws DBException {
      checkFiler(FaultCodes.COL_NO_FILER);
      checkType(FaultCodes.COL_CANNOT_STORE, true);
      DocumentTable oldDoc = getDocument(tx, key, false);

      try {
         if ( oldDoc != null )
            document = (DocumentTable)triggers.fireBeforeUpdate(tx, key, oldDoc, document);
         else
View Full Code Here


         catch ( CancelOperationException e ) {
            return null;
         }
      }

      DocumentTable doc = null;
      if ( cache != null )
         doc = cache.getDocument(this, key);

      if ( doc == null ) {
         Record record = filer.readRecord(tx, key);
View Full Code Here

            return new ColContainer(tx, key, rec.getValue());
         else
            return null;
      }
      else {
         DocumentTable doc = getDocument(tx, key);
         if ( doc != null )
            return new ColContainer(tx, key, doc);
         else
            return null;
      }
View Full Code Here

   public int getCount() throws dbXMLException {
      return rs.getCount();
   }

   public Node getResult() throws dbXMLException {
      DocumentTable dt = rs.getResult();
      return DTSMHelper.tableToNode(dt);
   }
View Full Code Here

      DocumentTable dt = rs.getResult();
      return DTSMHelper.tableToNode(dt);
   }

   public String getResultAsText() throws dbXMLException {
      DocumentTable dt = rs.getResult();
      return DTSMHelper.tableToText(dt);
   }
View Full Code Here

   public byte[] getValue() throws dbXMLException {
      return container.getValue().getData();
   }

   public void setDocument(Document document) throws dbXMLException {
      DocumentTable dt = DTSMHelper.documentToTable(document, container.getCollection().getSymbols());
      container.setDocument(dt);
   }
View Full Code Here

      DocumentTable dt = DTSMHelper.documentToTable(document, container.getCollection().getSymbols());
      container.setDocument(dt);
   }

   public void setDocumentAsText(String document) throws dbXMLException {
      DocumentTable dt = DTSMHelper.textToTable(document, container.getCollection().getSymbols());
      container.setDocument(dt);
   }
View Full Code Here

      try {
         userStack.pushCurrentUser(magicUser);

         Document d = config.getElement().getOwnerDocument();
         Collection col = sysCol.getCollection(SystemCollection.CONFIGS);
         DocumentTable dt = DTSMHelper.documentToTable(d, col.getSymbols());
         col.setDocument(tx, COLKEY, dt);
      }
      catch ( Exception e ) {
         tx.cancel();
         System.err.println("Error Writing Configuration '" + name + "'");
View Full Code Here

   public static final String[] PARAMS_setDocument = {"document"};

   public void setDocument(String document) throws DBException {
      Transaction tx = new Transaction();
      try {
         DocumentTable dt = DTSMHelper.textToTable(document, col.getSymbols());
         col.setDocument(tx, docName, dt);
      }
      catch ( DTSMException e ) {
         tx.cancel();
         throw new DBException(FaultCodes.COL_CANNOT_STORE, "Can't parse Document '" + docName + "'", e);
View Full Code Here

   }

   public String insertDocument(Document document) throws dbXMLException {
      Transaction tx = new Transaction();
      try {
         DocumentTable dt = DTSMHelper.documentToTable(document, col.getSymbols());
         return col.insertDocument(tx, dt).toString();
      }
      catch ( dbXMLException e ) {
         tx.cancel();
         throw e;
View Full Code Here

TOP

Related Classes of com.dbxml.xml.dtsm.DocumentTable

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.