登陆注册
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.)

同类推荐
  • Z. Marcas

    Z. Marcas

    本书为公版书,为不受著作权法限制的作家、艺术家及其它人士发布的作品,供广大读者阅读交流。
  • 时间机器与隐身人:THE TIME MACHINE & THE INVISIBLE MAN(

    时间机器与隐身人:THE TIME MACHINE & THE INVISIBLE MAN(

    《时间机器》是令威尔斯声誉鹊起的处女作,也是其杰出代表作之一。通过《时间机器》,威尔斯表达了对人类终极处境的关怀,拨动了亿万颗不安的心灵。人类自诞生之日起就感叹生命的短暂,然而威尔斯竟设想出一架能自由穿梭于时空中的机器,而且从理论到实践均构思得天衣无缝,只要人类还为时空的局限所困,《时间机器》的魅力将永不消减。1897年发表的《隐身人》亦是威尔斯流传深远、广受欢迎的作品。《隐身人》将视角转向了科学技术本身,向读者展现了科技无限发展后潜在的负面效应。威尔斯警示人们科学是把双刃剑,既可造福人类,又能招致灭顶之灾,在物欲横流的社会,科学发明一旦落入自私者之手,后果将不堪设想。
  • Identity 身份

    Identity 身份

    《身份》是中国具有重要国际影响的著名诗人吉狄马加的抒情诗歌精选集。吉狄马加是公认的当代中国代表诗人,他的作品既有对大地和母亲深情的歌唱,又有对生命和爱情的美妙歌吟。既有对中国文化包括彝族文化的全面继承,又有对世界诗歌艺术传统的广采博收,这使得他的诗歌呈现出气象万千、大气淋漓,既色彩缤纷,又直刺心灵的独特的艺术魅力。读他的诗歌,可以净化灵魂,可以找到心灵的慰藉。其作品具有感人肺腑,催人泪下艺术力量,在当今诗坛极为罕见。在许多朗诵会上朗诵他的作品,令观众热泪盈眶。
  • 翻开就能用 出国旅游英语

    翻开就能用 出国旅游英语

    本书收录了10个与本单元密切相关的单词。汇集了20个与对话相关的短语,包含上一部分的单词。经典、贴切、鲜活的两段对话。网罗了10到20个使用频率最高的句子,分门别类,增加读者的句式储备量。在英语学习的同时,增加一些与话题相关的小知识。活跃学习气氛。
  • 那些激励我前行的身影(每天读一点英文)

    那些激励我前行的身影(每天读一点英文)

    精选历史名人、商界骄子、演艺明星的演说,让你在诵读名句中,领略成功之道!《每天读一点英文》是一套与美国人同步阅读的中英双语丛书,该丛书由美国英语教师协会推荐
热门推荐
  • 乒出新世界

    乒出新世界

    "乒"出新世界描写了主人公周帆作为寒门学子在大学期间和毕业后在人生这个大舞台的命运沉浮,整个小说以乒乓为故事脉络,随着时代的发展和社会的变迁,引出一连串的跌宕起伏的机缘巧合和爱恨情仇,映衬了周帆努力奋斗的人生和对理想的渴求,最终实现人生的梦想和目标。
  • 九阳御天

    九阳御天

    神掌天罚,魔控轮回,千古大道,神魔为尊。太古之战,一道门户的显化,从此天罚寂静,轮回不显,神魔销声匿迹,亦无人再可成神封魔。李辰轩,一个号称不能修炼的废物,但凭着一股不服输的信念,逆流而上,只为踏破宿命枷锁,争一世己命。冥冥之中,李辰轩开启了逆天体质,从此踏上逆天之路,成就永恒不朽的传说!红颜枯骨伤,永生路寂寥。乱世争己命,天地不可挡。
  • 追妻无门:女boss不好惹

    追妻无门:女boss不好惹

    青涩蜕变,如今她是能独当一面的女boss,爱了冷泽聿七年,也同样花了七年时间去忘记他。以为是陌路,他突然向他表白,扬言要娶她,她只当他是脑子抽风,他的殷勤她也全都无视。他帮她查她父母的死因,赶走身边情敌,解释当初拒绝她的告别,和故意对她冷漠都是无奈之举。突然爆出她父母的死居然和冷家有丝毫联系,还莫名跳出个公爵未婚夫,扬言要与她履行婚约。峰回路转,破镜还能重圆吗? PS:我又开新文了,每逢假期必书荒,新文《有你的世界遇到爱》,喜欢我的文的朋友可以来看看,这是重生类现言,对这个题材感兴趣的一定要收藏起来。
  • 情爆!离婚后

    情爆!离婚后

    朋友是用来坑的兄弟是用来虐的老婆嘛,当然是用来养的!(这是某网游某大神的心声)曾经,一个短期的婚姻,换来她一心的脆弱。不想,一个久违的游戏,却引来一个大神老公曾经以为爱情是虚幻的,网恋是不可靠的。只是当网恋的对象是腹黑大神的时候,那么爱情就是甜蜜的,网恋就是神圣的。而且还能发现如果离婚是注定的那么再婚是命定的最最最最最重要的:情爆!是绝对的。片段精华1、求婚片段游戏中:“嫣非要么不嫁,要嫁只能嫁我。”霸气侧漏,让所有人瞬间沉默。现实中:“言奕奕,该嫁了。”六个字,却让他温润如玉的脸上多了一次光彩,炯炯的目光笃定她无法抗拒自己。2、情敌片段游戏中:“夫人,这是传说中我的情敌吗,你的眼光怎么低了。”无视面前那尊闪闪发亮显示人民币至少五千的装备,无聊的吐槽。无耻的看了他,什么眼光低,整个游戏中能跟你比吗?一件衣服上的石头加起来都价值好几万,有钱也不是这种烧法。现实中:“我是冯羽睿。”他很温润的对着刘健:“我家奕奕劳你这几天的照顾了,好在现在我回来了。”完美的举动,谦和的笑容,让刘健心中泛起一种淡淡的悲哀。言奕奕一旁翻白眼,这条腹黑龙又这么温润,大概又在算计人了,想想,自己好像也是被他的温润给骗过去的。3、求子片段游戏中:“夫人,你看人家,比我们成亲早的都已经儿女成熟(群)了,你什么时候也给为夫生一个啊?”大神说的好自在,根本就没想过另一个电脑面前正喝水的人,差点被呛住。“……”“夫人,我知道你工作忙,放心,以后有了孩子,全部都会由为夫照料,你不用担心。”大神继续说。“我……”“夫人,你为何不答应呢。难道想对为夫始乱终弃,还是另有所爱。”他嘴角含笑,故意打的这么委屈。“咳咳,夫君,你不知道,游戏养个孩子需要五千人民币吗?”“夫人,钱的问题不用担心,为夫别的没有,现在能砸死人的,唯一的武器也就是钱了。”……现实中:“老婆,爷爷奶奶爸爸妈妈岳父岳母都在催了。”他看起来好无辜。“催什么?”看他无辜的样子,她就有种不祥预兆。“催着文我们要第四代啊,老婆。我们赶紧努力吧。”他眨着无辜的眼睛。“呃。”她无语,这当初不要孩子似乎也是他提的,如今怎么就反常态要孩子了。他心中算计,再不要孩子,你又要去学赛车了,那可不成,哪里能让你忽视我呢,生个孩子让你没心思学别的。
  • 魔妃无霜

    魔妃无霜

    新书《邪王要入赘》火热更新中,求收藏求推荐^O^夜无霜:未来的自己穿越回来算计我,怎么办?在线等,不是很急!夜魔妃:穿越回来取代另一个自己总是失败,怎么办?在线等,超急!面对着成谜的身世,神秘的传承,诡异的守将,以及那来自于未来、处处暗算自己的夜魔妃,无霜只想大吼,你快滚出我的世界!本文先紧张,后轻松,有无CP,后面你们说了算……欢迎加入安妮普通书友群,群聊号码:697934386
  • 飞花未雨犹漫漫

    飞花未雨犹漫漫

    【新书上线,错命皇妃~】那一眼,在人间七夕节,画舫之上,我们初见,我是一条蓝色锦鲤,你是天界的上仙,我笑着说道:“仙友以身相许如何?”本来只是一句玩笑话,你却当了真……昆仑山上你我画扇定情,珠玕之树丛生,浮华若现,昆仑景色不复存在,你可还会记得我?仙路漫漫,有你的陪伴,我亦不觉得苦……那一眼,便让我沉沦万年,一点一点走进我的心间……落雨飞花轻入梦,疑是凌波照影来,只是你那如星光的眸中那样的柔情却已不在……
  • 追妻无门:女boss不好惹

    追妻无门:女boss不好惹

    青涩蜕变,如今她是能独当一面的女boss,爱了冷泽聿七年,也同样花了七年时间去忘记他。以为是陌路,他突然向他表白,扬言要娶她,她只当他是脑子抽风,他的殷勤她也全都无视。他帮她查她父母的死因,赶走身边情敌,解释当初拒绝她的告别,和故意对她冷漠都是无奈之举。突然爆出她父母的死居然和冷家有丝毫联系,还莫名跳出个公爵未婚夫,扬言要与她履行婚约。峰回路转,破镜还能重圆吗? PS:我又开新文了,每逢假期必书荒,新文《有你的世界遇到爱》,喜欢我的文的朋友可以来看看,这是重生类现言,对这个题材感兴趣的一定要收藏起来。
  • 修仙请注意

    修仙请注意

    破妄说,修仙请注意几点,首先要多喝热水,其次是多吃水果和蔬菜,还要多运动……注意,注意,注意你个鬼啊!你这个小姑娘家家坏的很!仙界太危险,我要回天际!PS:轻松搞笑修仙生活,如有雷同……雷同?不存在的。
  • 追妻无门:女boss不好惹

    追妻无门:女boss不好惹

    青涩蜕变,如今她是能独当一面的女boss,爱了冷泽聿七年,也同样花了七年时间去忘记他。以为是陌路,他突然向他表白,扬言要娶她,她只当他是脑子抽风,他的殷勤她也全都无视。他帮她查她父母的死因,赶走身边情敌,解释当初拒绝她的告别,和故意对她冷漠都是无奈之举。突然爆出她父母的死居然和冷家有丝毫联系,还莫名跳出个公爵未婚夫,扬言要与她履行婚约。峰回路转,破镜还能重圆吗? PS:我又开新文了,每逢假期必书荒,新文《有你的世界遇到爱》,喜欢我的文的朋友可以来看看,这是重生类现言,对这个题材感兴趣的一定要收藏起来。
  • 上清辖落七元符

    上清辖落七元符

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