Code generating method and system based on model driving

A code-generating and model-driven technology, applied in the direction of program control devices, can solve problems such as poor flexibility, and achieve the effect of improving software generation rate and facilitating integration

Inactive Publication Date: 2016-01-20
MASHANGYOU TECH CO LTD
View PDF0 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, most code generators are implemented only through database and related parameter design, so the flexibility is not good...

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 generating method and system based on model driving
  • Code generating method and system based on model driving
  • Code generating method and system based on model driving

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to deepen the understanding of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are only used to illustrate the technical solution of the present invention more clearly, but not to limit the protection scope of the present invention.

[0027] Realization principle of the present invention:

[0028] Based on database model

[0029] Generate various codes based on the database design model. In addition to supporting existing database tables or SQL query statements as model input, it also supports standard XML standard templates, and can also provide external interfaces with other UML-based CASE tools.

[0030] Model-Based Architecture-Driven

[0031] Developers first write a unified and standardized XML model architecture file, and complete a certain type of code generation task based on the corresponding code template and data model. Thr...

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 a code generating method and system based on model driving. The system comprises a database model, a model architecture and code templates on a data model layer. In a code generating process, a model analysis module acquires model objects specified by programming personnel from database models and operational models, and invokes the corresponding code templates through a template engine according to the model objects; finally, a code generator cleans up the relations among the model objects, and generates final codes based on the model objects according to the model engine. The method and system provided by the invention adopt a positive code generating mode, a two-way derivation code generating mechanism and a plug-in type code generating architecture, and is high in efficiency and quality, so that higher-quality codes can be obtained according to the code generating technology.

Description

technical field [0001] The invention relates to a method and a system for generating codes, in particular to a method and a system for generating codes based on model driving. Background technique [0002] In the process of developing programs, especially in the process of developing some business systems, some repetitive codes are always inevitable, such as adding, deleting, modifying and checking interface codes, database statements, etc. If developers need to do these tasks manually If it is completed, it will not only reduce the development efficiency, but also bring many potential defects, thereby increasing the human resource cost of the project and increasing the risk of the project. The use of code generation technology can greatly improve the quality and productivity of software development and reduce the risk of software development. Code generation is a research direction that focuses on liberating coding productivity and programming with programs. It is an impor...

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/44
Inventor 陈勇胡中骥
Owner MASHANGYOU TECH CO LTD
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