Research and Implementation of Lightweight and Reusable Technique for Data Persistence
- Author
- KuangLei
- Advisor
- YangLuMing
- School
- Central South University
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 73
- Citations
- 2
Abstract
The data persistence layer is a series of software serve, it can separate the application program away from datasource, provide a unified, safe data persistence mechanism. The persistence layer is upon the datasources, provide application program interface to use these datasources, and also serve for business logic layer. It can help programmer avoid writing methods to visit the datasource, but concentrate on business logic developing, and it can be reused in different projects, simplify the CRUD operation heavily.The Object Relational Mapping must be realized before data persistence, so in this paper first introduce the principle of ORM, discusses current problem of it, and introduce the corresponding mapping strategy, especially introduce two kinds of especial mapping, and give the achievement method to both mapping. Based on the resolution of ORM, we design a data persistence layer, and achieve the database connection pool management, draw into the callback mechanism and the affairs resolve mechanism, achieve the ORM for this persistence layer. At last take an example for this layer, and compare this persistence layer with Hibernate, then illustrate the advantages and disadvantages of it.1
Table of contents
Abstract 4-5
ABSTRACT 5-8
first chapter 8-13
1.1 Background and Significance 8-10
1.2 development status at home and abroad 10-11
1.3 this study 11-12
1.4 article organizational structure 12-13
,
object / relational mapping theory 13-25
2.1 object / relational mapping Introduction 13-18
2.1.1 relational model 13-14
2.1.2 Object Model 14-16
2.1.3 object / relational mapping basic concept 16-18
2.2 object / relational mapping 18-20
2.2.1 object-driven modeling or database-driven modeling 18-19
2.2.2 object / relational impedance mismatch 19-20
2.3 object / relational mapping, strategy 20-25
2.3.1 object identifier mapped to primary key 21-22
2.3.2 Attribute Mapping columns 22
2.3.3 in a relational database implementation inheritance 22-23
2.3.4 association mapping 23-25
Chapter object / relational mapping implementation 25-33
3.1 attribute mapping 25
3.2 inheritance mapping 25-29
3.2.1 class corresponds to a table 26-27
3.2.2 each specific class corresponds to a table 27-28
3.2.3 Each class corresponds to a table 28-29
3.3 relationship mapping 29-33
3.3.1 one-to-one association mapping 29-30
3.3.2 many-to-one unidirectional association 30-31
3.3.3-to-many unidirectional association 31-33
the
data persistence layer design 33-46
4.1 database connection pool 33-34
4.2 callback mechanism 34-37
4.2.1 callback mode 34-36
4.2.2 callback mode implementation 36-37
4.3 transaction processing 37-40
4.3.1 \
4.3.2 savepoint mechanism 38-40
4.4 object persistence operation Design 40-44
4.5 data processing algorithm 44-46
Chapter data persistence layer 46-51
5.1 software project management system structure 46-47
5.2 persistence operation 47-49
5.2.1 create persistent classes 47-48
5.2.2 create object-relational mapping file 48
5.2.3 object persistence operating 48-49
5.3 performance is 49-51
Chapter Summary and Outlook 51-53
6.1 Full Summary 51
6.2 Research Prospects 51-53
the
References 53-56
Acknowledgements 56-57
the degree during major research 57
Related dissertations
- Application and Study of Ssh Frame Techlology in the Supermarket Management System
- Design and Implementation of ORM Tool’s Interface Based on Java Technology
- Web Application System Research Based on Struts and Hibernate
- Research on E-government Foundation Platform Based on Spring and JPA
- Research on the Design and Performance of Alert Center System
- The Research and Design of the Teachers Testing and Evaluating System of LiaoNing Information Vocational Technical College
- Research and Realization of Educational Administration System Based on Struts and Hibernate
- The Application of Struts in Cooperative Office System Based on MVC Pattern
- The Research and Design of Fast Persistence Layer for Maping Object to Rational Database
- Java Object Persistence with Hibernate
- Study on the Java Persistence Layer Design
- Research and Implementation of Dynamic ORM
- The Applied Research on Forming Method of WBS and Information Integration in Complex Products Manufacturing
- The Research on Conscious Immersion
- Non negative pressure water pump monitoring system design and implementation of SCADA software
- Tree Segmentation-Based Ontology Mapping
- Research of Ontology-based Heterogeneous Data Integration
- Design and Implementation of Object-relational Mapping Freamework for Hybrid Data Store
- Research on XML Conceptual Model and Internal Transformation Method
- Based on B/S Structure of the Logistics Enterprise Management Information the Design of the System