面向对象数据库Vs对象关系数据库 [英] Object Oriented Database Vs object Relational Database

查看:190
本文介绍了面向对象数据库Vs对象关系数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道面向对象的数据建模与对象关系数据建模有何不同?



是否像面向对象和关系数据建模的优点一样,可以实现对象关系数据建模?



欢呼

解决方案

对象关系数据建模支持一些面向对象的概念,同时仍然支持一些关系概念: p>


  • 继承 - 一个表可以与另一个表具有 IS-A 关系。同样,自定义数据类型支持继承。

  • 在类和对象(类的实例)之间区分不同于简单的表和行之间的区别。

  • 自定义或复杂的数据类型

  • 关系查询语言

  • 参照完整性。



    • 面向对象的数据建模只是对象的持久性:




      • 更复杂的支持对象。

      • 没有查询语言 - 您只需检索像一些巨型键/值存储的单个对象。

      • 没有关系引用完整性 - 尽管可能有一个对象包含对另一个对象的引用。


      I wonder how Object Oriented data modeling is different from Object Relational data modeling?

      Is it something like the pluses of both object oriented and relational data modeling were clubbed to achieve object relational data modeling?

      cheers

      解决方案

      Object-Relational data modeling supports some object-oriented concepts, while still supporting some relational concepts:

      • Inheritance -- one table can have an IS-A relationship with another table. Likewise custom data types support inheritance.
      • Distinction between a class and an object (instance of a class) that goes beyond simply the distinction between a table and a row.
      • Custom or complex data types.
      • Relational query language.
      • Referential integrity.

      Object-Oriented data modeling is just persistence for objects:

      • Greater support for complex objects.
      • No query language -- you just retrieve individual objects like some giant key/value store.
      • No relational referential integrity -- though you may have one object contain a reference to another object.

      这篇关于面向对象数据库Vs对象关系数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