Model driven code generation method and system

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-13
MASHANGYOU TECH CO LTD
View PDF3 Cites 15 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
  • Model driven code generation method and system
  • Model driven code generation method and system
  • Model driven code generation method and system

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 model driven code generation method and system. The system in a data model layer is composed of three parts: a database model, a model framework and code templates. In a code generation process, a model analysis module obtains model objects specified by a programmer from the database model and an operation model; a template engine calls corresponding code templates according to the objects; and finally, a code generator is in charge of clearing relationships among the model objects and generates a final object based code according to the template engine. According to the model driven code generation method and system, a positive code generation mode is provided; a two-way derivation code generation mechanism is provided; a plug-in type code generation framework is provided; and the efficiency and the quality are high. Therefore codes with higher quality can be obtained by adopting a code generation technology.

Description

technical field [0001] The present invention relates to a method and system for generating codes, in particular to a method and 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 i...

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