203.B基于JSP的酒店客房管理系统 外文文献翻译_第1页
203.B基于JSP的酒店客房管理系统 外文文献翻译_第2页
203.B基于JSP的酒店客房管理系统 外文文献翻译_第3页
203.B基于JSP的酒店客房管理系统 外文文献翻译_第4页
203.B基于JSP的酒店客房管理系统 外文文献翻译_第5页
已阅读5页,还剩7页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、学校代码: xxx学 号:xxx (本科毕业外文文献翻译学生姓名:xxx 学 院:信息工程学院系 别:计算机系专 业:软件工程班 级:软件06指导教师:xxx 讲师 二一年六月xxx工业大学本科毕业设计外文文献翻译to connect sql server databasefirst we introduce the basic knowledge of the database, be regarded as the warm-up exercise that study database weave distance front!1.warm-up exerciseneeding firs

2、t avowal is relation database that database knowledge that we here introduce all point. the so-called relation database is to mean data as that the form gather, passing to establish simple form an a kind of database for of relation todefining construction.i ignore the watch at how saving way in phys

3、ics in the document in database is, it can see to make an a line for with row, with electronics form is similar with the row. in relation database, the line were called the record, but the row then is called word segment. this form inside each an all in formations for is a record, it including parti

4、cular customer, but each record then included the same type with the word segment of the quantity: customers number, name etc.form is logic set that a kind of related information that press a line of arranging with row, similar in single form in work.each row of the word a database form inside calls

5、 a word segment. watch is from every kind of word a definition of its containment of, each word a data for describing its implying. while creating to set up a database, the beard assign for each word segment a the piece belongs to the sex with the other according to the type, biggest length. the wor

6、d segment can include every kind of word sign, arithmetic figure even sketch.an information of relevant customer deposits in the line of the form, is called record. by any large, arbitrarily two records for database form to create set up cant be same.key be a certain word segment( or several words s

7、egment) of the form inside, it() for fast inspect but drive index. the key can be unique, and also can then the right and wrong is unique, being decided by it() whether admission repetition. unique key can specify for main key, using each one that come to unique marking form. the norm turns the data

8、base design of mission be method that the data of buildup, but the data of buildup, should can dissolve otiose repetition, and for have thenecessary information offering to check to seek the path quickly. for attaining this kind of target but separate information to the process gone to in every kind

9、 of independent form, be called the norm turn.it is complicated process to use many appointed rules to proceed the norm with the type of the different class that norm turn. that process studies and discuss already beyond the reach of textual scope. but, the norm of the simple database in majority tu

10、rn and can use the simple experience in underneath rule completes: include the form of the information of repetition must be divided into independent a few forms dissolve repetition.if we have chosen to learn 12 curricular 1000 students, the each curricular elucidation will show with the teacher 100

11、 many- to choose that curricular and each student repeat once. to avoid this kind of low efficiency, should to turn the dichotomous and independent form in form to the norm,an is used to mean the student, the another uses mean the course.now the form was turned by the norm, so, to changes the partic

12、ular and curricular course describe or data, as long as change a record all right.is a basic knowledge concerning database above, this is what study database plait distance must. although the database technique is used as a course, its depth is not this space and can describe with the wide degree of

13、, be used as the primer with simple database plait the distance should be all right already.like, underneath we can start practicing. we usually meet the database system is to registers the system, ignoring you are in the unit, or attend what buildup, the register is to cans not help of, and it of t

14、he construction is more simple, we take a register system as an example. the analysis is once a data for involving.2. understanding the elementsfor the register, want the on the trail of information include:name 、sex、native place、age、date of birth、unit、address、postal service codes、telephone、fax.cert

15、ainly, can create to set up a form in brief, make above each piece according to item to should a word segment.need to point the form the main key in parties now, in order to unique marking each a record, increase register number conduct and actions unique key respectively in register form, guarantee

16、 a two records like this all different.to the database after making an above analysis, we can start establishing the database.3.set up the firm in camphere we study to establish the database how, needing to make sure the type that to establish the database first. pass in visual basic the data interv

17、iew control piece or data interview object ( dao) can visit the following database:1)the database of jet, namely microsoft access2)the database of isam, such as: dbase, etc. of foxpro3)the database of odbc, every follow the standard of odbc customer/ server database. such as: microsoft sql server, o

