Package org.springframework.transaction

Examples of org.springframework.transaction.PlatformTransactionManager.rollback()


                if (transactionData.rolledBack) {
                    // Something has previously rolled back, forcing this transaction to rollback
                  if (_log.isDebugEnabled()) {
                    _log.debug("Commit Transaction (will rollback): " + transactionData);
                  }
                    aTxn.rollback(currentStatus);
                    statistics.incrementRollbackCount();
                }
                else {
                  if (_log.isDebugEnabled()) {
                    _log.debug("Commit Transaction: " + transactionData);
View Full Code Here


    ptm.getTransaction(txatt);
    ptmControl.setReturnValue(status, 1);

    if (shouldRollback) {
      ptm.rollback(status);
    }
    else {
      ptm.commit(status);
    }
    TransactionSystemException tex = new TransactionSystemException("system exception");
View Full Code Here

     
      // Commit the transaction.
      transactionManager.commit(transactionStatus);
    }
    catch(DataAccessException e) {
      transactionManager.rollback(transactionStatus);
      throw
        new OmhException(
          "There was a problem storing the authentication token.",
          e);
    }
View Full Code Here

            response.getGranted()
            }
          );
    }
    catch(DataAccessException e) {
      transactionManager.rollback(transactionStatus);
      throw
        new OmhException(
          "There was a problem storing the authorization code " +
            "response.",
          e);
View Full Code Here

    // Commit the transaction.
    try {
      transactionManager.commit(transactionStatus);
    }
    catch(DataAccessException e) {
      transactionManager.rollback(transactionStatus);
      throw
        new OmhException(
          "There was a problem storing the authorization code " +
            "response.",
          e);
View Full Code Here

     
      // Commit the transaction.
      transactionManager.commit(transactionStatus);
    }
    catch(DataAccessException e) {
      transactionManager.rollback(transactionStatus);
      throw
        new OmhException(
          "There was a problem storing the third-party.",
          e);
    }
View Full Code Here

                        switch (opStatus) {
                            case Committed:
                                manager.commit(txStatus);
                                break;
                            case RolledBack:
                                manager.rollback(txStatus);
                                break;
                            default:
                                fail("Unknown status action: " + opStatus);
                        }
View Full Code Here

     
      // Commit the transaction.
      transactionManager.commit(transactionStatus);
    }
    catch(DataAccessException e) {
      transactionManager.rollback(transactionStatus);
      throw new OmhException("There was a problem storing the user.", e);
    }
  }

  /*
 
View Full Code Here

     
      // Commit the transaction.
      transactionManager.commit(transactionStatus);
    }
    catch(DataAccessException e) {
      transactionManager.rollback(transactionStatus);
      throw new OmhException("There was a problem storing the user.", e);
    }
  }
 
  /*
 
View Full Code Here

     
      // Commit the transaction.
      transactionManager.commit(transactionStatus);
    }
    catch(DataAccessException e) {
      transactionManager.rollback(transactionStatus);
      throw
        new OmhException(
          "There was a problem storing the authorization token.",
          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.