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

Mapping method and device for Java class and relational database, and computing equipment

A mapping method, java class technology, applied in the field of data processing, can solve problems such as slow speed

Active Publication Date: 2020-05-15
深圳数联天下智能科技有限公司
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when the amount of data in the database is very large, updating the structure of the database table needs to migrate the data in the database, which makes the speed slower

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
  • Mapping method and device for Java class and relational database, and computing equipment
  • Mapping method and device for Java class and relational database, and computing equipment
  • Mapping method and device for Java class and relational database, and computing equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0027] Currently, the mapping between Java classes and relational databases is realized by automatically generating a structured query language (Structured Query Language, SQL) that maps Java class objects to relational database table structures. When a variable is added to a Java class, the newly added variable needs to be persisted to the database, and the structure of the database table needs to be updated synchronously to adapt to the change...

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 relates to the technical field of data processing, and discloses a mapping method and a device for a Java class and a relational database and computing equipment. The method comprises the following steps: when the Java class structure is changed, annotating a newly added variable in the Java class structure according to a buried point field in a data table of the relational database so as to analyze the newly added variable and newly added data corresponding to the newly added variable into data corresponding to the buried point field based on a first Java classobject and the newly added variable corresponding to the Java class structure to obtain first intermediate layer data; wherein the first intermediate layer data comprises a buried point field, a newly added variable and newly added data; and converting the first intermediate layer data into first structured query language data, and adding the newly added variable and the newly added data to the data table according to the first structured query language data. By means of the mode, the situation that the structure of the data table is changed due to change of the Java class structure can be avoided, and therefore the updating speed of the database can be increased.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data processing, and in particular to a mapping method, device and computing equipment between Java classes and relational databases. Background technique [0002] With the rapid development of the Internet, the amount of data has increased explosively. In order to make better use of data, the relational database system has also been fully utilized as a data persistence layer (used to make data persistent for later query, update, etc.). [0003] Currently, the mapping between Java classes and relational databases is realized by automatically generating a structured query language (Structured Query Language, SQL) that maps Java class objects to relational database table structures. When a variable is added to a Java class, the newly added variable needs to be persisted to the database, and the structure of the database table needs to be updated synchronously to adapt to the 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
IPC IPC(8): G06F16/242G06F16/28
CPCG06F16/2433G06F16/284Y02D10/00
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