Java org.springframework.transaction.support TransactionSynchronizationManager fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.transaction.support TransactionSynchronizationManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.transaction.support TransactionSynchronizationManager.

The text is from its open source code.

Method

voidbindResource(Object key, Object value)
Bind the given resource for the given key to the current thread.
voidclear()
Clear the entire transaction synchronization state for the current thread: registered synchronizations as well as the various transaction characteristics.
voidclearSynchronization()
Deactivate transaction synchronization for the current thread.
IntegergetCurrentTransactionIsolationLevel()
Return the isolation level for the current transaction, if any.
StringgetCurrentTransactionName()
Return the name of the current transaction, or null if none set.
ObjectgetResource(Object key)
Retrieve a resource for the given key that is bound to the current thread.
MapgetResourceMap()
Return all resources that are bound to the current thread.
ListgetSynchronizations()
Return an unmodifiable snapshot list of all registered synchronizations for the current thread.
booleanhasResource(Object key)
Check if there is a resource for the given key bound to the current thread.
voidinitSynchronization()
Activate transaction synchronization for the current thread.
booleanisActualTransactionActive()
Return whether there currently is an actual transaction active.
booleanisCurrentTransactionReadOnly()
Return whether the current transaction is marked as read-only.
booleanisSynchronizationActive()
Return if transaction synchronization is active for the current thread.
voidregisterSynchronization(TransactionSynchronization synchronization)
Register a new transaction synchronization for the current thread.
voidsetActualTransactionActive(boolean active)
Expose whether there currently is an actual transaction active.
voidsetCurrentTransactionIsolationLevel(@Nullable Integer isolationLevel)
Expose an isolation level for the current transaction.
voidsetCurrentTransactionName(@Nullable String name)
Expose the name of the current transaction, if any.
voidsetCurrentTransactionReadOnly(boolean readOnly)
Expose a read-only flag for the current transaction.
ObjectunbindResource(Object key)
Unbind a resource for the given key from the current thread.
ObjectunbindResourceIfPossible(Object key)
Unbind a resource for the given key from the current thread.