Package com.dbxml.db.core.transaction

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


      try {
         DocumentTable dt = DTSMHelper.textToTable(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


      try {
         DocumentTable dt = DTSMHelper.documentToTable(document, col.getSymbols());
         col.setDocument(tx, docKey, dt);
      }
      catch ( dbXMLException e ) {
         tx.cancel();
         throw e;
      }
      finally {
         if ( tx.getStatus() == Transaction.ACTIVE )
            tx.commit();
View Full Code Here

      try {
         DocumentTable dt = DTSMHelper.textToTable(document, col.getSymbols());
         col.setDocument(tx, docKey, dt);
      }
      catch ( dbXMLException e ) {
         tx.cancel();
         throw e;
      }
      finally {
         if ( tx.getStatus() == Transaction.ACTIVE )
            tx.commit();
View Full Code Here

      Transaction tx = new Transaction();
      try {
         col.remove(tx, docKey);
      }
      catch ( dbXMLException e ) {
         tx.cancel();
         throw e;
      }
      finally {
         if ( tx.getStatus() == Transaction.ACTIVE )
            tx.commit();
View Full Code Here

      }
      else
        throw new DBException(FaultCodes.COL_CANNOT_RETRIEVE, "Container '"+docName+"' not found");
    }
    catch ( DBException e ) {
      tx.cancel();
      throw e;
    }
    finally {
      if ( tx.getStatus() == Transaction.ACTIVE )
        tx.commit();
View Full Code Here

         for ( int i = 0; i < keys.length; i++ )
            result[i] = keys[i].toString();
         return result;
      }
      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 col.getKeyCount(tx);
      }
      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 col.insertRecord(tx, new Value(value)).toString();
      }
      catch ( dbXMLException 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, key, new Value(value));
      }
      catch ( dbXMLException e ) {
         tx.cancel();
         throw e;
      }
      finally {
         if ( tx.getStatus() == Transaction.ACTIVE )
            tx.commit();
View Full Code Here

         }

         return symbols;
      }
      catch ( DBException e ) {
         tx.cancel();
         e.printStackTrace(System.err);
         throw e;
      }
      finally {
         userStack.popCurrentUser();
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.