An Implicit Persistence Framework of Object/Relational Mapping
Xing-run CHEN,Teng TENG,Gang HUANG,Hong MEI
2007-01-01
Tien Tzu Hsueh Pao/Acta Electronica Sinica
Abstract:Object/Relational Mapping (ORM) frameworks can automatically maintain the mapping between object attributes and relational database tables, greatly simplifying the data storage problems when developing an object-oriented system. However, existing ORM frameworks need the application codes explicitly call the persistence interface, which means that there will be many persistence codes scattered over and tangled with the business code. It not only makes the program structure unclear, more importantly, but also leads to the lack of dynamic adaptability for ever-changing persistence requirements. Based on existing popular persistence frameworks, this paper presents an implicit persistence framework of ORM, called Persistence on Demand (POD). First of all, POD makes persistence implicit, i.e., there is no code related to persistence in the application while an object can become persistent by defining a persistence strategy. Based on the implicit persistence, POD makes the persistence runtime adaptable by dynamically re-configuring the persistence strategy.