Font Size: a A A

Research And Implementation Of Lightweight And Reusable Component Technique For Data Persistence

Posted on:2007-03-27Degree:MasterType:Thesis
Country:ChinaCandidate:M LiFull Text:PDF
GTID:2178360182495562Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
In information age, information is the most important factor for development in every area. It is possible to share information among different organizations with the improvement of network. In fact, what shared in information is basically data. Data is the very direct representation of information resources. So, in order to realize data-sharing, data should not only be visited (that is to be connected with UI and to be managed following a series of principles) but also be perdured. As a result, with regard to the systems connected with data, the design of Data Persistence becomes quite important;what is more, with the development of data formatting of information, more and more management systems appeared. If the systems are to be designed with a good structure, the design of Data Persistence is an absolutely necessity. For the sake of system transplant and maintainability, concision in design of Data Persistence is one of the key factors which should be considered. Therefore, in order to make the design of Data Persistence much easier, extracting parts with little relations with business logics as a component and using it in Data Persistence design of different systems can make the design of Data Persistence much easier .With the assistance of the component, common errors made by users will be reduced in some extent. In addition, in the condition of so many tools for the design of Data Persistence available, concision of the component, that is to say, whether framework of the component is a lightweight one or not is also one of the factors with key influences for popularity. As stated above, research into the lightweight and reusable component for Data Persistence is worthwhile.In this paper, firstly, objects and object-oriented methods are introduced, and discussion of the conceptions and methods for objects persistence are referred. The principle, structure, mechanism, application of design patterns and etc of a component designed and implemented by author are introduced with emphasis. At the same time, support for ORM(Object Relational Mapping) is also presented so as to satisfy different programming habits of different users. During the introduction, the advantage of lightweight and reusability are presented especially. In order to prove the usability, concision and reusability of the component, it isapplied with POJO and DAO to design the Data Persistence in project of "Traffic Information Service System for Public Transportation in Chengdu city". Finally, capabilities of query, insert, deletion, update of data between the popular ORM tool—Hibernate and the component are compared. High performances of data visiting efficiency are showed in the condition of isolated models. Advantages and disadvantages of the component are explained as a conclusion.
Keywords/Search Tags:Data Persistence, JDBC, Hibernate, DAO, Design Pattern
PDF Full Text Request
Related items