Java 类org.springframework.transaction.TransactionSuspensionNotSupportedException 实例源码

项目:lams    文件:JtaTransactionManager.java   
/**
 * Perform a JTA resume on the JTA TransactionManager.
 * <p>Can be overridden in subclasses, for specific JTA implementations.
 * @param txObject the JtaTransactionObject containing the UserTransaction
 * @param suspendedTransaction the suspended JTA Transaction object
 * @throws InvalidTransactionException if thrown by JTA methods
 * @throws SystemException if thrown by JTA methods
 * @see #getTransactionManager()
 * @see javax.transaction.TransactionManager#resume(javax.transaction.Transaction)
 */
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);
}
项目:spring4-understanding    文件:JtaTransactionManager.java   
/**
 * Perform a JTA resume on the JTA TransactionManager.
 * <p>Can be overridden in subclasses, for specific JTA implementations.
 * @param txObject the JtaTransactionObject containing the UserTransaction
 * @param suspendedTransaction the suspended JTA Transaction object
 * @throws InvalidTransactionException if thrown by JTA methods
 * @throws SystemException if thrown by JTA methods
 * @see #getTransactionManager()
 * @see javax.transaction.TransactionManager#resume(javax.transaction.Transaction)
 */
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);
}
项目:class-guard    文件:JtaTransactionManager.java   
/**
 * Perform a JTA resume on the JTA TransactionManager.
 * <p>Can be overridden in subclasses, for specific JTA implementations.
 * @param txObject the JtaTransactionObject containing the UserTransaction
 * @param suspendedTransaction the suspended JTA Transaction object
 * @throws InvalidTransactionException if thrown by JTA methods
 * @throws SystemException if thrown by JTA methods
 * @see #getTransactionManager()
 * @see javax.transaction.TransactionManager#resume(javax.transaction.Transaction)
 */
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);
}
项目:spring-ldap    文件:ContextSourceAndHibernateTransactionManager.java   
protected Object doSuspend(Object transaction) {
    throw new TransactionSuspensionNotSupportedException(
            "Transaction manager [" + getClass().getName()
                    + "] does not support transaction suspension");
}
项目:spring-ldap    文件:ContextSourceAndHibernateTransactionManager.java   
protected void doResume(Object transaction, Object suspendedResources) {
    throw new TransactionSuspensionNotSupportedException(
            "Transaction manager [" + getClass().getName()
                    + "] does not support transaction suspension");
}
项目:spring-ldap    文件:ContextSourceAndDataSourceTransactionManager.java   
protected Object doSuspend(Object transaction) {
    throw new TransactionSuspensionNotSupportedException(
            "Transaction manager [" + getClass().getName()
                    + "] does not support transaction suspension");
}
项目:spring-ldap    文件:ContextSourceAndDataSourceTransactionManager.java   
protected void doResume(Object transaction, Object suspendedResources) {
    throw new TransactionSuspensionNotSupportedException(
            "Transaction manager [" + getClass().getName()
                    + "] does not support transaction suspension");
}
项目:lams    文件:JtaTransactionManager.java   
/**
 * Perform a JTA suspend on the JTA TransactionManager.
 * <p>Can be overridden in subclasses, for specific JTA implementations.
 * @param txObject the JtaTransactionObject containing the UserTransaction
 * @return the suspended JTA Transaction object
 * @throws SystemException if thrown by JTA methods
 * @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();
}
项目:spring4-understanding    文件:JtaTransactionManager.java   
/**
 * Perform a JTA suspend on the JTA TransactionManager.
 * <p>Can be overridden in subclasses, for specific JTA implementations.
 * @param txObject the JtaTransactionObject containing the UserTransaction
 * @return the suspended JTA Transaction object
 * @throws SystemException if thrown by JTA methods
 * @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();
}
项目:class-guard    文件:AbstractPlatformTransactionManager.java   
/**
 * Resume the resources of the current transaction.
 * Transaction synchronization will be resumed afterwards.
 * <p>The default implementation throws a TransactionSuspensionNotSupportedException,
 * assuming that transaction suspension is generally not supported.
 * @param transaction transaction object returned by {@code doGetTransaction}
 * @param suspendedResources the object that holds suspended resources,
 * as returned by doSuspend
 * @throws org.springframework.transaction.TransactionSuspensionNotSupportedException
 * 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");
}
项目:class-guard    文件:JtaTransactionManager.java   
/**
 * Perform a JTA suspend on the JTA TransactionManager.
 * <p>Can be overridden in subclasses, for specific JTA implementations.
 * @param txObject the JtaTransactionObject containing the UserTransaction
 * @return the suspended JTA Transaction object
 * @throws SystemException if thrown by JTA methods
 * @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();
}
项目:lams    文件:AbstractPlatformTransactionManager.java   
/**
 * Suspend the resources of the current transaction.
 * Transaction synchronization will already have been suspended.
 * <p>The default implementation throws a TransactionSuspensionNotSupportedException,
 * assuming that transaction suspension is generally not supported.
 * @param transaction transaction object returned by {@code doGetTransaction}
 * @return an object that holds suspended resources
 * (will be kept unexamined for passing it into doResume)
 * @throws 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");
}
项目:lams    文件:AbstractPlatformTransactionManager.java   
/**
 * Resume the resources of the current transaction.
 * Transaction synchronization will be resumed afterwards.
 * <p>The default implementation throws a TransactionSuspensionNotSupportedException,
 * assuming that transaction suspension is generally not supported.
 * @param transaction transaction object returned by {@code doGetTransaction}
 * @param suspendedResources the object that holds suspended resources,
 * as returned by doSuspend
 * @throws org.springframework.transaction.TransactionSuspensionNotSupportedException
 * 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");
}
项目:spring4-understanding    文件:AbstractPlatformTransactionManager.java   
/**
 * Suspend the resources of the current transaction.
 * Transaction synchronization will already have been suspended.
 * <p>The default implementation throws a TransactionSuspensionNotSupportedException,
 * assuming that transaction suspension is generally not supported.
 * @param transaction transaction object returned by {@code doGetTransaction}
 * @return an object that holds suspended resources
 * (will be kept unexamined for passing it into doResume)
 * @throws 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");
}
项目:spring4-understanding    文件:AbstractPlatformTransactionManager.java   
/**
 * Resume the resources of the current transaction.
 * Transaction synchronization will be resumed afterwards.
 * <p>The default implementation throws a TransactionSuspensionNotSupportedException,
 * assuming that transaction suspension is generally not supported.
 * @param transaction transaction object returned by {@code doGetTransaction}
 * @param suspendedResources the object that holds suspended resources,
 * as returned by doSuspend
 * @throws org.springframework.transaction.TransactionSuspensionNotSupportedException
 * 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");
}
项目:class-guard    文件:AbstractPlatformTransactionManager.java   
/**
 * Suspend the resources of the current transaction.
 * Transaction synchronization will already have been suspended.
 * <p>The default implementation throws a TransactionSuspensionNotSupportedException,
 * assuming that transaction suspension is generally not supported.
 * @param transaction transaction object returned by {@code doGetTransaction}
 * @return an object that holds suspended resources
 * (will be kept unexamined for passing it into doResume)
 * @throws 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");
}