Supercharge Your Innovation With Domain-Expert AI Agents!

A method and device for realizing object-relational mapping orm

An object-relational mapping and object technology, applied in object-oriented databases, relational databases, database management systems, etc., can solve problems such as high performance overhead, high equipment pressure, and freezes, and achieve the effect of reducing performance overhead and reducing pressure

Active Publication Date: 2020-12-08
ADVANCED NEW TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, due to the high performance overhead of reflection itself, it puts a lot of pressure on the device
Especially for mobile terminal devices, it may cause problems such as slow running or freezing of programs on the device

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
  • A method and device for realizing object-relational mapping orm
  • A method and device for realizing object-relational mapping orm
  • A method and device for realizing object-relational mapping orm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] Embodiments of the present application provide a method and device for implementing ORM.

[0022] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described The embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

[0023] figure 1 It is a schematic flowchart of a method for implementing ORM provided in the embodiment of the present application. From a program point of view, the subject of execution of the process can be a client or a server; from a de...

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 embodiment of the invention discloses a method and a device for realizing ORM (Object Relational Mapping). The method comprises the following steps that: obtaining data table semantic configuration information, wherein the data table semantic configuration information contains each field of a data table; according to the data table semantic configuration information, generating an object model, wherein the object model contains a mapping function and an object attribute corresponding to each field, and the mapping function contains the following logic: directly accessing the object attribute, and using the field to carry out assignment on the object attribute or using the object attribute to carry out assignment on the field; and according to object model, mapping the object corresponding to the object model and data in the data table. By use of the embodiment of the invention, the ORM can be realized without being based on a reflection mechanism in a program operation period, and therefore, the method is favorable for lowering performance expenses and lightening pressure for equipment.

Description

technical field [0001] The present application relates to the technical field of computer software, in particular to a method and device for realizing Object Relational Mapping (ObjectRelational Mapping, ORM). Background technique [0002] ORM is a technology to solve the mismatch between object-oriented and relational databases. [0003] ORM can automatically persist the objects in the program to the relational database, and can read the data in the relational database as objects. In this way, developers can concentrate more on the work of each user interface layer of the business logic layer, while most of the work of the data access layer can be automatically completed by the ORM, which is conducive to improving development efficiency. [0004] In the prior art, an object model is generated and object attributes corresponding to the object model are accessed based on a reflection mechanism during program runtime, so as to implement ORM. [0005] However, due to the high...

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 Patents(China)
IPC IPC(8): G06F16/28G06F16/25
CPCG06F16/25G06F16/284G06F16/289
Inventor 何嘉文
Owner ADVANCED NEW TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More