摘要
在面向对象的Java应用开发中,经常采用关系数据库作为持久对象的存储机制,由于对象模型与关系模型之间的“阻抗不匹配”问题,以及关系数据库管理系统本身的内部标识生成机制,使得在关系数据库中存储Java对象时,有时会导致重复对象数据的存储。研究对象持久化处理过程,将对象标识生成过程从关系数据库管理系统中分离出来,并独立于应用业务逻辑层的设计,根据这种思想,提出了2种方案来解决Java对象的重复存储问题。
In the development of Java object-oriented application ,relational database is often used as persistent objects storage mechanism. But sometime there are duplicate storage problems because of the impedance mismatch between object model and relational model. The inner identifier generator inside the relational database management system can also lead to the same results. The process of object persistence is studied in this paper. The object identifier generator is separated from the RDBMS and isolated from the application logic layer. Based on this idea, two solutions are presented to deal with the problem of Java object duplicate storage.
出处
《北京机械工业学院学报》
2006年第2期41-45,共5页
Journal of Beijing Institute of Machinery
关键词
持久对象
阻抗不匹配
对象持久化
对象标识
persistent object
impedance mismatch
object persistence
object identifier