Conversion: type of transaction propagation in spring transactiondefinition

Source: Internet
Author: User
1. propagation_required

If no transaction exists, create a transaction. If a transaction already exists, add it to the transaction. This is the most common choice.

2. propagation_supports

Supports the current transaction. If no transaction exists, it is executed in non-transaction mode.

3. propagation_mandatory

Use the current transaction. If no transaction exists, an exception is thrown.

4. propagation_requires_new

Create a new transaction. If a transaction exists, the current transaction is suspended.

5. propagation_not_supported

The operation is performed in non-transaction mode. If a transaction exists, the current transaction is suspended.

6. propagation_never

It is executed in non-transaction mode. If a transaction exists, an exception is thrown.

7. propagation_nested

If a transaction exists, it is executed in the nested transaction. If no transaction exists, perform a similar operation as propagation_required.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.