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

Request the full text

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

  1. Application and Study of Ssh Frame Techlology in the Supermarket Management System
    HeYanFang ·Hunan University ·2011 ·Master's thesis
  2. Design and Implementation of ORM Tool’s Interface Based on Java Technology
    HuangZuo ·Jilin University ·2012 ·Master's thesis
  3. Web Application System Research Based on Struts and Hibernate
    FengShiZuo ·Suzhou University ·2007 ·Master's thesis
  4. Research on E-government Foundation Platform Based on Spring and JPA
    ZhouYangChuan ·Chengdu University of Technology ·2008 ·Master's thesis
  5. Research on the Design and Performance of Alert Center System
    ZuoJie ·Zhejiang University ·2008 ·Master's thesis
  6. The Research and Design of the Teachers Testing and Evaluating System of LiaoNing Information Vocational Technical College
    SongLai ·Jilin University ·2007 ·Master's thesis
  7. Research and Realization of Educational Administration System Based on Struts and Hibernate
    HuangJun ·East China Normal University ·2008 ·Master's thesis
  8. The Application of Struts in Cooperative Office System Based on MVC Pattern
    ChenDaPeng ·Wuhan University of Technology ·2007 ·Master's thesis
  9. The Research and Design of Fast Persistence Layer for Maping Object to Rational Database
    LvDeWen ·Chongqing University ·2003 ·Master's thesis
  10. Java Object Persistence with Hibernate
    RongLin ·Northeastern University ·2006 ·Master's thesis
  11. Study on the Java Persistence Layer Design
    JinZuo ·Chang'an University ·2008 ·Master's thesis
  12. Research and Implementation of Dynamic ORM
    ZhaoLu ·Dalian Maritime University ·2011 ·Master's thesis
  13. The Applied Research on Forming Method of WBS and Information Integration in Complex Products Manufacturing
  14. The Research on Conscious Immersion
    WuRuoZuo ·Hebei Normal ·2013 ·Master's thesis
  15. Non negative pressure water pump monitoring system design and implementation of SCADA software
  16. Tree Segmentation-Based Ontology Mapping
  17. Research of Ontology-based Heterogeneous Data Integration
    PanJiaYun ·Donghua University ·2013 ·Master's thesis
  18. Design and Implementation of Object-relational Mapping Freamework for Hybrid Data Store
    ChenCheng ·Harbin Institute of Technology ·2012 ·Master's thesis
  19. Research on XML Conceptual Model and Internal Transformation Method
    HanMuXun ·Harbin Engineering University ·2013 ·Master's thesis
  20. Based on B/S Structure of the Logistics Enterprise Management Information the Design of the System