Examples of rollback()


Examples of org.springframework.jdbc.datasource.DataSourceTransactionManager.rollback()

      }
    }
    // If creating the table fails, roll back the transaction and error
    // out.
    catch(DataAccessException e) {
      transactionManager.rollback(transactionStatus);
      throw
        new IllegalStateException(
          "There was an issue creating a DAO table definition.",
          e);
    }
View Full Code Here

Examples of org.springframework.transaction.PlatformTransactionManager.rollback()

    TransactionStatus status = txManager.getTransaction(definition);
    try {
      action.execute(activityXml, activityInst);
      txManager.commit(status);
    } catch (Exception e) {
      txManager.rollback(status);
      throw new ProcessEngineException("触发事件执行失败", e);
    }
  }
 
  private static interface IAction {
View Full Code Here

Examples of org.springframework.transaction.jta.JtaTransactionManager.rollback()

      fail("Should have thrown UnexpectedRollbackException");
    }
    catch (UnexpectedRollbackException ex) {
      // expected
      if (!outerTransactionBoundaryReached) {
        tm.rollback(ts);
      }
      if (failEarly) {
        assertFalse(outerTransactionBoundaryReached);
      }
      else {
View Full Code Here

Examples of org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback()

        DefaultTransactionDefinition def = new DefaultTransactionDefinition();
        TransactionStatus status = aptm.getTransaction(def);
        ProcessInstance processInstance = ksession.startProcess("com.sample.bpmn.hello");
        long processInstanceId = processInstance.getId();
        aptm.rollback(status);

        processInstance = ksession.getProcessInstance(processInstanceId);

        if (processInstance == null) {
            System.out.println("Process instance rolled back");
View Full Code Here

Examples of org.sql2o.Connection.rollback()

        } finally {

            // always rollback, as this is only for tesing purposes.
            if (connection != null) {
                connection.rollback();
            }
        }


    }
View Full Code Here

Examples of org.switchyard.component.bpm.transaction.AS7TransactionHelper.rollback()

                    try {
                        utx.begin();
                        ret = method.invoke(_internalTaskService, args);
                        utx.commit();
                    } catch (Throwable t) {
                        utx.rollback();
                        throw t;
                    }
                    return ret;
                }
            }
View Full Code Here

Examples of org.teiid.client.DQP.rollback()

        @Override
        public Object answer(InvocationOnMock invocation) throws Throwable {
          return ResultsFuture.NULL_FUTURE;
        }
      });
      stub(dqp.rollback((XidImpl)Mockito.anyObject())).toAnswer(new Answer() {
        @Override
        public Object answer(InvocationOnMock invocation) throws Throwable {
          return ResultsFuture.NULL_FUTURE;
        }
      });
View Full Code Here

Examples of org.tmatesoft.hg.internal.Transaction.rollback()

    cf.add(dfB, new FileContentSupplier(hgRepo, modifiedFile));
    cf.forget(dfD);
    cf.branch("another-branch");
    Transaction tr = newTransaction(hgRepo);
    Nodeid commitRev = cf.commit("Commit to fail",  tr);
    tr.rollback();
    //
    errorCollector.assertEquals(lastClogRevision, hgRepo.getChangelog().getLastRevision());
    errorCollector.assertEquals(lastManifestRev, hgRepo.getManifest().getLastRevision());
    errorCollector.assertEquals(DEFAULT_BRANCH_NAME, DirstateReader.readBranch(Internals.getInstance(hgRepo)));
    errorCollector.assertFalse(hgRepo.getChangelog().isKnown(commitRev));
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.SqlJetDb.rollback()

        connect3.beginTransaction(SqlJetTransactionMode.READ_ONLY);
      } finally {
        try {
          connect1.rollback();
          connect2.rollback();
          connect3.rollback();
        } catch (Throwable e) {

        }
      }
    } finally {
View Full Code Here

Examples of ptolemy.backtrack.Checkpoint.rollback()

                if (!checkpoints.contains(checkpoint)) {
                    // Rollback with the current timestamp.
                    // States taken at the time when the timestamp is created
                    // are restored to the actors managed by this checkpoint
                    // object.
                    checkpoint.rollback(checkpoint.getTimestamp(), true);
                    checkpoints.add(checkpoint);
                }
            }
        }
    }
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.