Font Size: a A A

Research And Implementation Of Lightweight And Reusable Technique For Data Persistence

Posted on:2008-06-24Degree:MasterType:Thesis
Country:ChinaCandidate:L KuangFull Text:PDF
GTID:2178360215985611Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
The data persistence layer is a series of software serve, it can separate the application program away from datasource, provide a unified, safe data persistence mechanism. The persistence layer is upon the datasources, provide application program interface to use these datasources, and also serve for business logic layer. It can help programmer avoid writing methods to visit the datasource, but concentrate on business logic developing, and it can be reused in different projects, simplify the CRUD operation heavily.The Object Relational Mapping must be realized before data persistence, so in this paper first introduce the principle of ORM, discusses current problem of it, and introduce the corresponding mapping strategy, especially introduce two kinds of especial mapping, and give the achievement method to both mapping. Based on the resolution of ORM, we design a data persistence layer, and achieve the database connection pool management, draw into the callback mechanism and the affairs resolve mechanism, achieve the ORM for this persistence layer. At last take an example for this layer, and compare this persistence layer with Hibernate, then illustrate the advantages and disadvantages of it.1...
Keywords/Search Tags:persistence layer, ORM, mapping, Hibernate
PDF Full Text Request
Related items