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

Java code automatic generation tool and method

An automatic generation and code generation technology, applied in the direction of creating/generating source code, etc., can solve problems that cannot satisfy large concurrent systems, cannot realize multi-table association, data dictionary conversion parameter verification, cannot apply to Internet large concurrent system code generation, etc. problem, to achieve the effect of improving ability and work efficiency

Pending Publication Date: 2022-01-18
浙江融象数字科技有限公司
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the code business logic generated by the prior art is relatively simple, and only has very simple functions such as addition, deletion, modification and query. For example, Chinese patent document CN107357942A discloses a source code auxiliary generation tool and its generation method. Configure in the graphical interface, and automatically generate code according to the configuration logic; although this technical solution supports multiple database types and multiple standard format forms, it cannot be applied to the code generation of large concurrent Internet systems, and cannot realize multi-table association and data dictionary conversion , parameter verification and other common codes cannot meet the needs of existing large concurrent systems

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
  • Java code automatic generation tool and method
  • Java code automatic generation tool and method
  • Java code automatic generation tool and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0065] S1, the developer defines the user table and department table, as shown in Table 1-2,

[0066] Table 1 User Table

[0067]

[0068] Table 2 Department table

[0069]

[0070] S2, modify the code generator configuration information, and run the code generator;

[0071] S3, the code generator obtains and parses the table structure information;

[0072] S4, generating code according to the code template specified by the user;

[0073] S5, based on step S3, it is resolved that there are

[0074] {"linktab":{"linkcolumn":"dept_id,dept_id","showcolumn":"dept_code,dept_name,pdept_code"}}, indicating that the user has an association table requirement, and generates relevant codes based on the association information;

[0075] It is parsed into {"dict_type":"USER_TYPE"} in the field remarks, indicating that the user has a demand for data dictionary conversion, then the "user type" field is converted through the data dictionary to generate dictionary conversion related ...

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 the technical field of computer software, and provides a Java code automatic generation tool and method, which are used for analyzing the information, acquiring complex business requirements of developers, generating codes through a code generator, realizing common codes such as multi-table association, data dictionary conversion, parameter verification and the like, and meeting the requirements of a large concurrent system. The invention can be in butt joint with elesticsearch, MongoDB, hive and hbase large databases, table structures of related technologies can be obtained, corresponding codes can be generated, the code generator can be suitable for code generation of an internet large concurrency system, and the requirement of the existing large concurrency system is met; according to the invention, the complex business demand definition of a developer is put into the table remark and the field remark, so that the code generator can obtain the complex business demand of a user, the code template is matched, the generation of the complex business code is met, and the capability of the code generator is greatly improved.

Description

technical field [0001] The invention relates to the technical field of computer software, in particular to a code automatic generation tool and method. Background technique [0002] With the rapid development of the software industry and the increasing demand for software, how to quickly develop standardized and stable code has become a difficult problem for all developers. Rapid code development is conducive to quickly meeting user needs, shortening the R&D cycle, and reducing R&D costs; standardized codes reduce the difficulty of reading and modifying codes, and facilitate the secondary development and maintenance costs of codes; stable codes are conducive to improving user satisfaction , Improve product quality. Some problems of manual coding cannot be solved fundamentally: first, manual coding is heavy workload, long cycle, and high cost; second, the requirements for R&D personnel are high, and some errors are in the codes of different personnel and different locations ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30
CPCG06F8/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