1、附录 1 外文翻译 数据类型和值域 任何一个曾经编过程的人都习惯了这样一个事实:你不得不告诉计算机信息是一个整数,实数,字符串,布尔值或其它的值。大多数计算机由一个整数加法电路,又有一个实数加法电路,而且,通常字符串相加当然没有任何意义。因为在内存中的比特资料可以被解释成任何一种形式,计算机必须被告诉去做什么。这就是我们熟知的类型。定义资料对象为一个特定的类型对事物内部代表的定义有影响。举例来说,在大多数现代计算机框架内部整数表示为 32 位比特数的形式。在外部,整数表现为从 0 到 9 的数字符串的形式,可能带有负号。当一个资料对象被定义为整数类型时, 所有标准的算术和逻辑运算都要做合适的解
2、释。在定义一个数据类型为整形时,定义它的整理系统的事件也同样如此(可能不是如此明显)。那就是说,要定义相对复杂的操作,如排序,是如何进行的。内部表示和外部表示的转换算法也是必须的。 关键词 所有的属性都描述实体的某一方面。一些属性扮演附加的角色:从所有其它同一类型的实体事例中区分某一特定实例。举个例子,如果我们注意不用一个雇员后标记一个以上的雇员,我们可知一个雇员的雇员号足以固定雇员的其它属性值。能确保每个实体都有唯一值的属性叫做关键词。 有时可能不只一个属性唯一的确定 每个实体。举个例子,如果人事纪录包含社会安全号(而且认为足以控制社会安全号的重复),那幺雇员号和社会安全号都可作为确定雇员的
3、关键词。关键词在计算机系统中管理资料的所有物理有效方法中是最基本的。当有多余一个的可用关键词时,可供选者的为候选关键词。通常,我们选出一个作为主关键词,并决定纪录的位置。其它便于检索的候选关键词被称为副关键词。 数据库模式 用于描述存储数据库中的数据和明确记载数据中的数据包括什么元素,即这些元素通过怎样的访问路径被访问。它也包含了安全设置出完整限制之外,与概念模式由几分相似。但对数据 的描述将更加真实,一些真实反映由数据库中的数据所描述,笔记上,并不能明确记载数据库中的数据是如何被存储及访问路径如何被提供。( 理想的它是不会参考文件、记录、设置或其他同类的东西)它是,因此独立描述及为这结论作为
4、逻辑模式作为参考。 最终用户或最终用户组对数据库中的某部分模式特别感兴趣被称为数据库代替 -模式,理想的,代替 -模式将利用字符明确记载数据存放位置与最适合的位置,数据库代替 -模式有以下几种功能:( 1)它们能利用应用程序,使它们所感兴趣的内容被访问的路径可见。( 2)同样的,它们可以在最终用户的使用报告程序发电机和使用一种查询语言等等被体现。( 3)它们能被用于划分数据单位为按去劝秘密的说明书。例如,代替模式中规定,每类级别上的用户可进行那些操作,并仅仅指定少数用户有修改更新的权利。 物理模式 物理模式是以物理的结构描述数据库,如果,例如传统的编入索引的 -顺序的文件存于数据库中,它将在物
5、理模式中进行说明。它将包含详细的有按可查格式、块因素等等物理的模式,这部分构造作为设计所必须的部分进行处理。它也可使用作为完整的部分,它进行操作的部分在以后进行说明。物理的模式有时成内部模式。 物理的存储结构 数据库中的结构以 被事先在物理结构中定义了存储结构,它包含几个典型组件:盘文件,帮起文件,组存储文件,索引文件及程序操纵等。 支援和恢复系统 支援和恢复系统是指在软件和硬件发生故障时重建数据库系统。 理解应用任务 在建造软件方面经常忽略的步骤之一就是真正理解终端用户的任务计算机自动化准备去支持的任务。 偶尔,这是由于应用本身是专门的;更经常,它是由于倾向于面向数据的设计方法。经常地,这些
6、是在分析中主要的问题: 什么数据应该被获取? 数据怎样被处理? 数据怎样被汇报? 这些问题扩展成一系列子问题,并且包括诸如输入报表,代码,屏幕布局,计算,存储容量,处理循环,报表格式化,分布和维护。这些是所有极其重要的部分。然而一个困难是,他们都单独集中于数据。 人们使用数据,但他们做任务。一个可能的争论是这或许是专业的工作人员,有权利的人员仅仅将数据从输入报表转移到键盘;他们的任务是非常面向数据的。这是今天这些工作的一个清楚地描绘。但这是一个真正要去做的工作的结果,还是计算机应用设计的征兆?使用人类作为输入设备,特别是大容量的,格式一致的(如报表),并在一个有限可变形范围内的数据,是昂 贵和
7、废弃的,更别说失去人性,获取数据的方法。 这或许听起来像哲学,但它实际上以应用设计方式输入。人们使用数据,并且他们不通过一次完成来做任务。他们互相做好几项任务的子集或交集,并且他们并行第一次做完。 设计者允许此观念指导一项应用的分析和创造,而不是集中于很多年独领风骚的面向数据,就是这种努力的本性有了惊人的改变。为什么 Windowsing 环境如此成功?因为他们允许用户在小的任务间迅速切换,使它们都存在而不必关闭并退出一个来开始另一个。 Windowing 环境更近地映象人们真正的思维和工作方式而不是老一套的“一次做一件事”的方法。这一课不应被丢掉,他应被建立。 理解应用任务意味着远远高于识别
8、数据元素,使之标准化,创建屏幕,处理数据,并且汇报。他意味着真正理解用户做什么并且他们的任务是什么,并设计响应这些任务 的应用,不光是获取他们关联的数据。事实上,当面向与数据时,结果设计会不可避免地歪曲用户的任务而不是支持他们。 你怎样设计一个应用与任务而不是数据?最大的障碍是简单理解集中于必要的任务。这允许你从一个新鲜的角度接近事物的分析。 附录 2 外文原文 DATA TYPES AND VALUE SETS Anyone who has ever programmed a computer is accustomed to the fact that you usually have t
9、o tell the computer whether the information stored in a particular location is an integer, a real number, a character string, a Boolean va1ue, or whatever. Most computers have one electronic circuit for adding two integers and another for adding two real numbers, and, of course, addition does not ma
10、ke any sense at all, in general, for character strings. Because the pattern of bits in at storage location can usual1y be interpreted as any of these, the computer must be told what is intended. This specification is known as the type of the data. Identifying a data object as being of a particular t
11、ype has the effect of defining an internal representation for the object. It also specifies which operations may be performed on that object and their effects. For example, the internal representation of an integer in most modem mainframe computers is a string of 32 bits in 2s complement format. The
12、 external representation is a character string in which only the digits 0 to 9 and the minus sign may appear. Suitable interpretations of all the standard arithmetic and logical operations are also implied when a data object is declared to be of type integer.It is also true (but perhaps less obvious
13、) that declaring a data object to be an integer defines a collating system for occurrences of that object. That is, it specifies how the relatively complex operation, sort, should operate. Specific algorithms for converting between interna1 and external representations are also implied. KEYS All att
14、ributes describe some aspect of an entity. Some attributes perform the additional role of distinguishing one particular entity occurrence from all others of the same type. For example, if care is taken not to assign any employee number to more than one person, then knowing an individuals employee nu
15、mber should be sufficient to locate all of the other attribute values for that individual. An attribute that can be guaranteed to have a unique value for each entity is called a key.Sometimes there may be more than one attribute of an entity that uniquely identifies each occurrence. For example, if
16、the personnel records include Social Security Numbers (and if it is felt that the controls on issuing duplicate Social Security Numbers are adequate), then either Employee Number or Social Security Number could be used as the key for identifying employees. Keys are fundamental to virtually all methods of Physically managing data in computer systems. When there is more than one possible key, the alternatives are referred to as candidate keys. Normally, one of these will be select as the primary key and used to determine where