Package com.dbxml.db.core.transaction

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


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


            }

            super.setConfig(new Configuration(colDoc));
         }
         catch ( Throwable e ) {
            tx.cancel();
            e.printStackTrace(System.err);
            throw new dbXMLException("Couldn't bootstrap Database", e);
         }
         finally {
            if ( tx.getStatus() == Transaction.ACTIVE )
View Full Code Here

      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);
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
View Full Code Here

      catch ( DTSMException e ) {
         tx.cancel();
         throw new DBException(FaultCodes.COL_CANNOT_STORE, "Can't parse Document '" + docName + "'", e);
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
      finally {
         if ( tx.getStatus() == Transaction.ACTIVE )
            tx.commit();
View Full Code Here

      Transaction tx = new Transaction();
      try {
         col.setRecord(tx, docName, new Value(value));
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
      finally {
         if ( tx.getStatus() == Transaction.ACTIVE )
            tx.commit();
View Full Code Here

         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 + "'");
      }
      finally {
         userStack.popCurrentUser();
View Full Code Here

      Transaction tx = new Transaction();
      try {
         return domAdapter.getDocument(tx, docKey);
      }
      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 DTSMHelper.tableToText(col.getDocument(tx, docKey));
      }
      catch ( dbXMLException e ) {
         tx.cancel();
         throw e;
      }
      finally {
         if ( tx.getStatus() == Transaction.ACTIVE )
            tx.commit();
View Full Code Here

            return new ContentClientImpl(this, con);
         else
            throw new dbXMLException("Content '" + key + "' not found");
      }
      catch ( dbXMLException e ) {
         tx.cancel();
         throw e;
      }
      finally {
         if ( tx.getStatus() == Transaction.ACTIVE )
            tx.commit();
View Full Code Here

      try {
         DocumentTable dt = DTSMHelper.documentToTable(document, col.getSymbols());
         return col.insertDocument(tx, dt).toString();
      }
      catch ( dbXMLException e ) {
         tx.cancel();
         throw 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.