|
Spring LDAP Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.transaction.compensating.support.AbstractCompensatingTransactionManagerDelegate org.springframework.ldap.transaction.compensating.manager.ContextSourceTransactionManagerDelegate
public class ContextSourceTransactionManagerDelegate
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
ContextSourceAndDataSourceTransactionManager
.
ContextSourceTransactionManager
,
ContextSourceAndDataSourceTransactionManager
Constructor Summary | |
---|---|
ContextSourceTransactionManagerDelegate()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.springframework.transaction.compensating.support.AbstractCompensatingTransactionManagerDelegate |
---|
doBegin, doCleanupAfterCompletion, doCommit, doGetTransaction, doRollback |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextSourceTransactionManagerDelegate()
Method Detail |
---|
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.
|
Spring LDAP Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |