Class CompensatingTransactionObject
- java.lang.Object
-
- org.springframework.transaction.compensating.support.CompensatingTransactionObject
-
public class CompensatingTransactionObject extends java.lang.ObjectTransaction object used byAbstractCompensatingTransactionManagerDelegate. Keeps a reference to theCompensatingTransactionHolderSupportassociated with the current transaction.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description CompensatingTransactionObject(CompensatingTransactionHolderSupport holder)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompensatingTransactionHolderSupportgetHolder()Get the DirContextHolder.voidsetHolder(CompensatingTransactionHolderSupport holder)Set theCompensatingTransactionHolderSupportassociated with the current transaction.
-
-
-
Constructor Detail
-
CompensatingTransactionObject
public CompensatingTransactionObject(CompensatingTransactionHolderSupport holder)
Constructor.- Parameters:
holder- theCompensatingTransactionHolderSupportassociated with the current transaction.
-
-
Method Detail
-
getHolder
public CompensatingTransactionHolderSupport getHolder()
Get the DirContextHolder.- Returns:
- the DirContextHolder.
-
setHolder
public void setHolder(CompensatingTransactionHolderSupport holder)
Set theCompensatingTransactionHolderSupportassociated with the current transaction.- Parameters:
holder- theCompensatingTransactionHolderSupportassociated with the current transaction.
-
-