18、racleby any large, if develop the personal small scaled database system, use access database comparison accommodation, to develop the big and medium-sized database system uses the database of odbc fester. but dbase with the database of foxpro because of already dated, unless special circumstance, do

19、 not use otherwise. in our example, chose to use the database of access certainly. establish the database of access contain two kinds of methods: while establishing the database in microsoft access. click new set up button can establish the new form. here we main introduction the second method: the

20、usage can see to turn the data management machine, do not need to weave the distance and then can create to set up the database. can see to turn the data management machine is the applied procedure of a great use, it is a vb business enterprise version is supplementary with the profession version, i

21、n the catalogue. devastation vb samples the visdata is next, its interface is as follows the diagram.click the menu document item is next new set up son item microsoft access son item of edition 7.0 mdb item. input the new setting up the name of the database in flick window way open register, appear

22、 the underneath show the window way:want the born and new form, the single shot in right key database window way flicks the menu open, then the choice new form ordinaries, establishing in watch construction dialog box appeared later on a word for wanting segment. the every time faces to join in the

23、form new word segment, single shot increment word segment button, will appear of increment word segment dialog box.increment word a type for options in the dialog box, according to word segment. in our the register database that establish, the type of the each word segment.want to notice of is, beca

24、use the word segment registers the number be used unique marking record of, therefore, it cant be inputted by customer. so while defining the words segment need to be defined for long data type, the automatic born word segment item is valid, and picks out this item. be the customer like this to inpu

25、t to record with other the different value every input a new record, system would on the words segment automatically.in access database, the key word realizes with the index of, conduct and actions plait distance personnel at gather to weave the distance to the record of the form type, needs to adju

26、st to use index. while searching, the technique of rushmore uses the index information the excellent turning the search automatically. after completing the form definition, click increment index button, flick such aspen figure 5 show the window way.in window way the right side contain three optioned

27、, its meaning, such as table,12.increase the index dialog box options.after completing such as figure 6.certainly, the academic association database establishes too not a dynasty the business of the one night, the reader no harm much practices once.visit databases design and the development of the a

28、pplication procedures of ms visual basics of the databases of the sql server. when design a system, the customer still needs to comprehend to use to come to visit the plait distance of ask the data of sql server to connect. the origin was detailed to elaborate that the usage open type database conju

29、nction (the open database connectivity, odbc) adjusts to connect the objects to connect with the class, still having the data interviews object (the data access objects, the dao) and the long-range data objects. design and weave to write large and complicated and applied procedures database design f

30、or the software developer is a challenge, need to choose to weave the distance language and tools, do an accommodation for the sql server, choose the calculate way and the data structures, still need to design the sketch customer interface and the application procedures to connect. the decision with

31、in the most important software design is applied fixed position of the procedure. in other words, design must specify the system of which parts are data, business rule, and the data entrance procedure and used for circulating the code of other part. the ms visual basic supports the plait distance th

32、at some databases manage the systems connect, especially sql server. adjust to connect to include the odbc and db-libraries to connect the, object to connect to include the data interview object (dao), long range data object (the rdo), the ole db and the activex data objects (ado) with the class, th

33、e sql that returns the capable sql server to manage the mission distributes to manage the object (the sql distributed management objects, sql-dmo) to connect. connect the oculars right choice can improve the whole function of system and the development speed biggest. design the large data warehouse

34、system needs to choose the applied model properly. traditional customer/ services model depends on to join in the center layer but get the improvement to become three layer models. these three layers divide the line system as three parts: each layer is responsible for providing the service:(1) data

35、service( the data service) contain the maintenance data and the operation date such as the increment, modification, deletion and backups. these services maintenance data relation and contact, support backup and instauration operation. usually the data service is managed the system usage by the datab

