Spring transaction source code (1)

Spring transaction source code (1)

1. Before talking about the source code, first understand the interfaces and classes in some transactions
PlatformTransactionManager
Through this interface, Spring provides corresponding transaction managers for various platforms such as JDBC, Hibernate, etc., but the specific implementation is the business of each platform.
Insert picture description here
TransactionDefinitionDefinition of transaction attributes The
TransactionDefinition interface defines 5 methods and some constants representing transaction attributes such as isolation level, propagation behavior, etc.

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
TransactionStatus interface
The TransactionStatus interface is used to record the status of the transaction. This interface defines a set of methods to obtain or judge the corresponding status information of the transaction.
Insert picture description here
Second, this chapter is here, and the next chapter will start source code analysis.

Guess you like

Origin blog.csdn.net/mlplds/article/details/103299493