Analysis and Design of Objects Persistence Model Based on Object Relation Map

Author
GuoXuDong
Advisor
ZhangYanZhen
School
Southwestern University of Finance and Economics
Major
Technology Economics and Management
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2007
Downloads
130
Citations
4

Request the full text

Abstract

Described as a software data of the two mainstream models - object model and the relational model, with different theoretical basis and characteristics of the model. Object Model objects to represent things in the real world; using the object model and design complex software systems can describe. Which makes the popular object-oriented design methods in software development, has become the basis of the analysis of business data, to become the standard technology for almost all applications development. It is frustrating, its the same object-based model, in theory model that most closely matches the object-oriented database but can not as mainstream, most applications also stored in the relational database. A description of the object model and relational model of data is different: the object contains properties and behavior, inheritance, association and relationship between the object, relational database contains tables, relationships, and between the tables using the main foreign key indicates and so on. This highlights the pattern of the object model and relational model mismatch. In the vast majority of applications, the temporary presence of objects in memory need to be permanently stored in a relational database, enables designers to spend a lot of effort to solve object-based data to the relational data into, and stores the data in a relational database the problem. Access objects in a relational database, it is commonly used: the first method is to embed SQL statements that directly writing SQL code to access the object to the application code; The second method is the SQL code in a special class (or storage write process); essence of the source code package to execute SQL commands against the data class is a local package. Both of these options makes the object model and relational database schema coupling, easy to maintain, because either object or relational schema minor changes, will result in the application to recompile. Only suitable for small applications or rapid prototyping. Third, and the mainstream method, that is specialized in the persistence layer mapping between objects and relationships, this mechanism so that application developers do not need to understand the relational database model, do not need to learn object is stored in the database transparent operation of the data stored in a relational database, is conducive to the development of large-scale applications. However, due to the persistence layer design system, will inevitably result in efficiency, making the persistence layer design is not just the problem of processing mode mismatch, but also requires a corresponding mechanism to solve the problem of efficiency. Persistence layer design trade-offs such as performance, reading frequency, scalability, space-consuming, supports transactions, cursors, handling object identity, the persistence layer has the functionality required by the application system, combined with the actual application environment to weigh the persistence layer a variety of functions to meet the most basic and meet the functional requirements of the application environment. Persistence layer mapping to follow certain rules, different persistence layer support the mapping rules are not the same. ORM (Object Relation Mapping) must support classes, properties, methods of mapping relational mapping inherited mapping, mapping data integrity and other basic functions. In this paper, the mapping rules with examples analyzed in depth, a variety of mapping concepts, methods, and horizontal contrast the different ways to achieve the same goal at the same time, some of the use of the principle of. Popular and very mature J2EE mainstream platform to create enterprise-class applications, JDO is a lightweight version, but there are also as middleware features such as take up too many resources, rely on XML data entity representation; Microsoft NET time is relatively short, on this platform is not mature unified architecture described in this article and the design is based on Microsoft's. NET's middleware architecture, strictly speaking, it is not in the narrow sense objects relational mapping and persistence tools because it is standing on the perspective of the overall design of the software as a core data entity and data access goals, reservation and simple implementation of an entity that is controlled, business rules, and other functions. In this paper, Netlight a major address object-relational mapping, database access middleware architecture, although it is a lightweight, relatively simple framework, but its architecture is based on hierarchical structure is clear, after the function intensive, add more modules can be used as an enterprise-class, with greater scalability, smaller coupling middleware framework. With a common framework of hierarchical difference is that the data physical layer is further subdivided into data entities and data manipulation layer, business logic layer code clearer, and further reduce the degree of coupling of the data physical layer. Netlight hierarchical set to Business Facade layer, business logic layer, physical control layer, data physical layer and data access layer, five-story structure to encapsulate different database to access data representation, data query, insert, delete, and modify, and business logic processing and business service providers, so that the upper and only need to call the lower package operation, without concern for the details of its implementation, the rows of the functional, reducing the mutual coupling of the various functional units of the system and the storage medium, so that a clear code high, with high maintainability, parallel part of the work in software design can improve the efficiency of development. About the class structure Netlight, this article described in detail and with examples of the mapping rules of the system, database access package, the representation of the data entities, the control of the data entities, business logic and business services provide lists achieve the level of functionality key classes of commonly used methods, and calling relationships between classes. In this paper, another breakthrough mainstream object-oriented design methods, design methods used in the design of middleware AOP (aspect-oriented programming), and by comparing the system coupled with the object-oriented approach to the same business logic in reducing business logic clear performance, thinking of the AOP, in Netlight try to use AOP to address such as identity permissions inspection, logging often call the business logic and business logic coupling, but it belongs to the whole system processing. Solve sometimes exist in the object-oriented programming and business logic tightly coupled and difficult to expand the shortcomings of the lack of flexibility. But paper is just some of the more basic functions of the middleware, some of the features of the interface has yet to be filled and perfect; AOP support only at the conceptual stage; actual project to test the system as a theoretical framework, rational design, combined with the actual continue to be improved.

