Database transaction consistency processing method and device in cross-link calling
A processing method and processing device technology, applied in the field of database processing, can solve problems such as complicated development process and complex processing methods, and achieve the effects of improving development efficiency, avoiding creation, and simplifying the development process
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] see figure 1 and figure 2 , Embodiment 1 of the present invention provides a method for processing database transaction consistency in a cross-link call, including the following steps:
[0035] S1. When the business service executes the script container, obtain and store the SqlSession when the current script container is executed;
[0036] S2. If there is a database operation in the script container, call the business service through the script container, and the business service executes the corresponding database operation through the stored SqlSession;
[0037] S3. Return the database execution result of the database operation to the script container, so that the script container continues to perform subsequent database operations;
[0038] S4. The script container returns the script execution result to the business service, and clears the stored SqlSession.
[0039] In this embodiment, when the business service is executing a script container, the business serv...
Embodiment 2
[0058] see image 3 , Embodiment 2 of the present invention also provides a database transaction consistency processing device in a cross-link invocation, including:
[0059] The link acquisition module 1 is used to acquire and store the SqlSession when the current script container is executed when the business service executes the script container;
[0060] The calling execution module 2 is used to call the business service through the script container if there is a database operation in the script container, and the business service executes the corresponding database operation through the stored SqlSession;
[0061] The first result return module 3 is used to return the database execution result of the database operation to the script container, so that the script container continues to perform subsequent database operations;
[0062] The second result returning module 4 is used for the script container to return the script execution result to the business servi...
Embodiment 3
[0070] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium, where a program code for a method for processing database transaction consistency in a cross-link call is stored in the computer-readable storage medium, where the program code includes a method for executing The instruction of the method for processing database transaction consistency in the cross-link invocation of Embodiment 1 or any possible implementation manner thereof.
[0071] A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com