public class ContextSourceTransactionManagerDelegate extends AbstractCompensatingTransactionManagerDelegate
ContextSourceTransactionManager. The work is delegated in order to
be able to perform the exact same work for the LDAP part in
ContextSourceAndDataSourceTransactionManager.ContextSourceTransactionManager,
ContextSourceAndDataSourceTransactionManager| Constructor and Description |
|---|
ContextSourceTransactionManagerDelegate() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeTargetResource(CompensatingTransactionHolderSupport transactionHolderSupport)
Close the target resource - the implementation specific resource held in
the specified
CompensatingTransactionHolderSupport. |
ContextSource |
getContextSource() |
protected CompensatingTransactionHolderSupport |
getNewHolder()
Get a new implementation specific
CompensatingTransactionHolderSupport instance. |
protected Object |
getTransactionSynchronizationKey()
Get the key (normally, a DataSource or similar) that should be used for
transaction synchronization.
|
void |
setContextSource(ContextSource contextSource)
Set the ContextSource to work on.
|
void |
setRenamingStrategy(TempEntryRenamingStrategy renamingStrategy)
Set the
TempEntryRenamingStrategy to be used when renaming
temporary entries in unbind and rebind operations. |
doBegin, doCleanupAfterCompletion, doCommit, doGetTransaction, doRollbackpublic ContextSourceTransactionManagerDelegate()
public void setContextSource(ContextSource contextSource)
TransactionAwareContextSourceProxy, 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.contextSource - the ContextSource to work on.public ContextSource getContextSource()
protected Object getTransactionSynchronizationKey()
AbstractCompensatingTransactionManagerDelegategetTransactionSynchronizationKey in class AbstractCompensatingTransactionManagerDelegateprotected CompensatingTransactionHolderSupport getNewHolder()
AbstractCompensatingTransactionManagerDelegateCompensatingTransactionHolderSupport instance.getNewHolder in class AbstractCompensatingTransactionManagerDelegateCompensatingTransactionHolderSupport instance.protected void closeTargetResource(CompensatingTransactionHolderSupport transactionHolderSupport)
AbstractCompensatingTransactionManagerDelegateCompensatingTransactionHolderSupport.closeTargetResource in class AbstractCompensatingTransactionManagerDelegatetransactionHolderSupport - the
CompensatingTransactionHolderSupport that holds the transaction
specific target resource.public void setRenamingStrategy(TempEntryRenamingStrategy renamingStrategy)
TempEntryRenamingStrategy to be used when renaming
temporary entries in unbind and rebind operations. Default value is a
DefaultTempEntryRenamingStrategy.renamingStrategy - the TempEntryRenamingStrategy to use.