J2EE-based data persistence method and system

A persistent, data technology, applied in electrical digital data processing, special data processing applications, instruments, etc., to reduce the burden, reduce the difficulty of development, and avoid data damage.

Active Publication Date: 2011-02-23
山东佳联电子商务有限公司
View PDF5 Cites 52 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 p

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 in conjunction with specific embodiments and accompanying 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, this method abstracts the data persistence operation into 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 with mapping metadata.

[0057] Table 1 LAPFA database unified access interface

[0058]

[0059] Method of the present invention is:

[0060] 1) Use the annotation language related to the underlying database to map metadata tags for Java classes to be persisted;

[0061] 2) Create the object of t...

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 general data persistence method and system in a heterogeneous database environment under a J2EE platform, and aims to improve the development efficiency of a small information system persistence layer and reduce migration costs between heterogeneous databases. Background technique [0002] As the main means of information persistence, database has become an indispensable part of most information systems. In order to meet various database application requirements, a large number of heterogeneous databases have emerged. Currently, the heterogeneous databases widely used in information systems include: [0003] ●Relational database: based 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 relatively balance...

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): G06F9/44G06F17/30
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