文档详情

基于UML的关系数据库建模研究与实现-电路与系统专业论文.docx

发布:2018-12-16约6万字共92页下载文档
文本预览下载声明
摘 要 目前关系数据库的传统建模方法是使用实体关系模型(ER 模型)。ER 模型可 以灵活地创建健壮的数据模型,但是在体现关系模型的数据相关的业务规则上提 供的词汇相对较少。随着数据库的发展,许多开发人员都明显感觉到 ER 模型的局 限性。 本论文的课题来源于某研究所的基础数据资源管理平台(FDRP)系统重构。 由于采用 ER 模型不能描述该数据库系统的业务规则,因此本文采用统一建模语言 (UML)对数据库建模,以解决数据库系统的业务规则建模问题。UML 是一种定 义良好的、易于表达的、功能强大的且普遍适用的建模语言。它拥有丰富的建模 符号,具有扩展机制且能被许多建模工具所支持。 具体而言,本文主要作了以下工作: 1. 针对采用 ER 建模中的问题,本文提出了使用 UML 符号对数据库建模。并根 据研究所的数据库系统的需求构造了 FDRP 的 UML 类图模型。 2. 对 UML 类图到数据库模型的映射方法和策略进行了研究,提出了从 UML 类 图转换为 UML 标准化类图,再转换为数据库模型的映射方法。并依据该思路 将 FDRP 的 UML 类图模型映射为数据库逻辑模型。 3. 将基于 UML 构建的数据库模型导入 Oracle 数据库中,得到该数据库的物理实 现。该模型被团队采纳并应用于实际的项目当中。 在数据库系统构建完成并运行后,不断有新的模块加入到数据库中,在这种 情况下,数据库的运行状态仍然良好。由此可证明,本文提出的 UML 数据库建模 方法简单且易于实现,且构建的数据库模型具有良好的可扩展性和可操作性。 关键词:关系数据库,UML 模型,映射方法,数据库建模 I ABSTRACT At present the traditional modeling technology of relational database is entity relationship model (ER model). ER model could create a steady data model neatly, but it could few vocabularies about business rules that reflect the data model. With the development of the database, many database developers have obviously felt the limitations of ER model. The subject of this paper was called Fundamental Data Resource Platform (FDRP), which is the database system of an institute. Because ER model could not describe the business rules of the database system, this paper decided to use the Unified Modeling Language (UML) to model the database system, which could solve the problem about business rules modeling. UML is a well-defined, easy-to-expression, powerful and universal modeling language. It has rich model notations and the extension mechanism. As well, it could be supported by many modeling tools. Specifically, the main work of this paper was: Because the proplems that ER model appeared, this paper proposed that using UML notations to model Database, and constructed the UML class diagram model about Database system of FDRP. We researched the method and strategy about How to map UML class diagram to the database model. That is, the UML class diagrams was converted to UML s
显示全部
相似文档