Configurable method for automatically generating database and accessing data

A data access and database technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve the problems that it is difficult to avoid large-scale changes in the database operation, so as to improve scalability and maintainability, and reduce development costs Risks, Benefits for Maintenance and Updates

Active Publication Date: 2012-09-12
BEIJING YUCHEN SHIMEI SCI & TECH
View PDF5 Cites 33 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Model-driven architecture MDA is a relatively popular architecture, which can realize the conversion from model to target code, but this method is also difficult to avoid operations caused by large changes in the databa...

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
  • Configurable method for automatically generating database and accessing data
  • Configurable method for automatically generating database and accessing data
  • Configurable method for automatically generating database and accessing data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0025] The purpose of the present invention is to propose a configurable method for automatically generating databases and data access. Through the present invention, the development process of the system can be made more automated. With the continuous change of business requirements, the system can adapt to changes and avoid a large number of configurations The use of files and a large number of manual coding processes have improved the development efficiency, scalability and maintainability of the system, and reduced the development cost of the system.

[0026] figure 1 Shown is a schematic flowchart of a method for automatically generating a database and accessing data that can be configured, specifically including:

[0027] Step 1: Analyze the business requirements of the system, use a modeling tool such as Rational Rose to model...

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 configurable method for automatically generating a database and accessing data. The configurable method includes converting a UML (unified modeling language) class image designed in a business requirement analysis stage into an XML (extensible markup language) file; generating metadata information by means of analyzing and reading the XML file; selecting a used database and used business processing language by means of selecting a configuration file by a user; generating a database template, an entity class template and a data access class template; and generating a database, an entity class and a data access class of a system by the aid of a generator of the system according to the metadata information and the generated templates. The metadata information includes basic attributes including the accessibility, the name and the type of an object. By the aid of the configurable method, the UML class image is converted to the database, the entity class, the data access class and the like, accordingly, the database and a data access layer can adapt to change of the object and change of the attributes of the object, when the type of the database and the business processing language are changed, only the design of the UML class image needs to be modified to regenerate a database and a data access layer, and extensibility and maintainability of the system are improved.

Description

technical field [0001] The invention relates to the field of computer application technology, in particular to a configurable automatic database generation and data access method. Background technique [0002] The development process of the existing computer application system includes from business requirement analysis, database design, detailed design to development and maintenance. Among them, UML modeling, database design, entity class design, and data access layer writing are essential. In this process, there are the following problems: [0003] 1. System scale. With the complexity and size of the data, the number of entity classes in the system and the attributes of the classes will also increase greatly. Writing entity classes and data access classes by hand would be time and effort consuming. [0004] 2. Data attribute update. As the enterprise has more and more data, the data structure changes, which directly leads to changes in the model and database structure...

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): G06F17/30
Inventor 何泾沙霍晓珍张玉强
Owner BEIJING YUCHEN SHIMEI SCI & 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