public class TransactionContext extends Object
TransactionContextHolder
or referenced directly within
from the subscriber context.TransactionContextManager
,
Context
Modifier and Type | Method and Description |
---|---|
void |
clear() |
UUID |
getContextId() |
Integer |
getCurrentTransactionIsolationLevel() |
String |
getCurrentTransactionName() |
String |
getName() |
TransactionContext |
getParent() |
Map<Object,Object> |
getResources() |
Set<TransactionSynchronization> |
getSynchronizations() |
boolean |
isActualTransactionActive() |
boolean |
isCurrentTransactionReadOnly() |
void |
setActualTransactionActive(boolean actualTransactionActive) |
void |
setCurrentTransactionIsolationLevel(Integer currentTransactionIsolationLevel) |
void |
setCurrentTransactionName(String currentTransactionName) |
void |
setCurrentTransactionReadOnly(boolean currentTransactionReadOnly) |
void |
setSynchronizations(Set<TransactionSynchronization> synchronizations) |
@Nullable public TransactionContext getParent()
public String getName()
public UUID getContextId()
public void setSynchronizations(@Nullable Set<TransactionSynchronization> synchronizations)
@Nullable public Set<TransactionSynchronization> getSynchronizations()
public void setCurrentTransactionName(@Nullable String currentTransactionName)
public void setCurrentTransactionReadOnly(boolean currentTransactionReadOnly)
public boolean isCurrentTransactionReadOnly()
public void setCurrentTransactionIsolationLevel(@Nullable Integer currentTransactionIsolationLevel)
public void setActualTransactionActive(boolean actualTransactionActive)
public boolean isActualTransactionActive()
public void clear()