Examples of rollback()


Examples of com.caucho.db.xa.DbTransaction.rollback()

    if (xa != null) {
      if (log.isLoggable(Level.FINER))
        log.finer("rollback " + this + " " + _xa);
   
      xa.rollback();
    }
  }

  @Override
  public java.sql.Statement createStatement()
View Full Code Here

Examples of com.caucho.db.xa.Transaction.rollback()

      if (! xa.isAutoCommit()) {
      }
      else if (isOkay)
        xa.commit();
      else
        xa.rollback();
    }

    _rs = new ResultSetImpl(this, queryContext.getResult());

    return _rs;
View Full Code Here

Examples of com.ccbill.clessidra.interfaces.LimiterStrategy.rollback()

    rollback(methodGroup, invocationUUID, args);

    LimiterStrategy nextLimiterStrategy = getNextLimiterStrategy();
    if (nextLimiterStrategy != null) {
      nextLimiterStrategy.rollback(methodGroup, invocationUUID, args);
    }

  }

  /**
 
View Full Code Here

Examples of com.cetsoft.imcache.cache.heap.tx.Transaction.rollback()

    try {
      cache.put(3, 5);
      cache.put(10, 14);
      transaction1.commit();
    } catch (TransactionException exception) {
      transaction1.rollback();
    } finally {
      transaction1.close();
    }
    System.out.println("Value for the key 3 is " + cache.get(3));
    System.out.println("Value for the key 10 is " + cache.get(10));
View Full Code Here

Examples of com.cloud.utils.db.Transaction.rollback()

                                        }
                                        stats.setCurrentBytesSent(answer.getBytesSent());
                                        _statsDao.update(stats.getId(), stats);
                                        txn.commit();
                                    } catch (Exception e) {
                                        txn.rollback();
                                        s_logger.warn("Unable to update user statistics for account: " + router.getAccountId()
                                                + " Rx: " + answer.getBytesReceived() + "; Tx: " + answer.getBytesSent());
                                    } finally {
                                        txn.close();
                                    }
View Full Code Here

Examples of com.cloud.utils.db.TransactionLegacy.rollback()

                s_logger.error("Simulator does not implement command of type "+cmd.toString());
                return Answer.createUnsupportedCommandAnswer(cmd);
            }
        } catch(Exception e) {
            s_logger.error("Failed execute cmd: ", e);
            txn.rollback();
            return new Answer(cmd, false, e.toString());
        } finally {
            txn.close();
            txn = TransactionLegacy.open(TransactionLegacy.CLOUD_DB);
            txn.close();
View Full Code Here

Examples of com.conexao.Transacao.rollback()

            }
            t.commit();

        }catch(Exception ex){           
            ex.printStackTrace();
            t.rollback();
        }
    }

}
View Full Code Here

Examples of com.db4o.ObjectContainer.rollback()

    System.err.println("END DATABASE DUMP: "+total+" objects");
    } catch (Db4oException e) {
      System.err.println("Unable to dump database contents. Treating as corrupt database.");
      e.printStackTrace();
      try {
        database.rollback();
      } catch (Throwable t) {} // ignore, closing
      try {
        database.close();
      } catch (Throwable t) {} // ignore, closing
      database = null;
View Full Code Here

Examples of com.dci.intellij.dbn.connection.transaction.DatabaseTransactionManager.rollback()

    public void actionPerformed(AnActionEvent e) {
        Project project = ActionUtil.getProject(e);
        if (project != null) {
            DatabaseTransactionManager transactionManager = DatabaseTransactionManager.getInstance(project);
            transactionManager.rollback(connectionHandler, false, false);
        }
    }

    @Override
    public void update(AnActionEvent e) {
View Full Code Here

Examples of com.din.din.model.util.EntityCachingManager.rollback()

        Logger.getLogger(RecipeManager.class.getSimpleName()).log(Level.WARNING, "Error deleting recipe!", e);
        BeanUtil.addMessage(FacesMessage.SEVERITY_ERROR, "delete.error", e.getMessage());
      } finally {
        if(transaction.isActive()) {
          transaction.rollback();
          cache.rollback();
        }
        entityManager.close();
      }
    }
    if(success) {
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.