The type of transaction propagation behavior | Explanation |
---|---|
PROPAGATION_REQUIRED | If no transaction creates a new transaction, if there is already a transaction, added to this transaction. This is the most common choice. |
PROPAGATION_SUPPORTS | Support the current transaction, if no transaction is executed in a non-transactional way. |
PROPAGATION_MANDATORY | Use the current transaction, if no transaction, throw an exception. |
PROPAGATION_REQUIRES_NEW | New Transaction, if the current transaction exists, the current transaction pending. |
PROPAGATION_NOT_SUPPORTED | Perform operations to a non-transactional way, if the current transaction exists, put the current transaction pending. |
PROPAGATION_NEVER | Performed in a non-transactional way, if the current transaction exists, an exception is thrown. |
PROPAGATION_NESTED | If the current transaction exists, it is executed within nested transactions. If no transaction with PROPAGATION_REQUIRED similar operation is performed. |
The spread of affairs
Guess you like
Origin www.cnblogs.com/jiangde/p/11304936.html
Ranking