Examples of rollBack()


Examples of org.objectweb.speedo.workingset.api.TransactionItf.rollback()

      xac.synchroRegistred = true;
    } catch (RollbackException e) {
      //The JDO container cannot be registered then the transaction
      // must be rolledback
      if (tx.isActive()) {
        tx.rollback();
      }
    } catch (Exception e) {
      String msg = "Impossible to register the Speedo " +
          "container as synchronization on the current" +
          " transaction: " + e.getMessage();
View Full Code Here

Examples of org.ofbiz.entity.Delegator.rollback()

            xml.startTestSuite(test);
            // run the tests
            suite.run(results);
            test.setCounts(results.runCount(), results.failureCount(), results.errorCount());
            // rollback all entity operations performed by the delegator
            testDelegator.rollback();
            xml.endTestSuite(test);

            if (!results.wasSuccessful()) {
                failedRun = true;
            }
View Full Code Here

Examples of org.ofbiz.entity.GenericDelegator.rollback()

            xml.startTestSuite(test);
            // run the tests
            suite.run(results);
            test.setCounts(results.runCount(), results.failureCount(), results.errorCount());
            // rollback all entity operations performed by the delegator
            testDelegator.rollback();
            xml.endTestSuite(test);

            // display the results
            Debug.log("[JUNIT] Pass: " + results.wasSuccessful() + " | # Tests: " + results.runCount() + " | # Failed: " +
                    results.failureCount() + " # Errors: " + results.errorCount(), module);
View Full Code Here

Examples of org.ofbiz.entity.jdbc.SQLProcessor.rollback()

        SQLProcessor sqlP = new SQLProcessor(helperInfo);

        try {
            return singleInsert(entity, modelEntity, modelEntity.getFieldsUnmodifiable(), sqlP);
        } catch (GenericEntityException e) {
            sqlP.rollback();
            // no need to create nested, just throw original which will have all info: throw new GenericEntityException("Exception while inserting the following entity: " + entity.toString(), e);
            throw e;
        } finally {
            sqlP.close();
        }
View Full Code Here

Examples of org.omg.CosTransactions.Current.rollback()

      current.begin();
      current.commit(false);

      try
      {
        current.rollback();
        correct = false;
      }
      catch (NoTransaction noTransaction)
      {
      }
View Full Code Here

Examples of org.omg.CosTransactions.Resource.rollback()

        for (int i = 0;i < resources.size();i++){
            Resource r = (Resource)resources.elementAt(i);
            Vote     v = (Vote)votes.elementAt(i);
            try {
                if (v == null){
                    r.rollback();
                } else {
                    if (v.value() == Vote._VoteCommit){
                        r.rollback();
                    }
                }
View Full Code Here

Examples of org.openbp.server.ProcessFacade.rollback()

    }
    catch (Exception e)
    {
      try
      {
        processFacade.rollback();
      }
      catch (Exception re)
      {
        // Silently ignore errors on rollback
      }
View Full Code Here

Examples of org.openntf.domino.transactions.DatabaseTransaction.rollback()

      } else {
        throw new Exception("Now roll back");
      }
    } catch (Exception e) {
      sb.append("Rolling back");
      txn.rollback();
      ExtLibUtil.getViewScope().put("javaTest", sb.toString());
    }
  }

  public static void contactScannerMap() {
View Full Code Here

Examples of org.openrdf.http.server.helpers.ServerConnection.rollback()

      }
      finally {
        if (autoCommit && !connection.isAutoCommit()) {
          // restore auto-commit by rolling back
          logger.error("Rolling back transaction");
          connection.rollback();
        }
      }
    }
    catch (SAXParseException e) {
      throw new ErrorInfoException(MALFORMED_DATA, e.getMessage());
View Full Code Here

Examples of org.openrdf.repository.RepositoryConnection.rollback()

        } catch (IllegalArgumentException e) {
            try {
                //to avoid Exception logs in case store(..) throws an Exception
                //in the case allowCreate and canNotCreateIsError do not allow
                //the store operation
                con.rollback();
            } catch (RepositoryException ignore) {}
            throw e;
        } finally {
            if(con != null){
                try {
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.