TransactionSynchronization
callback methods on all currently registered synchronizations.
TransactionSynchronization, TransactionSynchronizationManager#getSynchronizations()
| Modifier and Type | Class and Description |
|---|---|
| private static class | TransactionSynchronizationUtils.
Inner class to avoid hard-coded dependency on AOP module. |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private static final Log |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | invokeAfterCommit(List<TransactionSynchronization>
a List of TransactionSynchronization objects synchronizations)Actually invoke the |
| public static void | invokeAfterCompletion(List<TransactionSynchronization>
a List of TransactionSynchronization objects synchronizations, int the completion status according to the
constants in the TransactionSynchronization interface completionStatus)Actually invoke the |
| public static boolean | sameResourceFactory(ResourceTransactionManager tm, Object resourceFactory)
Check whether the given resource transaction manager refers to the given (underlying) resource factory. |
| public static void | |
| public static void | triggerAfterCompletion(int
the completion status according to the
constants in the TransactionSynchronization interface completionStatus)Trigger |
| public static void | triggerBeforeCommit(boolean
whether the transaction is defined as read-only transaction readOnly)Trigger |
| public static void | triggerBeforeCompletion()
Trigger |
| public static void | |
| public static Object | unwrapResourceIfNecessary(Object resource)
Unwrap the given resource handle if necessary; otherwise return the given handle as-is. |
| aopAvailable | back to summary |
|---|---|
| private static final boolean aopAvailable | |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| TransactionSynchronizationUtils | back to summary |
|---|---|
| public TransactionSynchronizationUtils() | |
| invokeAfterCommit | back to summary |
|---|---|
| public static void invokeAfterCommit(List<TransactionSynchronization> synchronizations) Actually invoke the
| |
| invokeAfterCompletion | back to summary |
|---|---|
| public static void invokeAfterCompletion(List<TransactionSynchronization> synchronizations, int completionStatus) Actually invoke the
| |
| sameResourceFactory | back to summary |
|---|---|
| public static boolean sameResourceFactory(ResourceTransactionManager tm, Object resourceFactory) Check whether the given resource transaction manager refers to the given (underlying) resource factory. | |
| triggerAfterCommit | back to summary |
|---|---|
| public static void triggerAfterCommit() Trigger
| |
| triggerAfterCompletion | back to summary |
|---|---|
| public static void triggerAfterCompletion(int completionStatus) Trigger
| |
| triggerBeforeCommit | back to summary |
|---|---|
| public static void triggerBeforeCommit(boolean readOnly) Trigger
| |
| triggerBeforeCompletion | back to summary |
|---|---|
| public static void triggerBeforeCompletion() Trigger | |
| triggerFlush | back to summary |
|---|---|
| public static void triggerFlush() Trigger
| |
| unwrapResourceIfNecessary | back to summary |
|---|---|
| public static Object unwrapResourceIfNecessary(Object resource) Unwrap the given resource handle if necessary; otherwise return the given handle as-is.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Object |
| ScopedProxyUnwrapper | back to summary |
|---|---|
| private ScopedProxyUnwrapper() | |
| unwrapIfNecessary | back to summary |
|---|---|
| public static Object unwrapIfNecessary(Object resource) | |