Table of contents

Chinese Abstract 3-6 ABSTRACT 6-11 1. Introduction 11-13 2. Relational model and the object model 13-29 2.1 object model 13-21 2.1.1 basic Concepts 13-15 2.1.2 object modeling tool 15 - 21 2.2 relational model and relational database 21-27 2.2.1 relational model 21-24 2.2.2 relational database concepts and technologies 24-27 2.3 model features and model mismatch 27-29 3. objects persistent research 29-38 3.1 object persistence methods 29-30 3.1.1 SQL statements embedded in the application code 29 3.1.2 data Class 29-30 3.1.3 persistence layer 30 3.2 analysis and Research on the persistence layer 30-35 3.2.1 persistence layer needs ( functional ) 30-33 3.2.2 lasting layer design tradeoffs 33-35 3.3 object identifier problems 35-38 3.3.1 object Identifier 35-38 4. object - relational mapping mechanism 38-47 4.1 mapping criteria 38-47 4.1.1 straightforward mapping 38-39 4.1. 2 complex mapping 39-47 5. persistence layer design 47-78 5.1 application development stratification system 47-49 5.2 design Overview 49-50 5.3 detailed design 50-77 5.3.1 Netlight the ORM designer 50-58 5.3.2 Netlight objects manipulation interface 58-63 5.3.3 Netlight an ORM support objects 63-66 5.3.4 Netlight data representation 66-71 <br / > 5.3.5 Netlight physical control layer in the realization 71 5.3.6 in the realization of business logic in Netlight 71-73 5.3.7 provides business services 73 5.3.8 AOP ( aspect Oriented Programming ) in Netlight the envisaged 73-77 5.4 test code 77-78 Appendix 78-93 References 93-96 Postscript 96-97 Thanks 97-98 during the reading research results directory 98

Related dissertations

  1. Research and Implementation of Entity EngineBased on EMA Platform
  2. The Study of Intelligent Warehouse System Based on the Internet of Things
    WeiGuangWei ·Beijing Materials Institute ·2013 ·Master's thesis
  3. Research on Information Fusion Technology in Internet of Things for Context Awareness in Shmart Home
    JingYanYan ·Harbin Institute of Technology ·2012 ·Master's thesis
  4. Research on Web Information Extraction Middleware for Supply and Demand of Agricultural Products
  5. Development of Realtime Interface Device for Hit-tena’s Resources
    XieDongZhou ·Harbin Institute of Technology ·2012 ·Master's thesis
  6. Research of RFID-based Commodity Anti-counterfeiting and Traceability System Technology
  7. Research and Application of RFID Middleware Based on Warehouse Management
  8. The Design and Implementation of the Securities Industry Large Centralized Trading System
  9. Research and Design of Middleware about Data Distributing in Campaign System
  10. Application and Research of Digital Room Service System Based on Cluster Server
  11. Design and Implementation of Food Safety Traceability System for Asia Group
    HuYu ·Dalian University of Technology ·2013 ·Master's thesis
  12. Passenger Transport Enterprises for the Public and Road Passenger Transport Management System Design and Implementation
  13. Seamless Steel Tube Production Logistics Management System Based on Radio Frequency Technology
    YangRenXing ·Dalian University of Technology ·2013 ·Master's thesis
  14. Distributed Electronic Health Record System Based on Middleware
    ZhangZuo ·Donghua University ·2014 ·Master's thesis
  15. Development of the New System Applied to the Career Technical College
  16. The Design and Implementation of Hotel IC Card Management System Based on the Theory of RFID
  17. And Realization of ERP system information integration middleware and Design Enterprises
    WuChenZuo ·Heilongjiang University ·2013 ·Master's thesis
  18. The Design and Implementation of Plug-in Energy Data Collection Middleware
    ShengKe ·South China University of Technology ·2013 ·Master's thesis
  19. The Design and Implement of Distributed Platform Based on Web Service and OSGi
  20. Research of Component Supported Digital Media Middleware Technology