Package com.dbxml.db.core.transaction

Examples of com.dbxml.db.core.transaction.Transaction.cancel()


      Transaction tx = new Transaction();
      try {
         return col.getRecord(tx, key).getValue().getData();
      }
      catch ( dbXMLException e ) {
         tx.cancel();
         throw e;
      }
      finally {
         if ( tx.getStatus() == Transaction.ACTIVE )
            tx.commit();
View Full Code Here


            symCol.setObject(tx, colName, symbols);
            symbols.setDirty(false);
         }
      }
      catch ( DBException e ) {
         tx.cancel();
         e.printStackTrace(System.err);
         throw e;
      }
      finally {
         userStack.popCurrentUser();
View Full Code Here

      Transaction tx = new Transaction();
      try {
         return new ResultSetClientImpl(this, col.queryCollection(tx, style, query, new NamespaceMap(nsMap)));
      }
      catch ( dbXMLException e ) {
         tx.cancel();
         throw e;
      }
      finally {
         if ( tx.getStatus() == Transaction.ACTIVE )
            tx.commit();
View Full Code Here

      Transaction tx = new Transaction();
      try {
         return new ResultSetClientImpl(this, col.queryDocument(tx, style, query, new NamespaceMap(nsMap), key));
      }
      catch ( dbXMLException e ) {
         tx.cancel();
         throw e;
      }
      finally {
         if ( tx.getStatus() == Transaction.ACTIVE )
            tx.commit();
View Full Code Here

         }
         loaded = true;
      }
      catch ( Exception e ) {
         try {
             tx.cancel();
         }
         catch ( DBException ex ) {
            e.printStackTrace(System.err);
         }
      }
View Full Code Here

         DocumentTable dt = DTSMHelper.documentToTable(doc, sysObj.getSymbols());
         sysObj.setDocument(tx, docKey, dt);
      }
      catch ( Exception e ) {
         try {
             tx.cancel();
         }
         catch ( DBException ex ) {
            e.printStackTrace(System.err);
         }
      }
View Full Code Here

         }
         else
            throw new dbXMLException("Invalid Document Path '" + path + "'");
      }
      catch ( dbXMLException e ) {
         tx.cancel();
         throw e;
      }
    finally {
      if ( tx.getStatus() == Transaction.ACTIVE )
        tx.commit();
View Full Code Here

            docsElem.appendChild(docElem);
         }
      }
      catch ( DBException e ) {
         try {
            tx.cancel();
         }
         catch ( DBException ex ) {
         }
      }
      finally {
View Full Code Here

            throw new DBException(FaultCodes.COL_CANNOT_RETRIEVE, "Document '"+docKey+"' not found");

         return DTSMHelper.tableToText(dt);
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
      catch ( DTSMException e ) {
         tx.cancel();
         throw new DBException(FaultCodes.COL_CANNOT_RETRIEVE, "Can't convert Document '" + docKey + "' to text", e);
View Full Code Here

      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
      catch ( DTSMException e ) {
         tx.cancel();
         throw new DBException(FaultCodes.COL_CANNOT_RETRIEVE, "Can't convert Document '" + docKey + "' to text", e);
      }
      finally {
         if ( tx.getStatus() == Transaction.ACTIVE )
            tx.commit();
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.