Package org.springframework.transaction

Examples of org.springframework.transaction.TransactionSuspensionNotSupportedException


   * if suspending is not supported by the transaction manager implementation
   * @throws TransactionException in case of system errors
   * @see #doResume
   */
  protected Object doSuspend(Object transaction) throws TransactionException {
    throw new TransactionSuspensionNotSupportedException(
        "Transaction manager [" + getClass().getName() + "] does not support transaction suspension");
  }
View Full Code Here


   * if resuming is not supported by the transaction manager implementation
   * @throws TransactionException in case of system errors
   * @see #doSuspend
   */
  protected void doResume(Object transaction, Object suspendedResources) throws TransactionException {
    throw new TransactionSuspensionNotSupportedException(
        "Transaction manager [" + getClass().getName() + "] does not support transaction suspension");
  }
View Full Code Here

   * if suspending is not supported by the transaction manager implementation
   * @throws TransactionException in case of system errors
   * @see #doResume
   */
  protected Object doSuspend(Object transaction) throws TransactionException {
    throw new TransactionSuspensionNotSupportedException(
        "Transaction manager [" + getClass().getName() + "] does not support transaction suspension");
  }
View Full Code Here

   * if resuming is not supported by the transaction manager implementation
   * @throws TransactionException in case of system errors
   * @see #doSuspend
   */
  protected void doResume(Object transaction, Object suspendedResources) throws TransactionException {
    throw new TransactionSuspensionNotSupportedException(
        "Transaction manager [" + getClass().getName() + "] does not support transaction suspension");
  }
View Full Code Here

   * if suspending is not supported by the transaction manager implementation
   * @throws TransactionException in case of system errors
   * @see #doResume
   */
  protected Object doSuspend(Object transaction) throws TransactionException {
    throw new TransactionSuspensionNotSupportedException(
        "Transaction manager [" + getClass().getName() + "] does not support transaction suspension");
  }
View Full Code Here

   * if resuming is not supported by the transaction manager implementation
   * @throws TransactionException in case of system errors
   * @see #doSuspend
   */
  protected void doResume(Object transaction, Object suspendedResources) throws TransactionException {
    throw new TransactionSuspensionNotSupportedException(
        "Transaction manager [" + getClass().getName() + "] does not support transaction suspension");
  }
View Full Code Here

   * @see #getTransactionManager()
   * @see javax.transaction.TransactionManager#suspend()
   */
  protected Object doJtaSuspend(JtaTransactionObject txObject) throws SystemException {
    if (getTransactionManager() == null) {
      throw new TransactionSuspensionNotSupportedException(
          "JtaTransactionManager needs a JTA TransactionManager for suspending a transaction: " +
          "specify the 'transactionManager' or 'transactionManagerName' property");
    }
    return getTransactionManager().suspend();
  }
View Full Code Here

   */
  protected void doJtaResume(JtaTransactionObject txObject, Object suspendedTransaction)
      throws InvalidTransactionException, SystemException {

    if (getTransactionManager() == null) {
      throw new TransactionSuspensionNotSupportedException(
          "JtaTransactionManager needs a JTA TransactionManager for suspending a transaction: " +
          "specify the 'transactionManager' or 'transactionManagerName' property");
    }
    getTransactionManager().resume((Transaction) suspendedTransaction);
  }
View Full Code Here

   * if suspending is not supported by the transaction manager implementation
   * @throws TransactionException in case of system errors
   * @see #doResume
   */
  protected Object doSuspend(Object transaction) throws TransactionException {
    throw new TransactionSuspensionNotSupportedException(
        "Transaction manager [" + getClass().getName() + "] does not support transaction suspension");
  }
View Full Code Here

   * if resuming is not supported by the transaction manager implementation
   * @throws TransactionException in case of system errors
   * @see #doSuspend
   */
  protected void doResume(Object transaction, Object suspendedResources) throws TransactionException {
    throw new TransactionSuspensionNotSupportedException(
        "Transaction manager [" + getClass().getName() + "] does not support transaction suspension");
  }
View Full Code Here

TOP

Related Classes of org.springframework.transaction.TransactionSuspensionNotSupportedException

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.