O/R Mapping in .NET Platform Application and Research
- Author
- WangJiXing
- Advisor
- CaoXuGuang
- School
- Jilin University
- Major
- Software Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 128
- Citations
- 2
Abstract
The current social insurance industry MIS systems, the basic technology has applications in object-oriented technology with relational database systems, and the modern software development industry net and java foundation class libraries are completely object-oriented. In durable storage of data on the use of mature relational database systems, however, the object-oriented Model of Object-Oriented exists "impedance mismatch" problem with relational database system’s relational data model. Targeted to the programs object data within the data in the data storage’s inconsistencies are often complicated by the need to achieve the conversion (the "impedance mismatch"). This mapping always follow the same set of patterns, that is a lot of repeat manual work and repeat code, which causes the mixed results both meaningless difficulty and consumption in program development and hardness to maintain.In order to change this inefficient mapping mode, improve the efficiency of the development process and reduce code writing and increases the flexibility of procedures and response capabilities, this paper is exploring to application Object / Relational Mapping technology to the establishment of a durable transparent layer to solving the "impedance mismatch" problem among models.In this paper, "social security systems" for the background, try to solve the problem of "impedance mismatch" on the .NET platform application ORM components in the social security system.Beginning early 1990s, O/R Mapping (object/relational mapping) technology began development for resolving the impedance mismatch problem between object domain and the relationship model. After years of development, from Scott W Ambler released in 1998 on the ORM Persistence Layer after the detailed design of papers , Artem Rudoy realized an open source project PL (Persistence Layer), and of a test to the feasibility the advanced nature of the Scott’s lasting layer design. The ORM makes components associated with the study and implementation of the rapidly become a hot spot. From then emerged in a lot of ORM software, which is well-known: Hibernate, ObjectSpaces, XPO, Genome, etc.. The object / relational mapping technology has been improved and developed.Based on the relational model and object model theoretical research, in-depth exploration and study of the relationship between model and the resulting object model "impedance mismatch". Addressing the "impedance mismatch" issues corresponding mapping strategies and methods. And mapping strategies and methods for comparative study. And concluded, in the practical application should be based on practical problems, choose a different mapping strategies and methods to improve the efficiency and rationality of the mapping.The object/relational mapping technology ultimate through the tool in the system to achieve. So this is a choice abroad on .NET platform mature ORM tools Genome were studied, And conduct experiments on the method the components achieving object/relational mapping technology. The component achieves to the mapping between object and relational database, using an XML document to define the mapping, and the use of a class of lasting with the same name to XML mapping file with the corresponding XML documents. In this code, adopted on the conduct of this lasting object’s operation, like the operation in the relationship database table. In this process, only to see lasting objects, but not table. A real sense of the pure object-oriented programming. When the need to change the table structure, only need to amend the corresponding mapping file can be, they do not have to everywhere in the code to find and modify code.The availability of object/relational mapping to achieve theoretical basis and selected components, this paper on the preparations for the realization of the social security system. The national policy and business processes on the basis of social insurance industry policy has continually improved, expanding the scope of the demand, user requirements for controlling the operation of the system changes in diversity, the social security system part of the system algorithms are intricate and complex, the building of social security features, higher demands. A needs analysis. While on business operations will be classified into six most systematic and structural design of the overall handling agency for social security and other relevant units provide interactive data interface. Based on the analysis of demand in the overall system architecture design plans and the establishment of the system software architecture. In application of the system design object / relational mapping technology to the overall design of the system. Reference MVC design pattern, the three levels of response system, the interface layer, respectively, the operation control layer, logic for the design and realization. Then, through the C / S and B / S mode and the development of J2EE and. NET platform, the development model of the system and platform choices.Finally in the realization of system applied object/relational mapping technology. Through the creation of a durable transparent layer of the system to the business layer and data access layer was isolated by the construction of a durable transparent layer model to eliminate the "impedance mismatch." At the same time according to the characteristics of a lasting, durable layer document revision, but also should constantly improve and diverse business needs change, and change database tables on the system.Practice has proved that in the application of mature object-oriented language tools (. NET or Java), while applications mature relational database (SQL Server, Oracle) storage technologies such as social insurance MIS program development, will have a great deal of manual duplication of work and duplication code, to a large extent by this development should focus more attention to business logic and code maintenance, these problems with the model to some extent the "impedance mismatch" issues. Through the object model and the relationship between the model to build a durable transparent layer, this model will eliminate the problem. At the same time the development of social insurance such as MIS systems development, the transparent layer in addition to the elimination of a lasting model of the "impedance mismatch" problem, allowing the system to adapt to the rapid localization needs of users and shorten the development cycle and reduce systems development, maintenance costs, lower volume of code revision, timely respond to changes in demand and component reuse system such areas have been significantly improved.
Table of contents
Executive summary the 4-6
Chapter 1 Overview 6-11
1.1 Background 6-7
1.2 research status 7-10
1.3 This paper is organized 10-11
second chapter object -relational mapping technology 11-49
2.1 two models and problems 11-22
2.2 mapping strategies and methods 22-41
2.3 N ET platform ORM mapping implementation 41-46
2.4 operating data persistence 46-48
2.5 Chapter Summary 48-49
the third chapter of the Social Security system analysis 49-57
3.1 system Requirements analysis 49-51
3.2 overall system structure 51-53
3.3 system software architecture 53-56
3.4 Chapter Summary 56-57 < br / > Chapter IV of the Social Security system design 57-73
4.1 overall design of the system the 57-61 4.2 interface design
61-63
4.3 design and Implementation of operational control layer 63-65
4.4 business logic layer design 65-69
4.5 system development mode design 69-72
4.6 Chapter Summary 72-73
Chapter in the social security system based on object / relational mapping applications the 73-81
5.1 system based on object / relational mapping technology to achieve 73-74
5.2 build persistence layer 74-77
5.3 operating persistence layer the 77-78
5.4 part of the development of the system and achieve 78-80
5.5 Summary 80-81
Chapter VI summarizes 81-83
6.1 This paper summarizes 81-82
6.2 future work 82-83
reference 83-86
Summary 86-88
ABSTRACT 88-92 < br / > Acknowledgements 92
Related dissertations
- European Debt Crisis:It’s Causes, Hazards and Warning
- Design and Implementation of Bank Performance Appraisal Management
- Studies on Algorithms for Genome Scaffold Filling Problem
- Research on the problem of social security system in China
- Analysis on Germany's Social Security System in Bismarck Period
- Establishment of Channel Catfish Kidney Cell Line and Pathology Study of Channel Catfish Hemorrhagic Disease
- Preliminary Analysis of High Pressure and Cold Adaptation Mechanisms of Microbacterium Sediminis YLB-01
- Isolation and Identification of ALV-J SSGS-1Strain and Construction of Its Infectious Molecular Clones
- Genome Wide CNV Association with Partial Traits in Sheep
- Comparative and Synteny Analysis among Watermelon, Melon,and Cucumber Genomes
- Genome Constitution of Roegneria Alashanica Revealed by Genomic in Situ Hybridization and Nuclear rDNA ITS Sequence Analysis
- Study on the Complete Genome Sequence Map of Bacillus Thuringiensis Strain MC28and Insecticidal Protein Genes
- Antibacterial Activity and Mechanism of10-HDA Against Gram-positive Bacteria
- The Analysis of Rhizopus Chinensis Genome Sequence and Its Preliminary Application
- Phylogenetic Analysis of Hystrix and Leymus in Triticeae
- Genome Structural Characteristics of the Different Serotypes Riemerella Anatipestifer
- Rescue of the Genetically Engineered Foot-and-mouth Disease Virus and Its Research of Sublingual Immunization
- The Whole Genome Sequencing and Virulence Determination of An Anti-Tumor Newcastle Disease Virus
- Analysis of Genomic Characteristics and Identification of the Genes Dispensable for Replication of Porcine Cytomegalovirus
- Reconstruction and Analysis of Genome-scale Metabolic Models of Typical Industrial Microorganisms