登陆注册
27082000000026

第26章 Database System(5)

Object-oriented software development is a contemporary approach to the design of reliable and robust software. The complexity of the implementation of software system is a combination of the complexity of the representations of information and the complexity of the algorithms that manipulate the representations. Data structure is the study of methods of representing objects, the safe, reliable encapsulation of structure, the development of algorithms that use these representations, and the measurement of both the time and space complexity of the resulting systems. The object-oriented approach emphasizes the role of objects, along with their attributes and operates, that form the nucleus of the solution.

From the point of view of deciding which data structure should represent that attributes of objects in a specific class, the emphasis that the object -oriented approach places on abstraction is very important to the software development process. Abstraction means hiding unnecessary details. Procedural abstraction, or algorithmic abstraction, is the hiding of algorithmic details, which allows the algorithm to be seen or described, at various levels of detail. Building subprograms so that the names of the subprograms describe what the subprograms do and the code inside subprograms shows how the processes are accomplished is an illustration of abstraction in action.

Similarly, data abstraction is the hiding of representational details. An obvious example of this is the building of data types by combining together other data types, each of which describes a piece, or attribute, of a more complex object type. An object-oriented approach to data structures brings together both data abstraction and procedural abstraction through the packaging of the representations of classes of objects.

Once an appropriate abstraction is selected, there may be several choices for representing the data structure. In many cases there is at least one static representation and at least one dynamic representation. The typical tradeoff between static and dynamic representations is between a bounded or unbounded representation versus the added storage and time requirements associated with some unbounded representations.

After an abstraction and representation are chosen, there are competing methods to encapsulate data structures. The choice of an encapsulation is another tradeoff, between how the structure is made available to the user and how the user's instantiating objects may be manipulated by the package. The encapsulations have an effect on the integrity of the representation, and time and space requirements associated with the encapsulation. Once specified, one or more competing methods of representation may be carried out, and the structure, its representations and its encapsulation may be evaluated relative to the problem being solved. The time and space requirements of each method must be measured against system requirements and constraints.

Object-Oriented programming differs from procedural programming because it uses objects as data structure. The structured data and its related operations could be encapsulated in a single object which may be reused and easily upgraded, augmented, replaced. So it directly reduces the cost of maintenance and the timing and extendibility of new system.

Most object oriented systems are hybrid systems; they reduce the messaging overhead by using traditional programming at the lowest levels and object-oriented programming for the higher levels. Hybrid systems can approach the machine efficiency achieved by traditional programs.

Objects can be viewed as reusable components, and once the programmer has developed a library of these components, he can minimize the amount of new coding required. One user envisions a commercial library of objects which could be purchased by programmers and reused for various applications. But creating a library is no ****** task because the integrity of the original software design is critical. Reusability can be a mixed blessing for users, too, as a programmer has to be able to find the object he needs. But if productivity is your aim, reusability is worth the risks.

【New Words】

oriented

导向的

robust

精力充沛的

contemporary

当代的,同时代的

representation

表现,陈述,扮演

algorithm

运算法则

encapsulation

包装,封装

subprogram

子程序,辅助程序

hybrid

混合的,混血儿

4.3 Database Management Systems and Management Information Systems

You know that a database is a collection of logically related data elements that may be structured in various ways to meet the multiple processing and retrieval needs of organizations and individuals. There's nothing new about databases early ones were chiseled in stone, penned on scrolls, and written on index cards. But now databases are commonly recorded on magnetically media, and computer programs are required to perform the necessary storage and retrieval operations.

You'll see in the following pages that complex data relationships and linkages may be found in all but the ******st databases. The system software package that handles the difficult tasks associated with creating, accessing, and maintaining database records is called a database management system (DBMS). The programs in a DBMS package establish an interface between the database itself and the users of the database. (These users may be applications programmers, managers and others with information needs, and various OS programs.)

