登陆注册
3765300000026

第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 simple 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 simplest 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.)

同类推荐
  • 带本英语书游世界

    带本英语书游世界

    本书章节分为 Chapter 1 万事俱备 Chapter 2 快乐出发 Chapter 3 平安到达 Chapter 4 享受美食 Chapter 5 遨游世界 Chapter 6 疯狂购物每个章节详细描写了相关旅游出行的细节,词汇补给、旅游应急句、实用情景对话帮助读者轻松出行。
  • 黑暗的心(双语译林)

    黑暗的心(双语译林)

    《黑暗的心》是英国作家约瑟夫·康拉德德代表作,围绕海员马洛讲述的他早年在非洲刚果河流域行船时的一段经历展开故事。讲述的核心是一个叫库尔茨的白人殖民者的故事,一个矢志将“文明进步”带入野蛮的非洲的理想主义者如何堕落成贪婪的殖民者的故事。在接近库尔茨的过程中,作者借马洛之口向我们描述了一副令人感到压抑的浓墨重彩的非洲大陆腹地的图景。
  • 美丽英文:那些永恒的人物和故事(激励卷)(套装共6册)

    美丽英文:那些永恒的人物和故事(激励卷)(套装共6册)

    《美丽英文:那些永恒的人物和故事(激励卷)》(套装共6册)包括《美丽英文:一个人,也能有好时光》《美丽英文:无法忘却的电影对白》《美丽英文:通话若有张不老的脸》《美丽英文:那些年,我们一起毕业》《美丽英文:那些震撼世界的声音》《美丽英文:那些改变未来的身影》。本套书精选文学大师、思想圣哲、创业先锋、科技精英、艺术天才等各个领域杰出人物的故事;收录题材广泛的演讲,涵盖政治领袖、商界大亨、科技先锋、艺术大师和娱乐名人等;包括一篇篇无法忘却的童话故事,在我们长大成人的今天仍然萦绕耳边,诉说着那最美丽的言语和最动人的哲思;收集了电影长河中极具代表性的经典对白,供读者朋友们品味精彩电影中的细腻和感动。
  • 我的第一本英语口语书

    我的第一本英语口语书

    本书从大家在学习英语口语中遇到的根本问题着手,着重引导大家如何使用正确的方法来学习英语口语,告诉大家口语到底应该学什么,帮大家把基础打好,以便于后续的自学。不要怯:日常生活中老外说话也没有那么复杂,绝大多数情况下都是使用简单的词汇、基础的表达句型,并非像“谢耳朵”那样使用一些复杂的句型和生僻的词汇。不要懒:英语口语是综合性最强的,是要经过大量的积累配合大量的练习才能提高,做一百套英语练习题,不如开口来一段实地交流。英语口语,会说才是硬道理!
  • 老实人(双语译林)

    老实人(双语译林)

    《老实人》是伏尔泰的哲理小说代表作。主人公“老实人”出生在德国一位男爵的府邸中,是男爵妹妹的私生子。他一直在封闭的环境成长,信奉家庭教师邦葛罗斯所宣扬的乐观主义,觉得一切都很好,深信男爵的家就是人间天堂。可是,男爵将他逐出了家门,只因为他爱上了表妹居内贡小姐。从此,他踏上了独自探索世界的旅程。漫长的旅途中,他几乎没有经历或见证一件积极的事情,形形色色的天灾人祸与社会弊病,让“老实人”去经历、见证、思考、成长、成熟,慢慢摒弃盲目乐观主义,变得中庸实际,并开始相信人生应该通过劳动来获得幸福。
