Examples of rollback()


Examples of liquibase.changelog.ChangeSet.rollback()

    @Test
    public void visit() throws Exception {
        Database database = createMock(Database.class);

        ChangeSet changeSet = createMock(ChangeSet.class);
        changeSet.rollback(database);
        expectLastCall();


        database.removeRanStatus(changeSet);
        expectLastCall();
View Full Code Here

Examples of marauroa.server.db.TransactionPool.rollback()

      props.put("jdbc_class", "com.mysql.jdbc.Driver");
      props.put("jdbc_user", "junittest");
      props.put("jdbc_pwd", "passwd");

      TransactionPool pool = new TransactionPool(props);
      pool.rollback(pool.beginWork());
      pool.close();
    } catch (Exception e) {
      throw new Exception("Database is not accessible. Please check \"marauroatest\" is created and that user \"junittest\" with password \"passwd\" can access it.", e);
    }
  }
View Full Code Here

Examples of me.taylorkelly.bigbrother.datablock.BBDataBlock.rollback()

            while (count < BBSettings.rollbacksPerTick && listBlocks.size() > 0) {
                BBDataBlock dataBlock = listBlocks.removeFirst();
                if (dataBlock != null) {
                    lastRollback.addFirst(dataBlock);
                    try {
                        dataBlock.rollback(server.getWorld(dataBlock.world));
                    } catch (Exception e) {
                        BBLogging.warning("Caught exception when rolling back a " + dataBlock.action);
                    }
                    count++;
                }
View Full Code Here

Examples of mireka.pop.store.MaildropAppender.rollback()

            try {
                out = appender.getOutputStream();
            } catch (LocalMailSystemException e) {
                logger.error("Cannot accept mail because of a "
                        + "maildrop failure", e);
                appender.rollback();
                throw new RejectExceptionExt(e.errorStatus());
            }
            try {
                out.write(constructReturnPathLine(mail));
                mail.mailData.writeTo(out);
View Full Code Here

Examples of net.fortytwo.twitlogic.persistence.TweetStoreConnection.rollback()

                    Feature f = pc.persist(p);
                    ph.submit(p, f);
                    c.commit();
                }
            } finally {
                c.rollback();
                c.close();
            }
        } finally {
            store.shutDown();
        }
View Full Code Here

Examples of net.sf.ehcache.transaction.local.LocalTransactionContext.rollback()

        }

        LocalTransactionContext currentTx = contextMap.get(txId);

        try {
            currentTx.rollback();
            statistics.transactionRolledBack();
        } finally {
            contextMap.remove(txId);
            currentTransactionIdThreadLocal.remove();
            MDC.remove(MDC_KEY);
View Full Code Here

Examples of net.sf.hibernate.Transaction.rollback()

                  "CONSTRAINT RoleFK FOREIGN KEY (rolename) REFERENCES role (rolename) ON UPDATE CASCADE ON DELETE CASCADE" +
                ");"
            );
            tx.commit();
        } catch (Exception e) {
            tx.rollback();
        }
    }
}
View Full Code Here

Examples of net.sf.xbus.base.core.TAManager.rollback()

                  + xbusSystem.getCompleteName());
          Trace.info("----------------------------------------");
        }
        else
        {
          taManager.rollback();
          handleError(null, xbusSystem, requestContent);
          Trace.info("Error while processing "
              + xbusSystem.getCompleteName());
          Trace.info("----------------------------------------");
        }
View Full Code Here

Examples of net.sf.xbus.technical.mq.MQConnection.rollback()

        }
        catch (Exception exc)
        {
          System.out.println("Exception gefangen!");
          exc.printStackTrace();
          mqCon.rollback();
          continue;
        }
      }

      mqCon.commit();
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.sql.ISQLConnection.rollback()

        //i18n[ImportDataIntoTableExecutor.error=Error]
        JOptionPane.showMessageDialog(session.getApplication().getMainFrame(), stringMgr.getString("ImportDataIntoTableExecutor.sqlException"), stringMgr.getString("ImportDataIntoTableExecutor.error"), JOptionPane.ERROR_MESSAGE);
        log.error("Database error", sqle);
      } catch (UnsupportedFormatException ufe) {
        try {
            conn.rollback();
        } catch (Exception e) {
            log.error("Unexpected exception while attempting to rollback: "
                      +e.getMessage(), e);
        }
        log.error("Unsupported format.", ufe);
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.