文档详情

公交路线查询系统-数据库及查询接口设计-毕业论文.doc

发布:2018-05-11约2.41万字共38页下载文档
文本预览下载声明
本科毕业论文 (科研训练、毕业设计) 题 目:公交路线查询系统 ——数据库及查询接口设计 姓 名: 学 院: 软件学院 系: 专 业: 软件工程 年 级: 学 号: 指导教师(校内): 职称: 指导教师(校外): 职称: 年 月 日 公交路线查询系统-数据库及查询接口设计 [摘要] 本文分析了公交路线查询系统数据库的各个实体之间的关系,并以此为依据建立数据库表、、、、、、 Bus Line Query System—Design of database and query interface [Abstract] This paper analyzed the relationships between each entity of the database of the Bus Line Query System. According to the analyzed result, I built database tables and views, which might satisfy the needs of the Bus Line Query System. The reasons why I chose the Java language to operate the database are all because finally the system would be built as website, and every visit to the web page would need the opening or closing of the database. For preventing the wasting of greater part of the system resources by opening or closing the database too frequently, I used the database connection pool. I analyzed the principles and the concrete steps of the database connection pool, and used Java procedure for example to introduce how to realize it. I installed a Servlet to open or close the database connection pool while the tomcat server started and closed. I adopted multilayer structure to offer the database interface, getting connection and closure in the class. The class receives sql language and returns the result. It can provide all the interface to hand over what Bus Line Query System need and what the management of database need. [KeyWord] Connection Pool Servlet 目录 引 言 2 一、 数据库分析和建立 2 §1.1系统功能描述 2 §1.2实体关系 2 §1.3 数据库实现 3 二、 数据库连接池的实现 5 §2.1问题的描述 5 §2.2问题的分析和解决方案 6 §2.3连接池的具体实现 7 三、 接口的实现 8 §3.1数据操作结构描述 8 §3.2查询接口的具体描述 9 §3.2.1 OperateData类 9 §3.2.2 Service类 9 §3.2.3 Service_en类 17 §3.3管理接口的实现 25 §3.3.1 Admin类 25 §3.3.2 Station类 27 §3.3.3 Line类 30 §3.3.4 Location类 32 四、 结论 35 致 谢 语 35 参考文献 35 附 录 35 引 言 近年来,随着厦门旅游城市的发展以及交通设施的发达,越来越多的游客选择来厦门旅游,为了给人们提供乘车的方便以及配合厦门信息港的建设,促进“数字厦门”的发展,我们小组设计了可以用在手机、PDA、个人PC上的厦门市公交路线查询系统。该系统数据库涉及上百路公
显示全部
相似文档