当前位置:网站首页>Seven propagation behaviors of transactions
Seven propagation behaviors of transactions
2022-07-07 13:59:00 【Study notes of Aries orange】
One 、 What is the communication behavior of affairs
The propagation behavior of a transaction refers to : When a transaction method is called by another transaction method , How should this transaction method work .
for example :methodA Method call methodB When the method is used ,methodB Is to continue to call A Running in the same transaction , Or start a new transaction for yourself . That's why methodB The business communication behavior determines .
Two 、 Seven communication behaviors of affairs
1、PROPAGATION_REQUIRED: If there is no current transaction , Just create a new transaction ; If there are currently transactions , Just join the change business ( This is the most common choice )
2、PROPAGATION_SUPPORTS: If there are currently transactions , Just join the transaction ; If there is no current transaction , It's non transactional
3、PROPAGATION_MANDATORY: If there are currently transactions , Just join the transaction ; If there is no current transaction , Throw an exception
4、PROPAGATION_REQUIRES_NEW: No matter whether there is a transaction or not , Both create new transactions
5、PROPAGATION_NOT_SUPPORTED: Perform operations in a non transactional way , If there are currently transactions , Suspend the current transaction
6、PROPAGATION_NEVER: To execute in a non transactional manner , If there are currently transactions , Throw an exception
7、PROPAGATION_NESTED:
3、 ... and 、 Understanding of the above concepts
1、 Transaction pending
for example Method A Support transactions , Method B Unsupported transaction , Method A Calling method B
In the method A Start running , The system establishes Transaction, Method A Database processing operations in , It's time to Transaction Under the control of . At this time , Method A Calling method B, Method A The open Transaction Will be suspended , Method B Any database operation in , Not at all Transaction Under the management of . When method B return , Method A Continue operation , Previous Transaction reply , The following database operations continue in this Transaction Under the control of Commit or rollback .
边栏推荐
- 10 pictures open the door of CPU cache consistency
- Leecode3. Longest substring without repeated characters
- call undefined function openssl_cipher_iv_length
- Huawei image address
- MySQL error 28 and solution
- Dry goods | summarize the linkage use of those vulnerability tools
- How to check the ram and ROM usage of MCU through Keil
- Milkdown control icon
- 请问指南针股票软件可靠吗?交易股票安全吗?
- 交付效率提升52倍,运营效率提升10倍,看《金融云原生技术实践案例汇编》(附下载)
猜你喜欢
高等数学---第八章多元函数微分学1
2022-7-6 sigurg is used to receive external data. I don't know why it can't be printed out
TPG x AIDU | AI leading talent recruitment plan in progress!
xshell连接服务器把密钥登陆改为密码登陆
Redis can only cache? Too out!
Cinnamon taskbar speed
Getting started with cinnamon applet
Dry goods | summarize the linkage use of those vulnerability tools
数据库系统概论-第一章绪论【概念模型、层次模型和三级模式(外模式、模式、内模式)】
高等數學---第八章多元函數微分學1
随机推荐
Co create a collaborative ecosystem of software and hardware: the "Joint submission" of graphcore IPU and Baidu PaddlePaddle appeared in mlperf
requires php ~7.1 -> your PHP version (7.0.18) does not satisfy that requirement
Parameter keywords final, flags, internal, mapping keywords internal
数据库系统概论-第一章绪论【概念模型、层次模型和三级模式(外模式、模式、内模式)】
现在网上开户安全么?那么网上开户选哪个证券公司?
PHP中用下划线开头的变量含义
Clickhouse (03) how to install and deploy Clickhouse
Split screen bug notes
接口自动化测试-接口间数据依赖问题解决
Evolution of customer service hotline of dewu
Cinnamon taskbar speed
Is the compass stock software reliable? Is it safe to trade stocks?
648. Word replacement: the classic application of dictionary tree
Leecode3. Longest substring without repeated characters
Details of redis core data structure & new features of redis 6
华为镜像地址
Huawei image address
toRaw和markRaw
【AI实战】应用xgboost.XGBRegressor搭建空气质量预测模型(二)
Drawerlayout suppress sideslip display