J2EE-based data persistence method and system

A persistent and data technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., to achieve the effect of avoiding asynchrony, avoiding data damage, and reducing the burden

Active Publication Date: 2012-09-19
山东佳联电子商务有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0016] The purpose of the present invention is to overcome a series of problems existing in the existing persistence technology, and provide a general data persistence method and system under the J2EE environment

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
  • J2EE-based data persistence method and system
  • J2EE-based data persistence method and system
  • J2EE-based data persistence method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] The method of the present invention will be described in detail below with reference to specific embodiments and drawings.

[0056] The method of the present invention aims to provide a way for developers of small Web information systems to quickly build a data persistence layer. In order to meet the data persistence requirements of most small information systems without being too bloated, the method abstracts the data persistence operation as Six persistent operation interfaces. The parameters and return values ​​of each interface are shown in Table 1. Using these interfaces, users can directly implement data persistence for Java entity objects marked by mapping metadata.

[0057] Table 1 LAPFA database unified access interface

[0058]

[0059] The method of the present invention is:

[0060] 1) Use the annotation language related to the underlying database to mark the Java classes to be persisted with mapping metadata;

[0061] 2) Create the object of the Java class to be p...

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 J2EE-based data persistence method and a J2EE-based data persistence system. The method comprises the following steps of: 1) performing mapping metadata marking on a persisted Java category by using an annotating language associated with an underlying database; 2) constructing a Java category target to be persisted and assigning the attribute value of the target; 3) constructing a Java entity target query tree; and 4) calling a persisted interface to perform persisting operation by using the constructed Java category target to be persisted and the Java entity target query tree as parameters. The system comprises a data type adaptor, a query language resolver and a manipulation language resolver. The method and the system of the invention overcome the defect of 'impedance mismatch' between the Java entity target and the underlying database, shield the difference of interfaces provided for an information system by a heterogeneous database, do not depend on any scripting language, call the Java interface in the whole process completely and reduce the development difficulty of a persisted layer.

Description

Technical field [0001] The invention relates to a universal data persistence method and system in a heterogeneous database environment under a J2EE platform. The goal is to improve the development efficiency of the persistence layer of a small information system and reduce the migration cost between heterogeneous databases. Background technique [0002] As the main means of information persistence, databases have become an indispensable part of most information systems. In order to meet the needs of various database applications, a large number of heterogeneous databases have emerged. Currently, the heterogeneous databases widely used in information systems include: [0003] ●Relational database: Built on the relational data model, the data is decomposed into two-dimensional data tables for storage. Relational databases have the characteristics of strong data structure, large data independence, and more data redundancy, and their performance in data reading and writing is relativ...

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): G06F17/30G06F9/44
Inventor 王帅屈夏杨燕钟华
Owner 山东佳联电子商务有限公司
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