Study on Component-based Object Persistence Layer Architecture
- Author
- XuZuo
- Advisor
- ZengYi
- School
- Chongqing University
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 129
- Citations
- 2
Abstract
Rapidly in recent years, object-oriented technology and mature software development provides a whole new perspective, however, the data storage technology, software development is closely related to the relational database a single show. Based on different theoretical basis of the theory of relational data and object-oriented technology, making the two work together impedance mismatch Impedance Mismatch urgently need a way, so that the two can work together. Combination of object-oriented technology and database, there are three ways: First, the design of the new object-oriented database (OODBMS); traditional relational database to be expanded to increase the support of the object-oriented technology has become the object - relational database ( ORDBMS); between the application and a relational database to build a common object - relational mapping layer (called object persistence layer). OODBMS is not yet mature, it is the lack of a solid mathematical theory, and is not a widely accepted standard practicable; Although the ORDBMS both the advantages of object-oriented relational database and support, but also the lack of a unified standard, different databases providers based on their respective technical design and development, data sharing, migration is far from easy to purely relational databases. Thus, the application of a relational database, built between applications and relational databases a persistence layer independent of the application and database objects, this practical strategy. Object persistence layer is a layer between applications and data storage, and is responsible for the application object persistence to a data storage mechanism, this study is based on a relational database for the persistence of the underlying data storage layer, also known as Object - Relational Mapping (Object-Relational Mapping ORM) layer. At present, the study of the mapping between the object model and the relational model, persistence layer framework design have achieved certain results. However, the persistence layer, most of the persistence layer seen as a component of the application, the component is closely related to the application, and trying to make the component part or all of the features of the DBMS kernel (Kernel). Design ideas, making the persistence layer structure is very complex, coupled with high and difficult to implement, or achieve lasting layer is too concentrated, complex, increasing the difficulty of the application. Consider the persistence layer study of the status quo, the paper proposes a persistence layer framework, a component-based persistence layer framework greatly simplifies the design of component-based design, and offers a high flexibility and reusability. The persistence layer framework proposed in this paper is divided into four layers. The first layer (layer 0) is a basic persistence management, storage management and cache management; second layer (layer 1) log management for persistence layer framework to provide reliability support; third layer (layer 2) provide affairs support; fourth layer (layer 3) the mapping management provides a flexible mapping configuration management. Based on the framework of the persistence layer can be seen as a set of well-integrated components, each component provides a single function, such as logging, storage management, mapping management. These components are both thought to meet specific needs alone, they can be a good combination to work together, these components with high cohesion, low coupling characteristics make object persistence layer structure is clear, simple, and can be based on actual needs configuration. This paper systematically analyzed from the object model to the relational database model mapping mode strategy, comparing different mapping strategies in performance, space consumption, flexibility and other aspects of performance, integrity and relationship constraints
Table of contents
The Chinese summary 4-6
English summary 6-11
Chapter 1 Introduction 11-16
1.1 Topic Selection and its research significance nbsp 11-12
1.2 thesis research background; 12-14
1.3 Topic Selection related work 14
1.4 of this thesis organization 14-15
1.5 Chapter Summary 15-16
Chapter 2, object-oriented technology and relational database theory nbsp to; 16-24
2.1 object-oriented technology theory 16-19
2.1.1 of the basic concepts of object-oriented 16-17
2.1.2 UML Profile 17-18
2.1. 3 Class-Type Architecture 18-19
2.2 database theory 19-23
2.2.1 relational database 19-21
2.2. 2 object - relational database 21-23
2.2.3 object-oriented database
23 2.3 Chapter Summary 23-24
Chapter 3 objects relational mapping theory and its development 24-30
3.1 SQL statements embedded in the business logic 24-25
3.2 data layer 25-27
3.3 robust persistence layer 27
3.4 object universalization the 27-29 3.5 Chapter Summary
nbsp 29-30
Chapter 4 persistence layer needs ; 30-35
4.1 large commercial system requirements for persistence layer the 30-31 4.2 general constraints
31
4.3 persistence layer needs nbsp 4.4 Chapter Summary; 31-34
34-35
Chapter 5 mapping strategies the 35-44
5.1 to the class mapping 35
5.1.1 a class mapped to a table 35
5.1.2 a class mapped to multiple tables 35
5.2 inheritance relationship mapping 35-38
5.2.1 an inheritance tree is mapped to a table 36
5.2.2 an inheritance path is mapped to a table 36-37
5.2.3 inherit each branch a table 37-38
5.3 aggregation relationship mapping 38-39
5.3.1 Single Table polymerization 38-39
5.3.2 foreign key polymerization 39
5.4 the relationship mapping the 39-41
5.4.1 foreign key associations 39-40
5.4.2 associated table 40-41
5.5 BLOB mapping mode 41
5.6 integrity and relationship constraint checking 41-42
5.6.1 operating the constraints of the parent table the 41-42
5.6.2 sub-table operation constraints 42
5.7 Chapter Summary 42-44
Chapter 6, component-based persistence layer framework 44-53
6.1 Framework outlines are found; 44-45
6.2 basic component layer (Layer 0) design 45-47
6.2.1 cache management design mode 45-46
6.2.2 Synchronization Control 46-47
6.3 reliability support layer ( 1 layer) design 47-49
6.3.1 collection redo (Redo) 48-49
6.3.2 checkpoint set 49 <br / > 6.4 transaction support layer (layer 2) design 49-51
the 6.5 mapping support layer (layer 3) design 51-52
6.6 Chapter Summary 52 - 53
Chapter 7 component-based persistence layer design and realization 53-65
7.1 Overview persistence layer component-based design 53-54
7.2 based component persistence layer design steps 54-55
7.3 persistence layer component-based design description 55-62
7.3.1 PersistenceManager class description 55 -56
7.3.2 PersistenceObject class description 56
7.3.3 MapCriteriaController class description 56-58
7.3.4 ClassMap class description 58 - 59
7.3.5 Cursor class description 59
7.3.6 PersistenceTransaction class description 59-60
7.3.7 Other Class Description 60
7.3.8 StorageManager class description the 60-62
7.4 the persistence layer part of the code of component-based realization the 62-64
7.5 This chapter subsections 64-65 the
summarize text 65-67
Acknowledgements 67-68
Reference 68-71
Appendix 71-72 the
originality statement 72,
dissertation, use power of attorney 72
Related dissertations
- The Design and Implementation of the TianJin HeDong District Community Hospital Drug Purchase Management System
- Design and Implementation of Substation Equipment Management System Based on.NET Platform
- Design and implementation of Automatic Pharmacy software system of TCM formula granule
- UML and component technology Technology PDM integration into the flight
- The Research and Application of Three-Dimensional Components Packing System
- The Research of Database Generating Engine and Object/Relational Mapping Based on .Net
- The Application and Research of Object-Oriented Technique in RDBMS
- Risk Management in M-Commerce Projects a Case Study of M
- Design and Implementation of the Engineering Machinery Color Monitor System Based on FPGA+MCU
- Design and Implementation of Dynamic Monitoring System for Budget Enforcement Based on J2EE
- The Design and Implementation of Statistical Data Collection and Process System of Dujiangyan Statistical Bureau
- Optimization and Application of Particular Modules in Office Automation System for Ningbo Human Resources and Social Security Bureau OA System
- Design and Implementation of an Embedded Multi-media Player Based on Intel CE4100
- Research on SPARQL Query Over Relational Databases Based on SQL Convertion
- Research on Semantic Keyword Query Over Relational Databases
- Research on Semantic Correctness Oriented Integrated Data Access
- Storing Large Scale Semi-structured and Unstructured Data on RDBMS
- Transparent Query Rewriting for Unstructured Data Stored in RDBMS
- Research of Ontology Based Semantic Query System of Relational Database for Port
- Study on conversion and UML testing and model based on AADL