热门推荐
  • 战国秦汉治国思想新考

    战国秦汉治国思想新考

    杨生民所著的《战国秦汉治国思想新考》是系统研究战国秦汉治国思想的专著,对战国、秦、两汉用学派的思想文化治国的成败得失进行了考察。从历史上看,西周用礼制治国。春秋末年,学派思想、学派文化产生,见于记载的有道家、儒家、兵家三家。战国时,有的国家开始用学派思想指导治国,如魏国、秦国的“以法治国”。西汉初年,统治阶级以道家黄老无为思想治国,但其中是包括了法家思想的。其后,汉朝杂用法、道、儒思想指导治国。除法、道、儒三家外,阴阳家思想、董仲舒天人感应说和谶纬思想也对战国秦汉的社会历史起过这样或那样的作用,《战国秦汉治国思想新考》对这方面的影响也进行了探讨,并对董仲舒的评价提出新的见解。
  • 高质量生活的好习惯

    高质量生活的好习惯

    《高质量生活的好习惯》从做人、做事、职场、生活、健康五个方面。列举了现代人在追求高质量生活的过程中,应该培养的好习惯和应该克服的坏习惯,结合丰富的事例与轻松的论述,让你在享受阅读的同时,获取战胜自己的力量!将优秀的行为固定成一种规律,这就是一种好习惯;将不良的行为渗透到细节中,这就是一种坏习惯。好习惯使人变得优秀,坏习惯使人变得平庸。
  • 江山天诀录

    江山天诀录

    大修中……※※※正文内带章节名的为新内容※※※得弑月者执掌武林,得天诀者可图天下?
  • 学蔀通辨

    学蔀通辨

    本书为公版书,为不受著作权法限制的作家、艺术家及其它人士发布的作品,供广大读者阅读交流。汇聚授权电子版权。
  • 女帝奇英传

    女帝奇英传

    本书是梁羽生的代表作之一,背景是唐代女帝武则天的瑰奇浪漫事迹,但情节却环绕在两对江湖儿女永难消泯的恩怨情仇之上。出身李唐王室的武林新秀李逸,为了反抗武则天的作为,不惜间关山万里,远赴漠北,在九死一生之中,结交天下奇才异能之士,图谋兴复唐室。但李逸的毕生恋人上官婉儿,却因与武则天志趣相投,而不得不与李逸站在生死对立的处境;同时,武则天家族中的第一高手,美艳绝伦的武玄霜,则又不由自主地深恋着流亡天涯的李逸。李逸的唯一知交长孙泰,也陷身在同样的情仇纠葛之中。本书连载时书名为《唐宫恩怨录》,早期在台湾出版时改名为《大唐碧血录》。
  • 封魔女主

    封魔女主

    魔族少主转化成婴儿,抛弃一切投身凡间,只为能寻找可以战胜仙界的办法。仙界盛产战神的墨家长子也以婴孩形态被送至人间帝王家做了养子。二位没有记忆法力的的仙界未来扛把子,以及魔族之主,会在人间以什么样的身份见面呢?又会因为世间纷扰造就如何一段佳话?又会在恢复记忆以后如何面对彼此,如何面对两族之争?又会以什么样的方式结束这仙魔大战呢?快来围观吧,我带大家一起参与他们的世界。
  • 站在对立面的你和我

    站在对立面的你和我

    她,是绝世冷艳女总裁。他,是狠厉的商战老大。他与她相遇,是争锋,也是妥协。一纸协议禁锢了她,却慢慢融化了她冰冷的心...
  • 罗特小说集4:无尽的逃亡

    罗特小说集4:无尽的逃亡

    《无尽的逃亡》是罗特早期的代表作之一。主人公佟达是奥地利军队中尉,在世界大战中被俄国人俘虏,被波兰人救出后在西伯利亚偏远农庄待到战争结束。他在试图取道乌克兰回到维也纳的途中,因受伤被救而成为苏联红军的一员。佟达经历了苏维埃建立之初的战争与和平,在与娜塔莎和阿尔雅的爱情结束之后,重新返回维也纳,寻找未婚妻伊蕾妮。此时欧洲的一切已与往日不同,他再也无法用从前的目光和态度来融入旧日生活。小说展现了欧洲年轻一代在战争之后的迷茫与失落,在时代大变革的背景下,冷静深刻地书写了个体的彷徨与思索。《草莓》属于罗特同时期的作品,以罗特式的精准笔墨,描述了欧洲东部一个小城的众生相,记录了现代工商业来临之前的旧世界的最后面貌。
  • Apology

    Apology

    本书为公版书,为不受著作权法限制的作家、艺术家及其它人士发布的作品,供广大读者阅读交流。汇聚授权电子版权。
  • 平安扣(电视剧《那座城这家人》原著)

    平安扣(电视剧《那座城这家人》原著)

    已改编为电视剧《那座城这家人》,12月2日开播。本书以经历大地震重创的城市为背景,讲述了两个家庭、三代人悲欢离合的故事,全景展现了普通百姓的生存情状,写出各色人物30多年间发生的变化。娓娓叙述中,勾勒出一幅具有浓郁地方特色的城市长卷。作者恪守现实主义创作方法,作品格调积极向上,具有很强的感染力和可读性。