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

Universal metadata/ relation mapping frame

A technology of relational mapping and metadata, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of module codes violating object-oriented design and reduce the attention of developers, so as to improve understandability and comprehensibility Maintainability, ensure integrity and consistency, and enhance the effect of attention

Inactive Publication Date: 2014-03-05
芜湖大学科技园发展有限公司
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although metadata solves the problem of normalization of heterogeneous data, developers of the middle and lower modules of the data platform can only add or delete metadata by calling the get / put method supported by HashMap and specifying the Tag / Key name as a parameter , modify, check and other operations, which not only makes the module code violate the principle of object-oriented design, but also reduces the developer's attention to the specific business involved in the data

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
  • Universal metadata/ relation mapping frame

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0071] Embodiment 1, generating an entity proxy class.

[0072] First, read the mapping configuration file to obtain the information of the entity class and its fields; then, according to the mapping configuration information, use the virtual machine bytecode generation tool to generate the bytecode of the entity class, including fields, primary key fields, and setter / getter method; then, combined with the dynamic proxy mode, a proxy interface is generated for the entity class; finally, an implementation class of the proxy interface is generated.

Embodiment 2

[0073] Embodiment 2, generating a DAO class corresponding to an entity proxy class and its CRUD method.

[0074] First, according to the mapping configuration information, use the virtual machine bytecode generation tool to generate the bytecode corresponding to the DAO class for each tag of the metadata; then, generate the findBy method with the field value as the search condition and the primary key field for each DAO class It is the findByPK method for finding conditions, the findAll method for returning a list of entity objects composed of all record rows under the corresponding Tag, and the findByConditions method for combining query conditions and sorting criteria with multiple field values ​​and field names; finally, generate the methods for modification, The update, delete and insert methods for deleting and inserting entity class objects.

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 universal metadata / relational mapping frame. The universal metadata / relational mapping frame can be adapted to an existing metadata module of an electric power data management platform. By the adoption of the universal metadata / relational mapping frame, by means of dynamic proxy, AOP and the like, transparent object-oriented packaging is conducted on operations such as addition, deletion, change and search on the most original metadata, and abilities and features of a relation model are added to the metadata which are stored in the mode of a three-layer HashMap structure at the same time. According to the universal metadata / relational mapping frame, structural reading and writing operation on the metadata is converted into the object-oriented operation based on the relation model in a seamless mode, the intelligibility and the maintainability of codes of each layer of modules in the electric power data management platform are greatly improved, and the attention of system development and use personnel to the bottom-layer structure of the metadata is effectively reduced.

Description

technical field [0001] The invention relates to the field of power system databases, in particular to a general metadata / relational mapping framework. Background technique [0002] The self-disciplined decentralized plug-and-play data platform uses metadata expressed in the form of three-layer HashMap as a unified structure to store power data in various formats. Although metadata solves the problem of normalization of heterogeneous data, developers of the middle and lower modules of the data platform can only add or delete metadata by calling the get / put method supported by HashMap and specifying the Tag / Key name as a parameter , Modify, check and other operations, which not only makes the module code violate the principle of object-oriented design, but also reduces the developer's attention to the specific business involved in the data. Contents of the invention [0003] In order to overcome the shortcomings of the above-mentioned prior art, the purpose of the present 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): G06F17/30
CPCG06F16/2282
Inventor 黄少伟陈颖胡平汪国武
Owner 芜湖大学科技园发展有限公司
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