Spring LDAP

org.springframework.ldap.transaction.compensating.manager
Class ContextSourceAndDataSourceTransactionManager

java.lang.Object
  extended by org.springframework.transaction.support.AbstractPlatformTransactionManager
      extended by org.springframework.jdbc.datasource.DataSourceTransactionManager
          extended by org.springframework.ldap.transaction.compensating.manager.ContextSourceAndDataSourceTransactionManager
All Implemented Interfaces:
Serializable, InitializingBean, PlatformTransactionManager, ResourceTransactionManager

Deprecated. The idea of wrapping two transaction managers without actual XA support is probably not such a good idea after all. AbstractPlatformTransactionManager is not designed for this usage.

public class ContextSourceAndDataSourceTransactionManager
extends DataSourceTransactionManager

A Transaction Manager to manage LDAP and JDBC operations within the same transaction. Note that even though the same logical transaction is used, this is not a JTA XA transaction; no two-phase commit will be performed, and thus commit and rollback may yield unexpected results. Note that nested transactions are not supported.

Since:
1.2
Author:
Mattias Hellborg Arthursson
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
AbstractPlatformTransactionManager.SuspendedResourcesHolder
 
Field Summary
 
Fields inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
logger, SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION
 
Constructor Summary
ContextSourceAndDataSourceTransactionManager()
          Deprecated.  
 
Method Summary
 void afterPropertiesSet()
          Deprecated.  
protected  void doBegin(Object transaction, TransactionDefinition definition)
          Deprecated.  
protected  void doCleanupAfterCompletion(Object transaction)
          Deprecated.  
protected  void doCommit(DefaultTransactionStatus status)
          Deprecated.  
protected  Object doGetTransaction()
          Deprecated.  
protected  void doResume(Object transaction, Object suspendedResources)
          Deprecated.  
protected  void doRollback(DefaultTransactionStatus status)
          Deprecated.  
protected  Object doSuspend(Object transaction)
          Deprecated.  
 ContextSource getContextSource()
          Deprecated.  
protected  boolean isExistingTransaction(Object transaction)
          Deprecated.  
 void setContextSource(ContextSource contextSource)
          Deprecated.  
 void setRenamingStrategy(TempEntryRenamingStrategy renamingStrategy)
          Deprecated.  
 
Methods inherited from class org.springframework.jdbc.datasource.DataSourceTransactionManager
doSetRollbackOnly, getDataSource, getResourceFactory, setDataSource
 
Methods inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
commit, determineTimeout, getDefaultTimeout, getTransaction, getTransactionSynchronization, invokeAfterCompletion, 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
 
Methods inherited from interface org.springframework.transaction.PlatformTransactionManager
commit, getTransaction, rollback
 

Constructor Detail

ContextSourceAndDataSourceTransactionManager

public ContextSourceAndDataSourceTransactionManager()
Deprecated. 
Method Detail

isExistingTransaction

protected boolean isExistingTransaction(Object transaction)
Deprecated. 
Overrides:
isExistingTransaction in class DataSourceTransactionManager

doGetTransaction

protected Object doGetTransaction()
Deprecated. 
Overrides:
doGetTransaction in class DataSourceTransactionManager

doBegin

protected void doBegin(Object transaction,
                       TransactionDefinition definition)
Deprecated. 
Overrides:
doBegin in class DataSourceTransactionManager

doCleanupAfterCompletion

protected void doCleanupAfterCompletion(Object transaction)
Deprecated. 
Overrides:
doCleanupAfterCompletion in class DataSourceTransactionManager

doCommit

protected void doCommit(DefaultTransactionStatus status)
Deprecated. 
Overrides:
doCommit in class DataSourceTransactionManager

doRollback

protected void doRollback(DefaultTransactionStatus status)
Deprecated. 
Overrides:
doRollback in class DataSourceTransactionManager

getContextSource

public ContextSource getContextSource()
Deprecated. 

setContextSource

public void setContextSource(ContextSource contextSource)
Deprecated. 

setRenamingStrategy

public void setRenamingStrategy(TempEntryRenamingStrategy renamingStrategy)
Deprecated. 

doSuspend

protected Object doSuspend(Object transaction)
Deprecated. 
Overrides:
doSuspend in class DataSourceTransactionManager

doResume

protected void doResume(Object transaction,
                        Object suspendedResources)
Deprecated. 
Overrides:
doResume in class DataSourceTransactionManager

afterPropertiesSet

public void afterPropertiesSet()
Deprecated. 
Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class DataSourceTransactionManager

Spring LDAP