Implementation method and device of business method based on database transaction

A business method and transaction processing technology, which is applied in the field of business method execution devices based on database transaction processing, can solve problems such as code redundancy, high coupling degree, large workload, and unfavorable maintenance work efficiency, so as to improve logic and reduce coupling degree of effect

Inactive Publication Date: 2011-08-17
CHINA NON-FERROUS METAL MINING
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Using such an operation will bring a lot of workload, and will cause serious code redundancy and high coupling, which is not conducive to maintenance and improvement of work efficiency
Moreover, the above two problems interact with each other, which will further exacerbate the problems in application execution

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Implementation method and device of business method based on database transaction
  • Implementation method and device of business method based on database transaction
  • Implementation method and device of business method based on database transaction

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0084] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0085] One of the core concepts of the embodiments of the present invention is to remove the logic of transaction processing and related exception handling in the business method of the business object, and only implement the business logic. Specifically, when the business method of the business object is executed by the pre-generated business object proxy, during the execution of the business method, the pre-generated domain object proxy will change (including adding, updating, deleting and / or querying) The domain object in the cache is placed into the preset cache, and a transaction is started; after the execution of the business method, the domain object in the cache is stored in the database or retrieved from the Delete from t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an implementation method and device of a business method based on database transaction. The business method of executing a business object by a business object agent comprises the following steps of: starting the transaction for the business method and clearing a preset domain object buffer when the current business method to be executed is the business method invoked by the outermost layer, wherein the business method comprises the following steps of: changing a similar business method, executing the business method, and invoking a pre-generated domain object agent toput a domain object changed in the business method in a corresponding domain object buffer; performing the transaction when the business method is successfully executed, wherein the transaction comprises the steps of storing the domain object in the domain object buffer in the database, and / or deleting the domain object in the domain object buffer from the database; and closing the transaction after the transaction is submitted and the domain object buffer is cleared. In the invention, transaction logics in the business method are completely eliminated, the logicality and maintainability of applications are improved, and the coupling degree, redundancy rate and the like are reduced.

Description

technical field [0001] The invention relates to the technical field of object-oriented and database interaction, in particular to a method for executing a business method based on database transaction processing and a device for executing a business method based on database transaction processing. Background technique [0002] Database Transaction (Database Transaction) refers to a series of operations performed as a single logical unit of work. Transactions ensure that data-oriented resources are not permanently updated unless all operations within the transactional unit complete successfully. By grouping a set of related operations into an all-or-nothing unit, error recovery is simplified and applications are made more reliable. [0003] Specifically, a set of processing steps is said to be a transaction if either all of them occur or none of them are executed. A transaction is said to be committed when all steps have been completely executed as one operation. Since one...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/30
Inventor 唐凌遥
Owner CHINA NON-FERROUS METAL MINING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products