D - transaction transaction transaction
时间: 2023-09-01 11:07:01 浏览: 92
根据引用的代码,D - transaction是一个Transaction对象的实例化对象。该代码中的begin()方法用于发起一个根事务,并返回该事务对象。该事务对象被注册到事务管理器中。
根据引用和引用,当事务处于CONFIRMING状态时,可以调用TransactionManager的commit()方法来提交事务。而当事务处于CANCELLING状态时,可以调用TransactionManager的rollback()方法来回滚事务。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [tcc-transaction源码详解](https://blog.csdn.net/tianjindong0804/article/details/122281619)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文