One of the reoccurring issues in Object-Oriented (OO) applications is linking the data, methods in objects to relational databases. Since most widely used databases at present are based on relational structure and communicated in SQL,it is necessary for OO applications to find a mechanism accessing data in relational database efficiently and consistently.This paper illustrates Object-Relational Behavioral Design Patterns with UML implementation and presents an application of these ideas in a hypothetical online banking system.%在面向对象的应用软件中,广泛存在着对象中的数据和方法与关系型数据库之间相关联的问题.目前使用的主流数据库多是关系型的,并且使用SQL作为查询和报表生成语言.对于面向对象的应用软件来说,需要归纳出一种有效并读写一致的摄取和更新关系型数据库中数据的机制.本文对对象与关系型数据库之间相关联的软件设计模式进行了研究,使用统一建模语言UML完成比软件设计模式更为具体的软件构造实现,并且使用该方法对一假设的网上银行系统进行建模研究.
展开▼