Research and Implementation of a Java - based database access engine

Author
ZhangBo
Advisor
WangJi
School
Central South University
Major
Applied Computer Technology
Classification
TP311.13 Database theory and systems
Degree
Master's thesis
Year
2007
Downloads
237
Citations
1

Request the full text

Abstract

Java have many kinds of data accessing technologies, but data accessing technologies and code mapping is adopted in all the existing mappings between data base accessing and Java object. This mapping means that if the database form changed, the code also need to be changed, which is inconvenient for modifying and upgrading.This paper mainly works over the problems in Java database accessing, probes into the existing technologies, particularly expounds the advantages, disadvantages, adaptabilities and capabilities of each technology, introduces database accessing engine (DAE) which developed from the former technologies based on Java.The paper describes the function, structure,principle and code realization of DAE in detail. The advantages of this system are embodied through vadidating of several examples and contrasting with the traditional ones.DAE based on Java uses object / relation mapping technology, namely uses XML to describe database object mode, and dynamic mapping is shaped through XML and form. Mapping is realized by the functioning Java. In this way, the database model is separated from the code, so even the database changes, we only have to modify the database model description.Meanwhile, the disadvantdges in mapping between database accessing and Java direct code will be overcome. In terms of operating database, object-faced technique is used. SQL is grouped in object-faced way, and its operating interface is reserved. The work is lightened without having to be familiar with the new tools.

Table of contents

Abstract 3-4 ABSTRACT 4-8 The first chapter 8-15 1.1 Background 8 1.2 Research 8-9 1.3 goals this topic 9 1.4 Technical Background 9-14 1.4.1 object / relational mapping technology 10-11 1.4.2 XML technology 11-13 1.4.3 Java overview 13 1.4.4 Database Overview 13-14 1.5 thesis is organized 14-15 Chapter Java environment data access 15-23 2.1 data access method types 15-16 2.1.1 Direct code embedded 15 2.1.2 Data Class 15 2.1.3 persistence layer 15-16 2.2 relational model and object-oriented model does not match 16 2.3 Java present several data access technologies 16-22 2.3.1 JDBC direct access to the database 16-19 2.3.2 JDO 19-20 2.3.3 Hibernate 20-21 2.3.4 entity bean 21-22 2.4 Summary 22-23 Chapter DAE research and design 23-35 3.1 DAE design ideas 23 3.2 DAE architecture 23-24 3.3 DAE architecture 24-29 3.3.1 system functions 25-26 3.3.2 DAE core class design 26-29 3.4 DAE principle 29-31 3.5 DAE design patterns used in 31-33 3.5.1 separation of interface and implementation model 31-32 3.5.2 factory mode 32-33 3.6 software environment 33-34 3.7 This chapter summarizes 34-35 Chapter DAE realization 35-50 4.1 DAE object / relational mapping 35-41 4.1.1 XML description file generation module design 36-37 4.1.2 XML description file generation module HMI 37-41 4.2 interface for data access using DAE realization 41-47 4.2.1 add a single record 42-43 4.2.2 delete a single record 43-44 4.2.3 paging query multiple records 44-47 4.3 Performance testing and data 47-49 4.3.1 Experimental environment and content 47 4.3.2 experimental data and analysis 47-49 4.4 Summary 49-50 Chapter Summary and Outlook 50-52 5.1 This article summarizes 50 5.2 Job Outlook 50-52 References 52-56 Appendix 56-74 1 DBA package 56-61 2 DBT package 61-64 3 MGR package 64-65 4 Page package 65-67 5 SQL package 67-74 Thanks 74-75 pursue a degree during the main research 75

Related dissertations

  1. Research and Implenmentation on a Mobile Maintenance System for IC Card Flow Meters
    ChenLong ·Wuhan University of Technology ·2008 ·Master's thesis
  2. Tax Registration System Research and Design Based on Struts Framework
    LiMei ·Beijing Jiaotong University ·2008 ·Master's thesis
  3. Design and Implementation of Web-based Management Platform for Examinations
    XuZuo ·Shandong University ·2007 ·Master's thesis
  4. Study on Heterogeneous Database Special Middleware Based on the Framework of Lightweight J2EE
    HuangLi ·Hebei University of Technology ·2006 ·Master's thesis
  5. Design and Implementation of J2EE Based Automation Testing Tool
  6. Object/Relational Mapping and Its Implementation in Java Environment
    MeHaiFeng ·Wuhan University ·2004 ·Master's thesis
  7. The Design and the Realization of the Labor Force Sub-system of Haidian Labor Social Security Platform
    ShiZuo ·Shandong University ·2007 ·Master's thesis
  8. Design and Realization of Producing Management System on Basis of Struts and Hibernate
    XiongKe ·Sichuan University ·2006 ·Master's thesis
  9. The Research of the Software Architecture about the EAM Which Base on J2EE
    ZhaoKeHua ·Zhejiang University of Technology ·2006 ·Master's thesis
  10. The Design and Implementation of an Object Persistence Framework and Auxiliary Development Tools Based on O/R Mapping
    ZhengZuo ·Suzhou University ·2006 ·Master's thesis
  11. Researching & Development of General System of Surveying Online
  12. Research on the Development of Data Driven Application and Design of the Automatic Code Generating Tools
  13. Research and Application of Multilayer Truss Based on Struts and Hibernate
    LiJiRui ·Wuhan University of Technology ·2006 ·Master's thesis
  14. Optimize Transparence Persistence Store in J2EE Environment and Implements with JDO
    LiuKe ·Hunan University ·2005 ·Master's thesis
  15. Research and Design of the Lightweight Web Famework Based on the Spring
    ChenPing ·Jiangsu University ·2005 ·Master's thesis
  16. Textile Product Lifecycle Management
    LiuJun ·Zhejiang University ·2005 ·Master's thesis
  17. Research and Implementation of J2EE-Based Data Access Middleware
    HuangHua ·Hohai University ·2005 ·Master's thesis
  18. The Core Technology Research and Application of Knowledge Repository Base on Object/Rational Mapping
    ZuoJing ·Wuhan University of Technology ·2004 ·Master's thesis
  19. The Online Examination System Based on J2EE
    LeiZuo ·Tianjin University ·2007 ·Master's thesis
  20. The Organization Coding Management System Based on J2EE Technology
    ZuoWei ·Tianjin University ·2008 ·Master's thesis