36、ase.(2) business service( the business service) is handled the logic by the business rule and data to constitute, such as the data legitimacy rule, the business processing support and the record backup logics. the main purpose of these services provides the data maintenance toward the application pr

37、ocedure logic.(3) expression service( the presentation service)( or the customer service) support customer interface, control the customer data to input to express with data.(output) notice in customer/ services technical term, sometimes express the service definition as customers machine (or head),

38、 the data service definition for server (or after carry), but the business service is in the center the layer (the middle layer). but important comprehend any two layers .the data service business service expresses the logic support gui that the service maintenance database business rule and the pro

39、cessing data need, data importation and manifestation the correspondences can think to carry on between customers machine and servers. for example, in the center the layer can think is a head.server the physics realization of the system can carry on through many different paths. the underneath wills

40、 discuss three layer logic models three kinds of to carry out the method:1.fat customer machine realizationmany layer (the multi tier) realizations of fat customer the machine realization three layer models of a kind of carry out the options is in the customers on board movement business and express

41、ion services. this probably writes the most common path in the visual basic application procedure for the sql server. this kind of carries out the physics up only two layers:the server provides the data service only, this kind of method contain 2:00 shortage. first, was the applied procedure to comp

42、ute the on board increment at the customer, customers calculators need to be stronger, this will increase the system expense, because the system usually takes several customers machines. when the system takes to have the number with thousand million of customers machine, this kind of method will bec

43、ome too expensive. another 1:00 shortage is a possible increment maintenance expenses. move to the change of legitimacy logic and the business rule of the system and will cause upgrade customers machine procedure each time. if the system contain customers machine of the equal quantity, this is a pro

44、blem. the biggest advantage of the machine realization in fat customer is to reduce the network discharge, if the legitimacy and the business rules need not be decide by the database. under this kind of circumstance, only pass the data of the legitimacy logic and can spread toward server. be the exa

45、mple of the importation data legitimacy, suppose the reader to have a small form (for example national form of name) to put in customers machine. if the data entrance mold piece checks the native watch but is not a more national name in main database, then will reduce the network discharge obviously

46、. another an important use is in the development process of the system. if the head developer was limited to the interview carry behind, for example, cant pass the data in the database to verify to input the legitimacy, so, this kind of method can make it right processing data.2. thin customer machi

47、ne realizationin thin customer the machine realization, business the service locates the server, the business logic usually expresses for saving process.the server, the saving process usages t-the sql plait write. this kind of realization is like fat customers machine to carry out the similar physic

48、s up only two layers.the advantage of this kind of method is to reduce the system expense, because thin customers machine needs the less system resources, this have very important many systems of customers machines to take. and, support the expenses to also compare the fat customer the machine syste

49、m is a little less, because the code carries the concentrated control in the server.if the business rule is depend on in the data of the database, thin customer the machine realization reduces the network discharge. the main shortage of this kind of method is a saving process to lack the vivid. the

50、visual basic provide stronger than the t-sql the plait distance ability that have to have another. notice three the thin customer of the layer model the machine physics realization sometimes is called the fat server (the fat server) model to confuse with thin customers machine/ server calculation mo

51、del by avoid, the latter points a kind of thin customer the machine hardware equipments and techniques are for example the citric.3. many layer realizationmost in brief many layer realizations are three layer realizations, many possible three a kinds of the layer model physics realizations. in this

52、kind of realization, link the sql server usage data service business to serve the thin customer of the machine expression service data service business service of fat customer from the visual basic the machine expression service data business the service be an alone the progress circulate. that prog

53、ress can install for serve in the data same set server of the place or at another one server of the dissimilarity. the key characteristics of this kind of realization is the data service, business to serve the different from expression serve to can do for separation of progress movement in calculato

