Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Automatic code generation method and system

An automatic generation and code generation technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as large workload and many modules, and achieve the effect of saving labor costs and reducing error rates.

Inactive Publication Date: 2015-02-04
北京思特奇信息技术股份有限公司
View PDF4 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

There are too many modules, resulting in a lot of workload

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
  • Automatic code generation method and system
  • Automatic code generation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] A code automatic generation method, comprising the following steps:

[0033] Step 1: Extract the codes of all business components of each layer in the J2EE project, compare the codes of all business components of each layer, keep the completely consistent code segments in all business components, and use template variables to replace inconsistent code segments , form the code template of each layer respectively;

[0034] Step 2: Build a code generation module according to the code template and template variables of each layer;

[0035] Step 3: Obtain the characteristic information of the business component to be created input by the user, and replace the corresponding template variable according to the characteristic information;

[0036] Step 4: According to the code template and the replaced template variables of each layer, use the code generation module to generate the business components to be generated.

[0037] Step 2.1 is also included between the steps 2 and ...

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 relates to an automatic code generation method and system. The automatic code generation method comprises the steps: extracting codes of all business assemblies of each layer in J2EE project, respectively comparing the codes in all business assemblies of each layer, reserving code segments which are completely consistent in all business assemblies, replacing the inconsistent code segments by utilizing a template variable, and respectively forming a code template of each layer; establishing a code generation module according to the code template and template variable of each layer; acquiring characteristics information of a to-be-created business assembly inputted by a user, and replacing the corresponding template variable according to the characteristics information; generating a to-be-generated business assembly by utilizing the code generation module according to the code template and the replaced template variable of each layer. By adopting the automatic code generation method and system, the manpower cost for developing each module can be reduced; a universal code is automatically completed, and the error rate for manually editing the code can be reduced.

Description

technical field [0001] The invention relates to a J2EE code development tool, in particular to a code automatic generation method and system. Background technique [0002] In the daily program development process, if a management module needs to be added, it is based on the function development of adding, deleting, modifying, and querying operations of database tables. The traditional approach is to manually develop codes such as the Action layer, Service layer, DAO layer, VO layer, and development page layer, and at the same time register bean and action information in xml. After all functions are developed, they need to go through multiple manual tests. Only then is it done. There are too many modules, resulting in a lot of workload. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a method and system for automatically generating codes according to the configured template variables of each layer. [0004] The...

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 北京思特奇信息技术股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products