Class CompensatingTransactionHolderSupport
java.lang.Object
org.springframework.transaction.support.ResourceHolderSupport
org.springframework.transaction.compensating.support.CompensatingTransactionHolderSupport
- All Implemented Interfaces:
org.springframework.transaction.support.ResourceHolder
- Direct Known Subclasses:
DirContextHolder
public abstract class CompensatingTransactionHolderSupport
extends org.springframework.transaction.support.ResourceHolderSupport
Base class for compensating transaction resource holders.
- Since:
- 1.2
-
Constructor Summary
ConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
protected abstract Object
Get the actual transacted resource.Get the CompensatingTransactionOperationManager to handle the data for the current transaction.void
setTransactionOperationManager
(CompensatingTransactionOperationManager transactionOperationManager) Set the CompensatingTransactionOperationManager.Methods inherited from class org.springframework.transaction.support.ResourceHolderSupport
getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, resetRollbackOnly, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound
-
Constructor Details
-
CompensatingTransactionHolderSupport
Constructor.- Parameters:
manager
- TheCompensatingTransactionOperationManager
to use for creating Compensating operations.
-
-
Method Details
-
getTransactedResource
Get the actual transacted resource.- Returns:
- the transaction's target resource
-
clear
public void clear()- Overrides:
clear
in classorg.springframework.transaction.support.ResourceHolderSupport
-
getTransactionOperationManager
Get the CompensatingTransactionOperationManager to handle the data for the current transaction.- Returns:
- the CompensatingTransactionOperationManager.
-
setTransactionOperationManager
public void setTransactionOperationManager(CompensatingTransactionOperationManager transactionOperationManager) Set the CompensatingTransactionOperationManager. For testing purposes only.- Parameters:
transactionOperationManager
- the CompensatingTransactionOperationManager to use.
-