同类推荐
  • 澳大利亚学生文学读本(第5册)

    澳大利亚学生文学读本(第5册)

    从最简单入门的英语句式、拼写与发音开始,并且附有大量插图,通过趣味而有教育意义的故事,引发孩子们学习语言的兴趣;并向规范、美丽的文学作品过渡,让孩子们掌握语言的艺术,感受本国的人文历史。是中国学生学习英语、全面了解西方社会的很好途径。
  • 日常286词玩转英语口语

    日常286词玩转英语口语

    作者在本书中收录了英美人日常生活交流中使用最高频的数近300个英语单词,再由单词引申到常用短语、俚语,进而由每个短语,俚语引出句子,然后是实用场景对话范例。这样把我们记忆中的两三个单词系统有效地转换成句子和情景对话,从而达到与老外交流的目的。学一次就要学透彻! 本书的中文引导句表现了每个词要表达的基本意思,只要从引导词出发,就能轻易地延伸出具体的表达方式,从而进行交流对话。完成单词、句子和对话的三重记忆。作者希望本书可以提升读者英语会话沟通技巧,在各位开口说英语、与人交流的时候,能联想到本书中的场景单词直接索引, 让您的英语口语表达跟英美人一样的地道。
  • 美国名家短篇小说赏析(中级)

    美国名家短篇小说赏析(中级)

    本书精选了十二位美国文学巨匠的12篇美国短篇小说的精华之作,每篇文章前有简短的引言,文中还附有编者的评注和分析及作者简介。
  • 用耳朵听最优美的散文

    用耳朵听最优美的散文

    这本《用耳朵听最优美的散文》以“用耳听”为学习理念,精选了130多篇精致散文,均用词精准简洁,语句流畅优美,将引领学习者进入趣、情、爱与理的博大世界,使其更加充满信心地去追求梦想。每篇文章并配有导读语、词汇注释、长难句解析、背诵指数及外教精心录制的录音。本书将为学习者展现一个美丽新世界并使其英语学习更上层楼。
  • 把沉睡的时光摇醒

    把沉睡的时光摇醒

    《把沉睡的时光摇醒》精选了梭罗、海明威、罗斯金、莫里斯、里尔克、笛福、兰姆、马克·吐温、托尔斯泰、毛姆、戴克、怀特、艾默生等50多位全球公认的文学巨匠,近百篇最美的散文,100多幅精美插画。全书精致雅美,传承名家之灵气,有如万般激流在心中翻涌,又似气吞山河的力量,抑或万物如谜般沉默静美,给人无限的想象和心灵滋养。
热门推荐
  • 秦始皇成长日记

    秦始皇成长日记

    【新坑求收藏推荐~】一个小伙子前一刻高兴后一刻就躺尸了。当睁眼的时候被人认为是僵尸,还发现自己身高变矮了。这个僵尸还朦朦胧胧的时候被一个道士用一百收养带回家。带回家发现一个一脸受的鬼惊恐喊着父皇。这这这就算了!为什么本尸还是萝莉妹子啊!
  • 女人优雅一生的社交礼仪课

    女人优雅一生的社交礼仪课

    让你左右逢源的交际课堂,助你如鱼得水的社交礼仪。提升社交能力的高效法则,展示女性魅力的蜕变宝典。给你“举手”投足的优雅,帮你塑造良好的行业举止;助你的职场拼搏如鱼得水,为你的处世交往增添魅力。
  • 重生之鬼眼千金

    重生之鬼眼千金

    前世,她死在深爱多年的男朋友和父亲干女儿的婚礼上,这样的仇恨让她得以重生归来。拥有着前世记忆和异能的她,会一点点的找回属于自己的东西。不是不报时候未到……--情节虚构,请勿模仿
  • 医冠情兽:腹黑老公太心急

    医冠情兽:腹黑老公太心急

    贱妹勾搭、渣男出轨、家产被夺怎么办?生活告诉齐心雨该扇之、抽之、抢之!男神出现、频频示爱、跪地求婚怎么办?闺密告诉齐心雨该点头同意扑倒!
  • 闲花落地听无声

    闲花落地听无声

    一次意外,让她阴差阳错地回到了三千多年前……
  • 承蒙时光错爱

    承蒙时光错爱

    静女其姝,俟我于城隅。赵静姝以为这辈子会和方成渝结婚生子,平平淡淡过完这一生,而这一切却都是一段时光的错爱
  • 值得深思的故事精选

    值得深思的故事精选

    本书编写了数多的精短故事,每个故事所传达的思想都值得回味,是亲情、友情、爱情、事业、机遇……精短故事足见内涵非凡,读故事,让你深感人心万种,唯你天真,读了这些故事,相信你不会碌碌无为。
  • 人类圣约

    人类圣约

    旧人类终于迈入新人类的殿堂。所谓新人类,就是体内移植纳米科技,改造人体基因,实体化的技术。一个没有姓名,只有编号的少年终于成为了自由人。他被上级派遣从外面执行任务,去了神秘学院调取数据,然而却接触了一个又一个的阴谋,没想到阴谋的背后竟然和自己有关...
  • 甲乙传

    甲乙传

    昨夜轩窗有鬼来,欢歌醉酒舞徘徊。游魂此刻无归处,浪子当时有憩台。地府居然如蜃市,人间未必是尘埃。殊途两界随风失,不过清秋一梦哉!
  • 都市孽妖说

    都市孽妖说

    讲述严辰从龙虎山下来,一起搞怪的事宜,让我们一起来见证吧!此书绝无抄袭!因为都是本人书写!