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

Method and device for achieving efficient database access based on ORM (object relational mapping) architecture

An implementation method and data access technology, which are applied in the fields of electronic digital data processing, digital data information retrieval, special data processing applications, etc., can solve problems such as automatic generation of unfavorable codes, increase learning and use costs, unfavorable division of labor and collaboration, etc. Maintainability and scalability, easy multi-person cooperative development, easy agile development effect

Inactive Publication Date: 2012-12-26
ZTE CORP
View PDF3 Cites 32 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. Some functions are very powerful, but the structure is complex, and it is not easy to transplant programs and reuse codes, which increases the cost of learning and using;
[0006] 2. Some structures are simple, but the functions are relatively weak, and the layering of the structure is not clear, which is not conducive to the automatic generation of codes, and is not conducive to the division of labor and cooperation. Therefore, the development efficiency is low;
[0007] 3. Improper use of ORM in some systems will cause a decrease in execution efficiency, because ORM actually sacrifices storage space in exchange for a large number of database access performance improvements, and improper use of space will also cause performance degradation

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
  • Method and device for achieving efficient database access based on ORM (object relational mapping) architecture
  • Method and device for achieving efficient database access based on ORM (object relational mapping) architecture
  • Method and device for achieving efficient database access based on ORM (object relational mapping) architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described below are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

[0055] figure 1 Shows a flow chart of an implementation method for efficient database access based on ORM architecture in an embodiment of the present invention, as figure 1 As shown, the steps include:

[0056] Step 101: the code generator module generates the data entity code of the database table according to the database table;

[0057] Step 102: Object Relational Mapping (Object Relational Mapping, ORM) module establishes the mapping relationship between entity data and its corresponding database according to the data entity code;

[0058] Step 103: The data access module uses the mapping relationship to access the database requested by the user. ...

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 method and a device for achieving efficient database access based on an ORM (object relational mapping) architecture. The method comprises the following steps that: a code generator module generates a data entity code of a database table according to the database table; an ORM module builds a mapping relationship between the entity data and corresponding database according to the data entity code, and a data access module accesses the database requested by a user by the mapping relationship. According to the invention, efficient access on different databases by different development languages is achieved; business data is transferred between layers in an object-oriented manner by adopting an effective layering architecture design; maintainability and expandability of the program are improved; labor division of each layer is explicit; agile development and co-operative development are convenient, and load of an application developer is reduced by automatically generating most of SQL (structured query language) sentences and entity class components, so that more energy is input on achievement of a view layer design and a system service logic function and the like.

Description

technical field [0001] The invention relates to a method and a device for realizing efficient database access based on an Object Relational Mapping (Object Relational Mapping, ORM) architecture. Background technique [0002] At present, the object-oriented programming method is the mainstream development method in the enterprise-level application development environment, and the relational database is the mainstream data storage method for storing data in the enterprise-level application. Therefore, during the development process, some business logic often needs to directly call Structured Query Language (Structured Query Language, SQL) statements to achieve, but the disadvantages of such development are SQL statements everywhere, low development efficiency, high error rate, poor program maintainability, and poor scalability. [0003] In order to improve the flexibility of the project and improve the development efficiency, ORM is a good choice. When the database model chang...

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): G06F17/30
CPCG06F17/3056G06F17/30G06F16/252
Inventor 柯志勇程兵旺
Owner ZTE CORP
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