Code generation method and code generation device

A code generation and code technology, applied in the field of information processing, can solve problems such as cumbersome code modification, and achieve the effect of solving cumbersome code modification

Inactive Publication Date: 2014-03-12
BEIJING CHINA POWER INFORMATION TECH +1
View PDF4 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to provide a code gener

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
  • Code generation method and code generation device
  • Code generation method and code generation device
  • Code generation method and code generation device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] First, the code generation method provided by the embodiment of the present invention is briefly described, and the flow of the code generation method is as follows:

[0039] Determine the database to be accessed and the type of database operation;

[0040] selecting an operation code corresponding to the database operation type from a pre-built code template;

[0041] Determine the parameters of the database to be accessed according to the database operation type;

[0042] The parameters of the database are converted into variables of the operation object, and the variables of the operation object are replaced with the corresponding variables in the operation code to obtain the executable software code under the software architecture.

[0043] When a certain operation is performed on a certain database, the application of the above technical solution can automatically generate executable software code for the corresponding operation, which solves the problem of cumber...

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 provides a code generation method and a code generation device. The code generation method comprises the following steps of determining a database to be visited and a database operation type; selecting an operation code which is corresponding to the database operation type from a pre-constructed code template; determining parameters of the database to be visited according to the database operation type; converting the parameters of the database to variables of an operation object, and utilizing the variables of the operation object to replace the corresponding variables in the operation code so as to obtain an executable software code under a software framework. By applying the technical scheme, different operations can be carried out on different databases so as to automatically generate the executable software codes which are corresponding to the operations, and the problem of complicated code modification caused by manual code modification of a software developer in the prior art is solved.

Description

technical field [0001] The invention relates to the field of information processing, in particular to a code generation method and device. Background technique [0002] SQL (STRUCTURED QUERY LANGUAGE, Structured Query Language), as the most important relational database operating language, is widely used due to its good portability, but there are subtle differences in the support and standards of various databases for SQL , Different database product developers need to expand the standard in order to achieve special performance or new features. Now there are more than 100 kinds of database products distributed from microcomputers to mainframes. [0003] At present, the operations of different database products on the database include four operations: add, delete, modify, and check. In the same software project, for the software architecture, the code patterns for the four operations of adding, deleting, modifying, and checking are basically the same , the only difference is...

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): G06F9/44G06F17/30
Inventor 宋宝松葛华利焦丽琴
Owner BEIJING CHINA POWER INFORMATION TECH
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