54、r. three layer realizations.连接sql server数据库我们先介绍一下数据库的基本知识,算是学习数据库编程前的热身运动吧!1. 热身运动首先需要声明是,我们这里介绍的数据库知识都是指的关系数据库。所谓关系数据库就是将数据表示为表的集合,通过建立简单表之间的关系来定义结构的一种数据库。不管表在数据库文件中的物理存储方式如何,它都可以看作一组行和列,与电子表格的行和列类似。在关系数据库中,行被称为记录,而列则被称为字段。此表中每一行是一个记录,它包含了特定客户的所有信息,而每个记录则包含了相同类型和数量的字段:客户号、姓名等等。 表 是一种按行与列排列的相关信息的逻辑

55、组,类似于工作单表。 字段 数据库表中的每一列称作一个字段。表是由其包含的各种字段定义的,每个字段描述了它所含有的数据。创建一个数据库时,须为每个字段分配一个数据类型、最大长度和其它属性。字段可包含各种字符、数字甚至图形。 记录 各个客户有关的信息存放在表的行,被称为记录。一般来说,数据库表创建时任意两个记录都不能相同。 键 键就是表中的某个字段(或多个字段),它(们)为快速检索而被索引。键可以是唯一的,也可以是非唯一的,取决于它(们)是否允许重复。唯一键可以指定为主键,用来唯一标识表的每行。例如,在前面的例子中,客户标识号 (客户号) 是表的主键,因为客户号唯一地标识了一个客户。关系 数据库

56、可以由多个表组成,表与表之间可以以不同的方式相互关联。规范化数据库设计者的任务就是组织数据,而组织数据的方法,应能消除不必要的重复,并为所有必要信息提供快速查找路径。为了达到这种目标而把信息分离到各种独立的表中去的过程,叫做规范化。规范化是用许多指定的规则和不同级别的范式来进行规范的复杂过程。该过程的研讨已超出了本文的范围。但是,大多数简单数据库的规范化可以用下面简单的经验规则来完成:包含重复信息的表必须分成独立的几个表来消除重复。如果有选学了十二门课程的 1000 名学生,每门课程的说明和教师将显示100多次 对选了那门课程的每个学生都要重复一次。要避免这种低效率,应当把表分成两个独立的表来

57、规范化,一个用来表示学生,另一个用来表示课程。现在表被规范化了,所以,要改变特定课程的课程描述或“数据”,只要改变一个记录就可以了。以上是关于数据库的基本知识,这是学习数据库编程所必须的。虽然数据库技术作为一门学科,其深度和广度不是这点篇幅能描述的,但作为入门和简单数据库编程应该是足够了。好了,下面我们就可以开始练练了。我们经常遇到数据库系统是登记系统,不管你是在单位,或是参加什么组织,登记是免不了的,而且它的结构比较简单,我们就以一个登记系统为例吧。分析一下该系统所涉及到的数据。2.磨刀不误砍柴功对于登记,要跟踪的信息包括:姓名、性别、籍贯、年龄、出生年月、单位、地址、邮政编码、电话、传真当

58、然,可以简单地创建一个表,使得上述的每个数据项对应一个字段。现在需要给表指派主键,用以唯一标识每一条记录,在登记表中分别添加登记号作为唯一键,这样就保证数据库中的任两条记录都不同了。对数据库做出以上分析后,我们就可以开始建立数据库了。3.建营扎寨在这里我们学习怎样建立数据库,首先需要确定要建立数据库的类型。在visual basic中通过数据访问控件或数据访问对象(dao)可以访问下列数据库:1)jet数据库,即microsoft access2)isam数据库,如:dbase,foxpro等3)odbc数据库,凡是遵循odbc标准的客户/服务器数据库。如:microsoft sql server、oracle一般来说,如果要开发个人的小型数据库系统,用access数据库比较合适,要开发大、中型的数据库系统用odbc数据库更为适宜。而dbase和foxpro数据库由于已经过时,除非特别的情况,否则不要使用。在我们的例子中,当然选用access数据库了。建立access数据库有两种方法:一是在microsoft access中建立数据库。点击“新建”按钮就可以建立新的表了。这里我们主要介绍第二种方法:使用可视化数据管理器,不需要编程就可创建数据库。可视化数据管理器是一个非常有用的应用程序,它是vb企业版和专业版附带的

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论