首页 | 资讯动态 | linux基础 | 系统管理 | 网络管理 | 编程开发 | linux数据库 | linux相关 | linux认证 | 下载中心 | 专题
oklinux
 系统管理:中文环境 系统管理 桌面应用 内核技术 Linux基础:安装配置 常用命令 经验技巧 软件应用 Linux数据库:Mysql POSTGRE
 网络管理:网络安全 网络应用 Linux服务器 编程开发:PHP CC++ Python Perl SHELL 嵌入式开发 | PHP基础 PHP技巧 PHP应用 PHP文摘
 首页 linux资讯动态 Linux专题 | 其他Unix Linux解决方案 硬件相关 Linux认证 企业应用 Apache | 相关下载:资料 参考手册 开发工具
 → 当前位置:首页>linux数据库>其他>正文

The busy Java developer's guide to db4o: Introduction and overview

OKLinux www.oklinux.cn 2007-03-28 来源:IBM developerWorks Worldwide 会员收藏 游客收藏

Level: Intermediate

Ted Neward ([email protected]), Principal, Neward & Associates

20 Mar 2007

It has been said that the database wars are over and the relational database won. However, anyone who believes this state of affairs has led to peace and prosperity among programmers hasn't tried using a relational database to back Java™ objects lately. Popular author and lecturer Ted Neward launches an in-depth, multipart series introducing db4o, an object-oriented alternative to today's relational databases.

By the time I came of age as a programmer, it seemed the database wars were pretty much over. Oracle and other relational database vendors had made a convincing argument for the relational model and its standardized query language, SQL. In fact, I can safely say that I've never used any of the relational database's immediate ancestors, such as IMS or the ubiquitous flat file, for long-term storage. Client/server, it seemed, was here to stay.

And then one day, I discovered C++. And with that, like so many others who found this particular language at this particular time, my world view was forever changed. I made the shift from a programming model based on functions and data to one based on objects. Suddenly developers weren't talking anymore about building elegant data structures and "information hiding"; instead we were excited about polymorphism, encapsulation, and inheritance -- a whole new set of buzzwords.

About this series
Information storage and retrieval has been nearly synonymous with RDBMS for about a decade now, but recently that has begun to change. Java developers in particular are frustrated with the so-called object-relational impedance mismatch, and impatient with the solutions that attempt to resolve it. This, along with the emergence of a viable alternative, has led to a renaissance of interest in object persistence and retrieval. This series is a working introduction to db4o, an open source database that leverages today's object-oriented languages, systems, and mindset. See the db4o home page to download db4o now; you'll need it to follow the examples.

Likewise, it suddenly seemed that the relational database was over-the-hill in favor of a new kind of database, the object database. When married with an object-oriented language like C++ (or its upstart cousin, Java programming), the OODBMS would herald a utopia in programming.

Except it didn't quite work out that way. The OODBMS peaked around the late '90s and then slid back into relative obscurity. What had been exciting and glamorous became obscure and proprietary. Round 2 of the database wars was over, and once again the relational database had won. (This even despite most RDBMS vendors embracing objects in one fashion or another.)

The only problem with this scenario is that some of the reasons developers were excited about the OODBMS never died, as evidenced by the emergence of db4o.

Of objects and relations

The object-relational impedance mismatch is a subject best suited to an academic lecture, but it boils down to the fact that an object system takes a different view than a relational system does of how entities interact with each other. On the surface, an object system and a relational system seem well-suited, but a deeper investigation reveals some fundamental differences between them.

For starters, objects have an implicit sense of identity (denoted by the hidden/implicit

共6页: 上一页 1 [2] [3] [4] [5] [6] 下一页
上一篇:Linux and symmetric multiprocessing   下一篇:Bake-Off: 4 Linux Desktops Tackle The Enterprise

收藏于收藏夹】 【评论】 【推荐】 【投稿】 【打印】 【关闭

相关文章
·保证Web数据库安全 认真把好七道关
·sybase 珍藏系列之五
·sybase 珍藏系列之四
·sybase 珍藏系列之三
·sybase 珍藏系列之二
·使用sybase过程中,数据库备份策略
·安装SCO Openserver5.0.5下的Sybase11.0.3
·SYBASE事务
·SYBASE dbcc
·Sybase数据库的碎片整理
发表评论
密码: 匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。)
站内搜索
阅读排行榜
·sybase 珍藏系列之二
·使用sybase过程中,数据库
·SYBASE数据库用户管理基本
·INFORMIX SQL 介紹
·Linux下Informix 2000安装
·sybase在AIX上安装的步骤
·SYBASE事务
·sybase 珍藏系列之四
·Sybase数据库的碎片整理
·安装SCO Openserver5.0.5
最新文章
·Linux系统中的Svnmanager
·[Sybase] 数据库学习2
·[Sybase] 数据库学习
·Linux下的Informix数据库
·数据分割:一个易被忽略的
·保证Web数据库安全 认真把
·sybase 珍藏系列之三
·sybase 珍藏系列之四
·sybase 珍藏系列之五
·sybase 珍藏系列之二
·使用sybase过程中,数据库
·安装SCO Openserver5.0.5
·SYBASE事务
·SYBASE dbcc
·Sybase数据库的碎片整理

设为首页 - 加入收藏 - 版权声明 - 广告服务 - 关于我们 - 联系我们 - 友情连接
Copyright © 2007 All rights reserved OKLinux.Cn 版权所有
合作联系 QQ:18743986 Email:arlan8005#163.com