Package org.springframework.transaction

Examples of org.springframework.transaction.NestedTransactionNotSupportedException


    try {
      doJiniBegin(txObject, definition);
    }
    catch (NotSupportedException ex) {
      // assume nested transaction not supported
      throw new NestedTransactionNotSupportedException(
          "Jini implementation does not support nested transactions",
          ex);
    }
    catch (UnsupportedOperationException ex) {
      // assume nested transaction not supported
      throw new NestedTransactionNotSupportedException(
          "Jini implementation does not support nested transactions",
          ex);
    }
    catch (SystemException ex) {
      throw new CannotCreateTransactionException("Jini failure on begin",
View Full Code Here


      getSavepointManager().releaseSavepoint(savepoint);
    }

    private SavepointManager getSavepointManager() {
      if (!isSavepointAllowed()) {
        throw new NestedTransactionNotSupportedException(
            "Transaction manager does not allow nested transactions");
      }
      SavepointManager savepointManager = getEntityManagerHolder().getSavepointManager();
      if (savepointManager == null) {
        throw new NestedTransactionNotSupportedException(
            "JpaDialect does not support savepoints - check your JPA provider's capabilities");
      }
      return savepointManager;
    }
View Full Code Here

          definition, transaction, true, newSynchronization, debugEnabled, suspendedResources);
    }

    if (definition.getPropagationBehavior() == TransactionDefinition.PROPAGATION_NESTED) {
      if (!isNestedTransactionAllowed()) {
        throw new NestedTransactionNotSupportedException(
            "Transaction manager does not allow nested transactions by default - " +
            "specify 'nestedTransactionAllowed' property with value 'true'");
      }
      if (debugEnabled) {
        logger.debug("Creating nested transaction with name [" + definition.getName() + "]");
View Full Code Here

          definition, transaction, true, newSynchronization, debugEnabled, suspendedResources);
    }

    if (definition.getPropagationBehavior() == TransactionDefinition.PROPAGATION_NESTED) {
      if (!isNestedTransactionAllowed()) {
        throw new NestedTransactionNotSupportedException(
            "Transaction manager does not allow nested transactions by default - " +
            "specify 'nestedTransactionAllowed' property with value 'true'");
      }
      if (debugEnabled) {
        logger.debug("Creating nested transaction with name [" + definition.getName() + "]");
View Full Code Here

          definition, transaction, true, newSynchronization, debugEnabled, suspendedResources);
    }

    if (definition.getPropagationBehavior() == TransactionDefinition.PROPAGATION_NESTED) {
      if (!isNestedTransactionAllowed()) {
        throw new NestedTransactionNotSupportedException(
            "Transaction manager does not allow nested transactions by default - " +
            "specify 'nestedTransactionAllowed' property with value 'true'");
      }
      if (debugEnabled) {
        logger.debug("Creating nested transaction with name [" + definition.getName() + "]");
View Full Code Here

      getSavepointManager().releaseSavepoint(savepoint);
    }

    private SavepointManager getSavepointManager() {
      if (!isSavepointAllowed()) {
        throw new NestedTransactionNotSupportedException(
            "Transaction manager does not allow nested transactions");
      }
      SavepointManager savepointManager = getEntityManagerHolder().getSavepointManager();
      if (savepointManager == null) {
        throw new NestedTransactionNotSupportedException(
            "JpaDialect does not support savepoints - check your JPA provider's capabilities");
      }
      return savepointManager;
    }
View Full Code Here

    try {
      doJtaBegin(txObject, definition);
    }
    catch (NotSupportedException ex) {
      // assume nested transaction not supported
      throw new NestedTransactionNotSupportedException(
          "JTA implementation does not support nested transactions", ex);
    }
    catch (UnsupportedOperationException ex) {
      // assume nested transaction not supported
      throw new NestedTransactionNotSupportedException(
          "JTA implementation does not support nested transactions", ex);
    }
    catch (SystemException ex) {
      throw new CannotCreateTransactionException("JTA failure on begin", ex);
    }
View Full Code Here

      getSavepointManager().releaseSavepoint(savepoint);
    }

    private SavepointManager getSavepointManager() {
      if (!isSavepointAllowed()) {
        throw new NestedTransactionNotSupportedException(
            "Transaction manager does not allow nested transactions");
      }
      SavepointManager savepointManager = getEntityManagerHolder().getSavepointManager();
      if (savepointManager == null) {
        throw new NestedTransactionNotSupportedException(
            "JpaDialect does not support savepoints - check your JPA provider's capabilities");
      }
      return savepointManager;
    }
View Full Code Here

      }
    }

    if (definition.getPropagationBehavior() == TransactionDefinition.PROPAGATION_NESTED) {
      if (!isNestedTransactionAllowed()) {
        throw new NestedTransactionNotSupportedException(
            "Transaction manager does not allow nested transactions by default - " +
            "specify 'nestedTransactionAllowed' property with value 'true'");
      }
      if (debugEnabled) {
        logger.debug("Creating nested transaction with name [" + definition.getName() + "]");
View Full Code Here

   * of the underlying transaction object, if any.
   */
  @Override
  protected SavepointManager getSavepointManager() {
    if (!isTransactionSavepointManager()) {
      throw new NestedTransactionNotSupportedException(
          "Transaction object [" + getTransaction() + "] does not support savepoints");
    }
    return (SavepointManager) getTransaction();
  }
View Full Code Here

TOP

Related Classes of org.springframework.transaction.NestedTransactionNotSupportedException

Copyright © 2018 www.massapicom. 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.