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, doRollback
public 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()
AbstractCompensatingTransactionManagerDelegate
getTransactionSynchronizationKey
in class AbstractCompensatingTransactionManagerDelegate
protected CompensatingTransactionHolderSupport getNewHolder()
AbstractCompensatingTransactionManagerDelegate
CompensatingTransactionHolderSupport
instance.getNewHolder
in class AbstractCompensatingTransactionManagerDelegate
CompensatingTransactionHolderSupport
instance.protected void closeTargetResource(CompensatingTransactionHolderSupport transactionHolderSupport)
AbstractCompensatingTransactionManagerDelegate
CompensatingTransactionHolderSupport
.closeTargetResource
in class AbstractCompensatingTransactionManagerDelegate
transactionHolderSupport
- 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.