Spring Integration

org.springframework.integration.transaction
Class PseudoTransactionManager

java.lang.Object
  extended by org.springframework.transaction.support.AbstractPlatformTransactionManager
      extended by org.springframework.integration.transaction.PseudoTransactionManager
All Implemented Interfaces:
java.io.Serializable, org.springframework.transaction.PlatformTransactionManager

public class PseudoTransactionManager
extends org.springframework.transaction.support.AbstractPlatformTransactionManager

An implementation of PlatformTransactionManager that provides transaction-like semantics to MessageSources that are not inherently transactional. It does not make such sources transactional; rather, together with a TransactionSynchronizationFactory, it provides the ability to synchronize operations after a flow completes, via beforeCommit, afterCommit and afterRollback operations.

Since:
2.2
Author:
Gary Russell, Oleg Zhurakousky
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
org.springframework.transaction.support.AbstractPlatformTransactionManager.SuspendedResourcesHolder
 
Field Summary
 
Fields inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
logger, SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION
 
Constructor Summary
PseudoTransactionManager()
           
 
Method Summary
protected  void doBegin(java.lang.Object transaction, org.springframework.transaction.TransactionDefinition definition)
           
protected  void doCommit(org.springframework.transaction.support.DefaultTransactionStatus status)
           
protected  java.lang.Object doGetTransaction()
           
protected  void doRollback(org.springframework.transaction.support.DefaultTransactionStatus status)
           
 
Methods inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
commit, determineTimeout, doCleanupAfterCompletion, doResume, doSetRollbackOnly, doSuspend, getDefaultTimeout, getTransaction, getTransactionSynchronization, invokeAfterCompletion, isExistingTransaction, isFailEarlyOnGlobalRollbackOnly, isGlobalRollbackOnParticipationFailure, isNestedTransactionAllowed, isRollbackOnCommitFailure, isValidateExistingTransaction, newTransactionStatus, prepareForCommit, prepareSynchronization, prepareTransactionStatus, registerAfterCompletionWithExistingTransaction, resume, rollback, setDefaultTimeout, setFailEarlyOnGlobalRollbackOnly, setGlobalRollbackOnParticipationFailure, setNestedTransactionAllowed, setRollbackOnCommitFailure, setTransactionSynchronization, setTransactionSynchronizationName, setValidateExistingTransaction, shouldCommitOnGlobalRollbackOnly, suspend, triggerBeforeCommit, triggerBeforeCompletion, useSavepointForNestedTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PseudoTransactionManager

public PseudoTransactionManager()
Method Detail

doGetTransaction

protected java.lang.Object doGetTransaction()
                                     throws org.springframework.transaction.TransactionException
Specified by:
doGetTransaction in class org.springframework.transaction.support.AbstractPlatformTransactionManager
Throws:
org.springframework.transaction.TransactionException

doBegin

protected void doBegin(java.lang.Object transaction,
                       org.springframework.transaction.TransactionDefinition definition)
                throws org.springframework.transaction.TransactionException
Specified by:
doBegin in class org.springframework.transaction.support.AbstractPlatformTransactionManager
Throws:
org.springframework.transaction.TransactionException

doCommit

protected void doCommit(org.springframework.transaction.support.DefaultTransactionStatus status)
                 throws org.springframework.transaction.TransactionException
Specified by:
doCommit in class org.springframework.transaction.support.AbstractPlatformTransactionManager
Throws:
org.springframework.transaction.TransactionException

doRollback

protected void doRollback(org.springframework.transaction.support.DefaultTransactionStatus status)
                   throws org.springframework.transaction.TransactionException
Specified by:
doRollback in class org.springframework.transaction.support.AbstractPlatformTransactionManager
Throws:
org.springframework.transaction.TransactionException

Spring Integration