Examples of rollBack()


Examples of org.apache.sqoop.repository.RepositoryTransaction.rollback()

        LOG.debug("Registered connector: " + handler.getMetadata());
      }
      rtx.commit();
    } catch (Exception ex) {
      if (rtx != null) {
        rtx.rollback();
      }
      throw new SqoopException(ConnectorError.CONN_0007, ex);
    } finally {
      if (rtx != null) {
        rtx.close();
View Full Code Here

Examples of org.apache.wookie.beans.util.IPersistenceManager.rollback()

                 _logger.info(message);
                 FlashMessage.getInstance().message(message);
               }
               persistenceManager.commit();
             } catch (IOException e) {
                            persistenceManager.rollback();
               String error = f.getName()+":"+localizedMessages.getString("WidgetHotDeploy.1") + " - " + e.getLocalizedMessage();
               FlashMessage.getInstance().error(error);
               _logger.error(error, e);
             } catch (BadWidgetZipFileException e) {
                            persistenceManager.rollback();
View Full Code Here

Examples of org.araneaframework.servlet.ServletAtomicResponseOutputExtension.rollback()

    out.getResponse().getOutputStream().write(new byte[] {1});
   
    out.getResponse().getWriter().write("Hello, Word!");
   
    if (doRollback) {
      are.rollback();
    }
  }

  public boolean getDoRollback() {
    return doRollback;
View Full Code Here

Examples of org.araneaframework.servlet.util.AtomicResponseHelper.rollback()

        log.debug("Routing request through standard continuation.");
        continuation._getService().action(path, input, output);
      }
     
      if (!isContinuationRunning()) {
        arUtil.rollback();
       
        Path scope = output.getScope();            
       
        try {                         
          try {
View Full Code Here

Examples of org.axonframework.unitofwork.UnitOfWork.rollback()

        uow.registerAggregate(aggregate, mock(EventBus.class), mock(SaveAggregateCallback.class));
        aggregate.doSomething();
        aggregate.doSomething();

        RuntimeException mockFailure = new RuntimeException("mock");
        uow.rollback(mockFailure);

        verify(mockAuditDataProvider, times(2)).provideAuditDataFor(any(CommandMessage.class));
        verify(mockAuditLogger, never()).logSuccessful(eq(command), any(Object.class), any(List.class));
        verify(mockAuditLogger).logFailed(eq(command), eq(mockFailure), listWithTwoEventMessages());
    }
View Full Code Here

Examples of org.b3log.latke.repository.Transaction.rollback()

            statisticMgmtService.decPublishedBlogCommentCount();

            transaction.commit();
        } catch (final Exception e) {
            if (transaction.isActive()) {
                transaction.rollback();
            }

            LOGGER.log(Level.ERROR, "Removes a comment of a page failed", e);
            throw new ServiceException(e);
        }
View Full Code Here

Examples of org.castor.persist.TransactionContext.rollback()

            // and terminating XA source
            _xaSource.xaFailed();
            _xaSource.setTransactionContext(null);
            if (tx.isOpen()) {
                try {
                    tx.rollback();
                } catch (Exception except) {
                    LOG.debug("Exception at rollback of TransactionContext.");
                }
            }
            break;
View Full Code Here

Examples of org.codehaus.activemq.service.Transaction.rollback()

        try {
            for (int i = 0; i < containerManagers.length; i++) {
                containerManagers[i].rollbackTransaction(client, transactionId);
            }
            Transaction transaction = transactionManager.getLocalTransaction(transactionId);
            transaction.rollback();
        }
        catch (XAException e) {
            // TODO: I think the XAException should propagate all the way to the client.
            throw (JMSException) new JMSException(e.getMessage()).initCause(e);
        }
View Full Code Here

Examples of org.compass.core.CompassSession.rollback()

    try {
      session.delete(aktuellesArchivale);
      session.commit();
    } catch (CompassException ce) {
      ce.printStackTrace();
      session.rollback();
    }

    entityManager.getTransaction().commit();
    session.close();
    entityManager.close();
View Full Code Here

Examples of org.compiere.util.Trx.rollback()

        if ( DB.executeUpdate(insert.toString(), trxName) < 0 )
        {
          String msg = "No Invoices";     //  not translated!
          info = msg;
          log.config(msg);
          trx.rollback();
          return info;
        }
        insert = new StringBuffer();
        insert.append("INSERT INTO T_SELECTION(AD_PINSTANCE_ID, T_SELECTION_ID) ");
        counter = 0;
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.