Examples of rollback()


Examples of bitronix.tm.BitronixTransactionManager.rollback()

        if (log.isDebugEnabled()) log.debug("*** reusing connection 1");
        connection1.createStatement();
        if (log.isDebugEnabled()) log.debug("*** marking subTX as rollback only");
        tm.setRollbackOnly();
        if (log.isDebugEnabled()) log.debug("*** rolling back");
        tm.rollback();
        if (log.isDebugEnabled()) log.debug("*** rolling back");

        if (log.isDebugEnabled()) log.debug("*** subTX is done");
        tm.resume(t1);

View Full Code Here

Examples of br.gov.frameworkdemoiselle.exception.ApplicationException.rollback()

    if (!transaction.isMarkedRollback()) {
      boolean rollback = false;
      ApplicationException annotation = cause.getClass().getAnnotation(ApplicationException.class);

      if (annotation == null || annotation.rollback()) {
        rollback = true;
      }

      if (rollback) {
        transaction.setRollbackOnly();
View Full Code Here

Examples of br.gov.frameworkdemoiselle.transaction.Transaction.rollback()

    if (transactionInfo.getCounter() == 0 && transaction.isActive()) {

      if (transactionInfo.isOwner()) {
        if (transaction.isMarkedRollback()) {
          transaction.rollback();
          transactionInfo.clear();

          getLogger().info(getBundle().getString("transaction-rolledback"));

        } else {
View Full Code Here

Examples of co.paralleluniverse.galaxy.quasar.Store.rollback()

                store.commit(txn);
                RemoteChannelReceiver.getReceiver(LocalActor.getMailbox(actor), true).handleRefMessage(new GlxRemoteChannel.RefMessage(true, grid.cluster().getMyNodeId()));
                return root; // root is the global id
            } catch (TimeoutException e) {
                LOG.error("Registering actor {} at root {} failed due to timeout", actor, rootName);
                store.rollback(txn);
                store.abort(txn);
                throw new RuntimeException("Actor registration failed");
            }
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
View Full Code Here

Examples of com.adito.jdbc.JDBCPreparedStatement.rollback()

                ps.execute();
            }

            ps.commit();
        } catch (Exception e) {
            ps.rollback();
            throw e;
        } finally {
            ps.releasePreparedStatement();
            ps.endTransaction();
        }
View Full Code Here

Examples of com.alibaba.druid.pool.DruidPooledConnection.rollback()

        conn.setHoldability(ResultSet.CLOSE_CURSORS_AT_COMMIT);
        Assert.assertEquals(ResultSet.CLOSE_CURSORS_AT_COMMIT, conn.getHoldability());

        conn.setSavepoint();
        conn.setSavepoint("savepoint");
        conn.rollback();
        {
            Exception error = null;
            try {
                conn.rollback(null);
            } catch (SQLException e) {
View Full Code Here

Examples of com.alibaba.druid.pool.xa.JtdsXAResource.rollback()

            Assert.assertNotNull(error);
        }
        {
            Exception error = null;
            try {
                xaResource.rollback(null);
            } catch (Exception ex) {
                error = ex;
            }
            Assert.assertNotNull(error);
        }
View Full Code Here

Examples of com.alibaba.otter.canal.store.memory.MemoryEventStoreWithBuffer.rollback()

        System.out.println("start get");
        Events<Event> entrys1 = eventStore.tryGet(first, bufferSize);
        System.out.println("first get size : " + entrys1.getEvents().size());

        eventStore.rollback();

        entrys1 = eventStore.tryGet(first, bufferSize);
        System.out.println("after rollback get size : " + entrys1.getEvents().size());
        Assert.assertTrue(entrys1.getEvents().size() == bufferSize / 2);
View Full Code Here

Examples of com.alu.e3.common.transaction.ITransaction.rollback()

    tx.begin();
    assertNotNull (tx.getTransactionId());
    assertNotNull (txMnger.getTransactionContext().getTransactionId());
    assertEquals (txMnger.getTransactionContext().getTransactionId(), tx.getTransactionId());

    tx.rollback();
    assertNull(tx.getTransactionId());
    assertNull(txMnger.getTransactionContext());

    // begin, commit, rollback
    tx = txMnger.getNewTransaction();
View Full Code Here

Examples of com.arjuna.ats.internal.jta.resources.jts.orbspecific.XAResourceRecord.rollback()

                                RecoveryCoordinator recCoord = _theTransaction.registerResource(xaResourceRecord.getResource());
                                xaResourceRecord.setRecoveryCoordinator(recCoord);
                            } catch(Exception e) {
                                // we called start on the resource, but _theTransaction did not accept it.
                                // we therefore have a mess which we must now clean up by ensuring the start is undone:
                                xaResourceRecord.rollback();
                                markRollbackOnly();
                                return false;
                            }
                            _resources.put(xaRes, new TxInfo(xid));
                            return true; // dive out, no need to set associatedWork = true;
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.