Examples of rollback()


Examples of com.skyline.energy.annotation.Transaction.rollback()

    Annotation annotation = actualMethod.getAnnotation(Transaction.class);
    Transaction tx = (Transaction) annotation;
    if(tx != null) {
      this.isolationLevel = tx.isolation();
      this.readOnly = tx.readonly();
      this.rollback = tx.rollback();
      needTransaction = true;
    } else {
      needTransaction = false;
    }
  }
View Full Code Here

Examples of com.sleepycat.je.XAEnvironment.rollback()

      xaEnv2 = (XAEnvironment) env;
      Transaction recoveryXATxn1 = xaEnv2.getXATransaction(xid1);
      Transaction recoveryXATxn2 = xaEnv2.getXATransaction(xid2);
      xaEnv2.commit(xid1, false);
      xaEnv2.rollback(xid2);
      verifyData(expectedData1, false, 0, NUM_DBS);
      verifyData(expectedData2, false, NUM_DBS, NUM_DBS << 1);
      forceCloseEnvOnly();
      xaRecoverOnly(NUM_DBS);
      verifyData(expectedData1, false, 0, NUM_DBS);
View Full Code Here

Examples of com.sleepycat.je.recovery.RollbackTracker.Scanner.rollback()

                         * If an LN is in the rollback period and was part of a
                         * rollback, let the rollback scanner decide how it
                         * should be handled. This does not include LNs that
                         * were explicitly aborted.
                         */
                        rollbackScanner.rollback(txnId, reader, tracker);
                        continue;
                    }

                    /* This LN is part of a committed txn. */
                    if (committedTxnIds.containsKey(txnId)) {
View Full Code Here

Examples of com.splout.db.qnode.QNodeHandler.rollback()

      handler.init(config);
     
      List<SwitchVersionRequest> rRequest = new ArrayList<SwitchVersionRequest>();
      SwitchVersionRequest theRequest = new SwitchVersionRequest("t1", 3);
      rRequest.add(theRequest);
      handler.rollback(rRequest);
     
      new TestUtils.NotWaitingForeverCondition() {
        @Override
        public boolean endCondition() {
          return handler.getContext().getCurrentVersionsMap().get("t1") != null &&
View Full Code Here

Examples of com.sun.enterprise.ee.synchronization.store.SynchronizationMemento.rollback()

            assertTrue( getBackupFile(f).exists() );
            System.out.println("Memento after backup: "
                + getBackupFile(f).getPath());

            // rollback
            m.rollback();

            // ensures that the original file exists
            assertTrue( f.exists() );
            assertFalse( getBackupFile(f).exists() );
            System.out.println("Memento after rollback: " + f.getPath());
View Full Code Here

Examples of com.sun.enterprise.transaction.api.JavaEETransaction.rollback()

                            }else if(transactionCompletionMode.equalsIgnoreCase(ROLLBACK)){
                                if(_logger.isLoggable(Level.FINEST)){
                                    _logger.log(Level.FINEST,"Transaction Completion Mode for LocalTx resource is " +
                                        "set as ROLLBACK, rolling back transaction");
                                }
                                j2eetran.rollback();
                            }else{
                                _logger.log(Level.WARNING,"Unknown transaction completion mode, no action made");
                            }
                        }catch(Exception e){
                            _logger.log(Level.WARNING, "Failure while forcibily completing an incomplete, " +
View Full Code Here

Examples of com.sun.enterprise.transaction.api.JavaEETransactionManager.rollback()

                logger.warning("NON-NULL TX IN AFTER_EXECUTE. TX STATUS: " + st);
                if (st == Status.STATUS_ROLLEDBACK || st == Status.STATUS_COMMITTED ||
                        st == Status.STATUS_UNKNOWN) {
                    tm.clearThreadTx();
                } else {
                    tm.rollback();
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of com.taobao.metamorphosis.client.producer.MessageProducer.rollback()

                // ��ʼ����
                producer.beginTransaction();
                // �������ڷ���������Ϣ
                if (!producer.sendMessage(new Message(topic, line.getBytes())).isSuccess()) {
                    // ����ʧ�ܣ������ع�
                    producer.rollback();
                    continue;
                }
                if (!producer.sendMessage(new Message(topic, line.getBytes())).isSuccess()) {
                    producer.rollback();
                    continue;
View Full Code Here

Examples of com.taobao.metamorphosis.client.transaction.TransactionContext.rollback()

     */
    @Override
    public void rollback() throws MetaClientException {
        try {
            final TransactionContext ctx = this.getTx();
            ctx.rollback();
        }
        finally {
            this.resetLastSentInfo();
            this.transactionContext.remove();
        }
View Full Code Here

Examples of com.taobao.metamorphosis.server.transaction.Transaction.rollback()

    @Override
    public void rollbackTransaction(final SessionContext context, final TransactionId xid) throws Exception {
        this.statsManager.statsTxRollback(1);
        final Transaction transaction = this.getTransaction(context, xid);
        transaction.rollback();
    }


    @Override
    public void forgetTransaction(final SessionContext context, final TransactionId xid) throws Exception {
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.