The Design and Analysis for the Data Mapping Tool Based on ORM

Author
ZhaoFeng
Advisor
ShiBing , WangZhaoLiang
School
Shandong University
Major
Computer technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2008
Downloads
60
Citations
1

Request the full text

Abstract

The object-oriented design mechanism is different from the relational model, which has created both of them mismatch. Object-oriented design based on theories like coupling, polymerization, encapsulation and so on, data binding on object, and processing by method in object, The background of this issue is the establishment of such a mismatch on the basis.But the relational model based on mathematics principle stores data by the line, row and the table form. The different theoretical principle has caused the different good and bad points. The object model stresses in the use of object which contains the data and the behavior to constructs the application procedure; then the relational model mainly aims at data storage. When seeks one appropriate method for accessing data, this mismatch has become the principal contradiction. Use object model to access data frequently through relations among of the objects. But according to the relational theory, accessing data is through the table connection, the ranks duplication . This basic difference causes unions of two kind of mechanism not to be ideal. In other words, needs one kind of mapping mechanism to resolve this contradiction, thus obtains the successful design.The main topic of this work is to develops one kind of data mapping tool based on the ORM. The goal is to solves the above questions of using objects in the application procedures which take the database as the center. This tool may enable the application procedure to use one relational database to store and retrieve objects transparently. The solution is how to corresponding using metadata plan to describe the service object and the database . When running, this tool uses metadata to produce SQL, the run request and errichten object according to the result. This meant not only you do not need to your service object to carry on any hard code based on the SQL, does not need to establish the specifical perclass or to use produced code, but also not need to understand any SQL or the database knowledge. You only need the direct processing object, just like processing any ordinary Java object. This tool is composed by two function modules: Mapping Workbench and Data Access Object. Mapping Workbench provides graphics interface to construct metadata which object maps to the database. This tool enables you to map the Java class to the relational database table which stores its example, simultaneously a kind of attribute of the class will also map to the field of correlation table. How this tool does correspond to use produced metadata to describe the service object by Mapping Workbench with a specific database mode. The second function module data accessing level has sealed accessing to the database, which permits development person to concentrate the commercial domain question. Namely meant, sealing accessing database provides enough simple CRUD interfaces to enable increase, delete, change functions and so on inquiry of the database. Moreover, has also provided the seal to the database design, causes the exploiter not to need to understand the database the private realization. The DAO level hid the access mechanism thoroughly, has isolated the possible revision. The data accessing level need metadata provides the information of the mapping object. When the commercial rule like formerly changed, the DAO level code should not need to change. Moreover, when database changed, possibly installing the new database or DBA reorganizing data table, only needs to modify the metadata information. When you operate the service object, this tool can construct the SQL inquiry to update the database. This is an automated process, like this reduced dependence to the database, even more is convenient to the maintenance, simultaneously enables development person not familiar to the SQL sentence also to code query according to the service domain. This tool is responsible to produce SQL and return represents the result the object.The subject of this theory and practical significance is providing the automatic data mapping tool which easy to use , which is helpful to solve the questions of using objects in the application procedures which take the database as the center. This tool may enable the application procedure to use one relational database to store and retrieve objects transparently. This technology automatically map between the object-oriented technical construction system and the traditional relational database, which does not need to coding the SQL sentence and access permanently. Even the complex inquiry also can not need to coding the SQL sentence manually, reduces the development work.

Table of contents

