Examples of rollBack()


Examples of org.conserve.connection.ConnectionWrapper.rollback()

    {
      res = getCount(cw, clazz, clause);
    }
    catch (Exception e)
    {
      cw.rollback();
      throw new SQLException(e);
    }
    cw.discard();
    return res;
  }
View Full Code Here

Examples of org.deuce.transaction.Context.rollback()

        }
      } else {
        if(context instanceof ControlContext)
          ControlContext.abort(((ControlContext)context).getContextId());
        else
          context.rollback();
        commit = true;
      }
    }
    throw new TransactionException("Failed to commit the transaction in the defined retries.");
  }
View Full Code Here

Examples of org.drools.persistence.Transaction.rollback()

      T result = super.executeNext(command);
      transaction.commit();
      return result;
    } catch (Throwable t) {
      try {
        transaction.rollback();
        throw new RuntimeException("Could not execute command", t);
      } catch (XAException e) {
        throw new RuntimeException("Could not rollback transaction", e);
      }
    }
View Full Code Here

Examples of org.drools.persistence.TransactionManager.rollback()

        try {
            boolean txOwner = txm.begin();
           
            boolean notTxOwner = txm.begin();
            em.persist(mainObject);
            txm.rollback(notTxOwner);
       
            em.persist(subObject);
            txm.rollback(txOwner);
        }
        catch( Exception e ) {
View Full Code Here

Examples of org.ethereum.facade.Repository.rollback()

        repository.createAccount(Hex.decode(addr));
        repository.addBalance(Hex.decode(addr), BigInteger.valueOf(55500));

        BigInteger balance =  repository.getBalance(Hex.decode(addr));
        assertEquals(expectedBalance_1, balance.longValue());
        repository.rollback();

        balance =  repository.getBalance(Hex.decode(addr));
        assertEquals(expectedBalance_2, balance.longValue());
    }
View Full Code Here

Examples of org.exolab.castor.jdo.Database.rollback()

        laptop.setName("laptop 1");

        database.begin();
        database.update(laptop);
        database.rollback();
       
        database.begin();
        laptop = (Laptop) database.load(Laptop.class, new Integer(1));
        database.commit();
View Full Code Here

Examples of org.exolab.jms.persistence.DatabaseService.rollback()

                    queue.getName());
        } catch (PersistenceException exception) {
            _log.error(exception, exception);
            try {
                if (service != null) {
                    service.rollback();
                }
            } catch (PersistenceException error) {
                _log.error(error, error);
            }
            throw new JMSException(exception.getMessage());
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.backup.DataRestore.rollback()

      assertTrue(dataSizeShouldNotExists(wsQuotaManager, "/testRoot/test1"));
      assertTrue(dataSizeShouldNotExists(wsQuotaManager, "/testRoot/test2"));
      assertTrue(quotaShouldNotExists(wsQuotaManager, "/testRoot/test1"));
      assertTrue(quotaShouldNotExists(wsQuotaManager, "/testRoot/test2"));

      restorer.rollback();

      assertEquals(dbQuotaManager.getRepositoryDataSize(), repDataSize);
      assertEquals(wsDataSize, wsQuotaManager.getWorkspaceDataSize());
      assertEquals(node1DataSize, wsQuotaManager.getNodeDataSize("/testRoot/test1"));
      assertEquals(node2DataSize, wsQuotaManager.getNodeDataSize("/testRoot/test2"));
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.backup.JCRRestor.rollback()

         // rollback
         for (DataRestor restorer : dataRestorer)
         {
            try
            {
               restorer.rollback();
            }
            catch (BackupException e)
            {
               log.error("Can't rollback changes", e);
            }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.backup.JCRRestore.rollback()

         // rollback
         for (DataRestore restorer : dataRestorer)
         {
            try
            {
               restorer.rollback();
            }
            catch (BackupException e)
            {
               log.error("Can't rollback changes", e);
            }
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.