Class ContextSourceTransactionManagerDelegate
java.lang.Object
org.springframework.transaction.compensating.support.AbstractCompensatingTransactionManagerDelegate
org.springframework.ldap.transaction.compensating.manager.ContextSourceTransactionManagerDelegate
public class ContextSourceTransactionManagerDelegate
extends AbstractCompensatingTransactionManagerDelegate
This delegate performs all the work for the
.
ContextSourceTransactionManager.
The work is delegated in order to be able to perform the exact same work for the LDAP
part in
invalid reference
ContextSourceAndDataSourceTransactionManager
- Since:
- 1.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.ContextSourceTransactionManagerDelegate(ContextSource contextSource) Construct aContextSourceTransactionManagerDelegate -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcloseTargetResource(CompensatingTransactionHolderSupport transactionHolderSupport) Close the target resource - the implementation specific resource held in the specifiedCompensatingTransactionHolderSupport.protected CompensatingTransactionHolderSupportGet a new implementation specificCompensatingTransactionHolderSupportinstance.protected ObjectGet the key (normally, a DataSource or similar) that should be used for transaction synchronization.voidsetContextSource(ContextSource contextSource) Deprecated.please provide theContextSourcein the constructorvoidsetRenamingStrategy(TempEntryRenamingStrategy renamingStrategy) Set theTempEntryRenamingStrategyto be used when renaming temporary entries in unbind and rebind operations.Methods inherited from class AbstractCompensatingTransactionManagerDelegate
doBegin, doCleanupAfterCompletion, doCommit, doGetTransaction, doRollback
-
Constructor Details
-
ContextSourceTransactionManagerDelegate
Deprecated.please provide theContextSourcein the constructor -
ContextSourceTransactionManagerDelegate
Construct aContextSourceTransactionManagerDelegate- Parameters:
contextSource- theContextSourceto use
-
-
Method Details
-
setContextSource
Deprecated.please provide theContextSourcein the constructorSet the ContextSource to work on. Even though the actual ContextSource sent to the LdapTemplate instance should be aTransactionAwareContextSourceProxy, the one sent to this method should be the target of that proxy. If it is not, the target will be extracted and used instead.- Parameters:
contextSource- the ContextSource to work on.
-
getContextSource
-
getTransactionSynchronizationKey
Description copied from class:AbstractCompensatingTransactionManagerDelegateGet the key (normally, a DataSource or similar) that should be used for transaction synchronization.- Specified by:
getTransactionSynchronizationKeyin classAbstractCompensatingTransactionManagerDelegate- Returns:
- the transaction synchronization key
-
getNewHolder
Description copied from class:AbstractCompensatingTransactionManagerDelegateGet a new implementation specificCompensatingTransactionHolderSupportinstance.- Specified by:
getNewHolderin classAbstractCompensatingTransactionManagerDelegate- Returns:
- a new
CompensatingTransactionHolderSupportinstance.
-
closeTargetResource
Description copied from class:AbstractCompensatingTransactionManagerDelegateClose the target resource - the implementation specific resource held in the specifiedCompensatingTransactionHolderSupport.- Specified by:
closeTargetResourcein classAbstractCompensatingTransactionManagerDelegate- Parameters:
transactionHolderSupport- theCompensatingTransactionHolderSupportthat holds the transaction specific target resource.
-
setRenamingStrategy
Set theTempEntryRenamingStrategyto be used when renaming temporary entries in unbind and rebind operations. Default value is aDefaultTempEntryRenamingStrategy.- Parameters:
renamingStrategy- theTempEntryRenamingStrategyto use.
-
ContextSourcein the constructor