摘要
目前应用软件开发大多使用面向对象设计,采用如Java、C#等面向对象的语言来实现,而数据库一般还是RD-BMS(关系数据库管理系统)关系数据库。由于对象模型和关系模型存在阻抗不匹配,因此需要在两个模型间进行映射与转换,即ORM(Object Relation Mapping,对象关系映射)。视图是关系数据库中的一种抽象机制,主流关系数据库都增加了一些新的视图特性,若能灵活应用于ORM中可以发挥很大的作用。本文结合某移动公司运营分析支撑系统的开发经验,以SQL Server为例,探讨在ORM中如何利用视图机制和这些新的视图特性。
The present software is object-oriented and developed by using Java, C++ or other computer programming languages with the database remains RDBMS relational database. Due to the inconsistence of the object model and relational model, mapping and conversion between the two models is required, that is Object Relation Mapping (ORM). Because the database is an abstract mechanism and some new characteristics of view have been added to mainstream relational database, which can be very effective if used in ORM. Through analysis on the development of the support system of a mobile operation, this paper takes SQL Server as an example to discuss the ways to use the view mechanism and its new characteristics with systems performance ensured at the same time.
出处
《武汉船舶职业技术学院学报》
2009年第1期39-44,共6页
Journal of Wuhan Institute of Shipbuilding Technology