Example usage for Java org.springframework.transaction.support TransactionSynchronizationManager fields, constructors, methods, implement or subclass
The text is from its open source code.
void | bindResource(Object key, Object value) Bind the given resource for the given key to the current thread. |
void | clear() Clear the entire transaction synchronization state for the current thread: registered synchronizations as well as the various transaction characteristics. |
void | clearSynchronization() Deactivate transaction synchronization for the current thread. |
Integer | getCurrentTransactionIsolationLevel() Return the isolation level for the current transaction, if any. |
String | getCurrentTransactionName() Return the name of the current transaction, or null if none set. |
Object | getResource(Object key) Retrieve a resource for the given key that is bound to the current thread. |
Map | getResourceMap() Return all resources that are bound to the current thread. |
List | getSynchronizations() Return an unmodifiable snapshot list of all registered synchronizations for the current thread. |
boolean | hasResource(Object key) Check if there is a resource for the given key bound to the current thread. |
void | initSynchronization() Activate transaction synchronization for the current thread. |
boolean | isActualTransactionActive() Return whether there currently is an actual transaction active. |
boolean | isCurrentTransactionReadOnly() Return whether the current transaction is marked as read-only. |
boolean | isSynchronizationActive() Return if transaction synchronization is active for the current thread. |
void | registerSynchronization(TransactionSynchronization synchronization) Register a new transaction synchronization for the current thread. |
void | setActualTransactionActive(boolean active) Expose whether there currently is an actual transaction active. |
void | setCurrentTransactionIsolationLevel(@Nullable Integer isolationLevel) Expose an isolation level for the current transaction. |
void | setCurrentTransactionName(@Nullable String name) Expose the name of the current transaction, if any. |
void | setCurrentTransactionReadOnly(boolean readOnly) Expose a read-only flag for the current transaction. |
Object | unbindResource(Object key) Unbind a resource for the given key from the current thread. |
Object | unbindResourceIfPossible(Object key) Unbind a resource for the given key from the current thread. |