Class ContextSourceAndDataSourceTransactionManager
java.lang.Object
org.springframework.transaction.support.AbstractPlatformTransactionManager
org.springframework.jdbc.datasource.DataSourceTransactionManager
org.springframework.ldap.transaction.compensating.manager.ContextSourceAndDataSourceTransactionManager
- All Implemented Interfaces:
Serializable,org.springframework.beans.factory.InitializingBean,org.springframework.transaction.ConfigurableTransactionManager,org.springframework.transaction.PlatformTransactionManager,org.springframework.transaction.support.ResourceTransactionManager,org.springframework.transaction.TransactionManager
@Deprecated
public class ContextSourceAndDataSourceTransactionManager
extends org.springframework.jdbc.datasource.DataSourceTransactionManager
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.
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
- See Also:
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.protected voidDeprecated.protected voiddoCleanupAfterCompletion(Object transaction) Deprecated.protected voiddoCommit(org.springframework.transaction.support.DefaultTransactionStatus status) Deprecated.protected ObjectDeprecated.protected voidDeprecated.protected voiddoRollback(org.springframework.transaction.support.DefaultTransactionStatus status) Deprecated.protected ObjectDeprecated.Deprecated.protected booleanisExistingTransaction(Object transaction) Deprecated.voidsetContextSource(ContextSource contextSource) Deprecated.voidsetRenamingStrategy(TempEntryRenamingStrategy renamingStrategy) Deprecated.Methods inherited from class org.springframework.jdbc.datasource.DataSourceTransactionManager
doSetRollbackOnly, getDataSource, getResourceFactory, isEnforceReadOnly, obtainDataSource, prepareTransactionalConnection, setDataSource, setEnforceReadOnly, translateExceptionMethods inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
commit, determineTimeout, getDefaultTimeout, getTransaction, getTransactionExecutionListeners, getTransactionSynchronization, invokeAfterCompletion, isFailEarlyOnGlobalRollbackOnly, isGlobalRollbackOnParticipationFailure, isNestedTransactionAllowed, isRollbackOnCommitFailure, isValidateExistingTransaction, prepareForCommit, prepareSynchronization, registerAfterCompletionWithExistingTransaction, resume, rollback, setDefaultTimeout, setFailEarlyOnGlobalRollbackOnly, setGlobalRollbackOnParticipationFailure, setNestedTransactionAllowed, setRollbackOnCommitFailure, setTransactionExecutionListeners, setTransactionSynchronization, setTransactionSynchronizationName, setValidateExistingTransaction, shouldCommitOnGlobalRollbackOnly, suspend, triggerBeforeCommit, triggerBeforeCompletion, useSavepointForNestedTransactionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.transaction.ConfigurableTransactionManager
addListenerMethods inherited from interface org.springframework.transaction.PlatformTransactionManager
commit, getTransaction, rollback
-
Constructor Details
-
ContextSourceAndDataSourceTransactionManager
public ContextSourceAndDataSourceTransactionManager()Deprecated.
-
-
Method Details
-
isExistingTransaction
Deprecated.- Overrides:
isExistingTransactionin classorg.springframework.jdbc.datasource.DataSourceTransactionManager
-
doGetTransaction
Deprecated.- Overrides:
doGetTransactionin classorg.springframework.jdbc.datasource.DataSourceTransactionManager
-
doBegin
protected void doBegin(Object transaction, org.springframework.transaction.TransactionDefinition definition) Deprecated.- Overrides:
doBeginin classorg.springframework.jdbc.datasource.DataSourceTransactionManager
-
doCleanupAfterCompletion
Deprecated.- Overrides:
doCleanupAfterCompletionin classorg.springframework.jdbc.datasource.DataSourceTransactionManager
-
doCommit
protected void doCommit(org.springframework.transaction.support.DefaultTransactionStatus status) Deprecated.- Overrides:
doCommitin classorg.springframework.jdbc.datasource.DataSourceTransactionManager
-
doRollback
protected void doRollback(org.springframework.transaction.support.DefaultTransactionStatus status) Deprecated.- Overrides:
doRollbackin classorg.springframework.jdbc.datasource.DataSourceTransactionManager
-
getContextSource
Deprecated. -
setContextSource
Deprecated. -
setRenamingStrategy
Deprecated. -
doSuspend
Deprecated.- Overrides:
doSuspendin classorg.springframework.jdbc.datasource.DataSourceTransactionManager
-
doResume
Deprecated.- Overrides:
doResumein classorg.springframework.jdbc.datasource.DataSourceTransactionManager
-
afterPropertiesSet
public void afterPropertiesSet()Deprecated.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classorg.springframework.jdbc.datasource.DataSourceTransactionManager
-