Abstract 8-10 ABSTRACT 10-12 first chapter 12-16 the the topic 1.1 development background 1.2 What is object-relational mapping (ORM) 12-13 1.3 ORM framework currently applied in the market and their advantages and disadvantages 13-15 1.3.1 EJB CMP 13 1.3.2 TopLink 13-14 1.3.3 JDO 14 1.3.4 Hibernate 14-15 1.4 of this paper mainly work 15 1.5 of this article organizational structure 15-16 Chapter the ORM's background knowledge 16-26 2.1 object mapping 16-19 2.1.1 attribute mapping into the field 2.1.2 classes mapped to tables 16-18 2.1.3 relational mapping 18-19 2.2 referential integrity relationship constraint checking 19-23 constraints of the operation of the relationship between the parent table 2.2.1 object 19-22 2.2.2 sub-table operation constraints 22-23 2.2.3 Summary 23 2.3 object identifier (Object ID) 23-26 2.3.1 OID should not have commercial significance 24 2.3.2 OID only 24-26 system design 26-40 3.1 system modeling 26-27 3.1.1 per data model design 26-27 the 3.1.2 business data model design 27 3.2 system database design 27-31 3.2.1 metadata database design 27-29 the 3.2.2 business data database design 29-31 the the 3.3 mapping Workbench (Mapping workbench) design 31-33 3.4 Data Access Layer (DAO) design 33-37 3.4.1 relations in a relational database via DAO 34-36 3.4.2 Data Access Interface Design 36-37 3.5 object identifier (Object_ID) analysis and design 37-40 3.5.1 integer column using MAX () 37-38 3.5.2 Persistence mechanism 38 3.5.3 HIGH / LOW Method 38 3.5.4 HIGH / LOW method to achieve analysis 38-40 Chapter realization 40-55 4.1 system running soft hardware environment 40-41 4.1.1 hardware environment 40 4.1.2 software environment 40-41 4.2 system to achieve 41-51 4.2.1 mapping table (Mapping workbench) achieve 41-47 4.2.2 Data Access Layer (DAO) implementations 47-49 4.2.3 object identifier (Object ID) implementations 49-51 4.3 systems - model-based interface 51-55 system test 55-67 5.1 test environment 55 5.2 testing tools 55-56 5.3 test solutions 56-57 5.4 test reports 57-60 5.4.1 Performance test 57-58 5.4.2 load test 58 5.4.3 pressure test 58-60 5.5 test cases 60-67 5.5.1 Employee Information New 60-62 5.5.2 Employee Information query 62-64 5.5.3 employee information update 64-67 Chapter Summary and Outlook 67-70 6.1 system to complete the function 67 6.1.1 mapping workbench 67 the 6.1.2 data access layer 67 6.2 Looking 67-70 the References 70-72 Acknowledgements 72-73 the Dissertation reviewers and the respondent table 73

Related dissertations

  1. Design and Implementation of Toll Management System in Heating Companies
    LiJian ·Northeastern University ·2011 ·Master's thesis
  2. Design and Implementation of a Project Management System Based on SOA
  3. Research on Mapping between Object-oriented Model and Relational Data Model
    YinShanHua ·Central South University ·2007 ·Master's thesis
  4. Research of Object/relational Mapping (ORM) and Some Implementation Based on C#.NET
    ZhongYun ·Shanghai Maritime University ·2006 ·Master's thesis
  5. Based on object - relational mapping technology to solve the problem of persistent Java environment research
  6. ORM-based research and design of the data persistence layer
    ZhangHongLiang ·Qufu Normal University ·2009 ·Master's thesis
  7. Non negative pressure water pump monitoring system design and implementation of SCADA software
  8. Software Design for Control System of Electro-hydraulic Three-axis Flight Simulator
    KongJie ·Harbin Institute of Technology ·2012 ·Master's thesis
  9. The Design and Implementation of Website Construction Based on OpenCms Technology
  10. Research on SPARQL Query Over Relational Databases Based on SQL Convertion
    ZhangLiLi ·Northeastern University ·2011 ·Master's thesis
  11. Research on Semantic Keyword Query Over Relational Databases
    DiJianZhao ·Northeastern University ·2011 ·Master's thesis
  12. Design and Implementation of Object-relational Mapping Freamework for Hybrid Data Store
    ChenCheng ·Harbin Institute of Technology ·2012 ·Master's thesis
  13. Research on Semantic Correctness Oriented Integrated Data Access
  14. Storing Large Scale Semi-structured and Unstructured Data on RDBMS
  15. Transparent Query Rewriting for Unstructured Data Stored in RDBMS
  16. Research of Ontology Based Semantic Query System of Relational Database for Port
    MaJingJing ·Beijing Jiaotong University ·2014 ·Master's thesis
  17. Design and Implementation of Materials Management System of Multi-level Educational Institutions
    PeiZhiChao ·Northeastern University ·2013 ·Master's thesis
  18. Design and application of J2EE persistence layer framework DR-ORM
  19. Design and Implementation of Ji’nan Waterconservancy Bureau Covers Security Information System
    MaShiTao ·Shandong University ·2013 ·Master's thesis
  20. The Design and Implementation of Sinopec Sales Co.,Ltd Personnel Management System
    LinYan ·Dalian University of Technology ·2013 ·Master's thesis