通用查詢器的設(shè)計(jì)與實(shí)現(xiàn).rar
通用查詢器的設(shè)計(jì)與實(shí)現(xiàn),1.4萬(wàn)字36頁(yè)包括開(kāi)題報(bào)告和任務(wù)書(shū),程序代碼摘要隨著計(jì)算機(jī)技術(shù)的發(fā)展,軟件變得越來(lái)越復(fù)雜,軟件的開(kāi)發(fā)也變得越來(lái)越困難。人們發(fā)現(xiàn),根據(jù)以往的開(kāi)發(fā)模式,要在控制的時(shí)間和成本內(nèi),開(kāi)發(fā)出高質(zhì)量的軟件產(chǎn)品,幾乎是不可能的。于是人們想到了各種各樣的方法來(lái)進(jìn)行改進(jìn)。軟件重用無(wú)疑是這些方法中最重要的方法之一。通...
該文檔為壓縮文件,包含的文件列表如下:


內(nèi)容介紹
原文檔由會(huì)員 20023286 發(fā)布
通用查詢器的設(shè)計(jì)與實(shí)現(xiàn)
1.4萬(wàn)字 36頁(yè)
包括開(kāi)題報(bào)告和任務(wù)書(shū),程序代碼
摘 要
隨著計(jì)算機(jī)技術(shù)的發(fā)展,軟件變得越來(lái)越復(fù)雜,軟件的開(kāi)發(fā)也變得越來(lái)越困難。人們發(fā)現(xiàn),根據(jù)以往的開(kāi)發(fā)模式,要在控制的時(shí)間和成本內(nèi),開(kāi)發(fā)出高質(zhì)量的軟件產(chǎn)品,幾乎是不可能的。于是人們想到了各種各樣的方法來(lái)進(jìn)行改進(jìn)。軟件重用無(wú)疑是這些方法中最重要的方法之一。通過(guò)軟件重用,人們不僅可以利用標(biāo)準(zhǔn)化的軟件模塊快速構(gòu)建特定的應(yīng)用程序,而且可以在開(kāi)發(fā)軟件時(shí)使用以前開(kāi)發(fā)的,已經(jīng)驗(yàn)證過(guò)的沒(méi)有錯(cuò)誤的模塊,從而極大的提高軟件產(chǎn)品的生產(chǎn)效率,減輕開(kāi)發(fā)人員的工作強(qiáng)度和開(kāi)發(fā)成本。
本文在深入分析查詢語(yǔ)句的組成結(jié)構(gòu)的基礎(chǔ)上,設(shè)計(jì)和實(shí)現(xiàn)了一個(gè)通用查詢器。該通用查詢器由數(shù)據(jù)描述,模板管理,數(shù)據(jù)查詢,多語(yǔ)言接口等部分組成。數(shù)據(jù)描述允許用戶通過(guò)自己角度說(shuō)明數(shù)據(jù)表和字段;模板管理使用戶能夠重用以前的查詢條件;數(shù)據(jù)查詢則根據(jù)用戶輸入,動(dòng)態(tài)生成SQL語(yǔ)句,進(jìn)行數(shù)據(jù)查詢;多語(yǔ)言接口則使程序界面可以用不同的語(yǔ)言進(jìn)行顯示。
通用查詢器采用獨(dú)立的模塊化設(shè)計(jì)和基于XML文件的數(shù)據(jù)存儲(chǔ)方式,以動(dòng)態(tài)的方式根據(jù)用戶輸入生成SQL語(yǔ)句。這樣保證了通用查詢器的可移植性,可維護(hù)性,使其能夠作為一個(gè)組件與各個(gè)信息系統(tǒng)進(jìn)行集成,是對(duì)軟件組件級(jí)重用的一次有益嘗試。
最后對(duì)通用查詢器進(jìn)行了測(cè)試。測(cè)試結(jié)果表明,通用查詢器完全能夠根據(jù)用戶輸入,動(dòng)態(tài)生成正確的SQL語(yǔ)句,并將用戶需要的數(shù)據(jù)顯示給用戶,完成了數(shù)據(jù)查詢的功能。但是在其與其它信息系統(tǒng)集成上,還有待進(jìn)一步進(jìn)行驗(yàn)證。
關(guān)鍵字:軟件重用,組件,MVC結(jié)構(gòu),N層,SQL語(yǔ)句
The Design and Implementation of Common Query
Abstract
Along with the development of computer technology, software become more and more complex, and the development of software become more and more difficult. Software developers find that according to past development method, it is impossible to create a high quality software production within defined time and cost. So developers think out many methods to improve software development process and software quality. Software reuse is absolutely one of the most important methods. Software reuse improve the efficiency of software development greatly, and reduce the development time and cost.
According to the analysis of the structure of SQL query sentence, this paper introduces the design and implement of common query. This common query is made up of four parts, data description, modules management, data query, and multilanguage interface. These four parts allow user to describe data table and field, to use templates created before, to search useful data.
The common query is created as a module, and use XML files to store data, create SQL sentence dynamic. With them, the common query is easy to transplant and maintenance, and is easy to build into other information system. It is a very good attempt of software reuse.
At the end, we test it. The results show that the common query can create correct SQL query sentence according to user’s input, and give useful data to user who need it. As to working with other information system, it need further confirm.
Key Words: software reuse,module,MVC architecture,N-tier,SQL sentence
目 錄
第一章 緒 論 1
1.1 課題研究背景 1
1.2 軟件復(fù)用的概念和現(xiàn)狀 2
1.2.1 軟件復(fù)用的概念 2
1.2.2 軟件復(fù)用的現(xiàn)狀 2
1.3 論文組織結(jié)構(gòu) 3
第二章 組件設(shè)計(jì)目標(biāo)及策略 4
2.1 組件設(shè)計(jì)目標(biāo)和要求 4
2.2 系統(tǒng)分析 4
2.3 功能劃分 5
2.3.1 數(shù)據(jù)描述模塊 6
2.3.2 模板管理模塊 6
2.3.3 數(shù)據(jù)查詢模塊 6
2.3.4 多語(yǔ)言接口模塊 7
2.4 總結(jié) 7
第三章 組件開(kāi)發(fā)方案 8
3.1 體系結(jié)構(gòu) 8
3.1.1 兩層或三層體系結(jié)構(gòu) 8
3.1.2 N層體系結(jié)構(gòu) 9
3.1.3 組件形式 10
3.2 系統(tǒng)開(kāi)發(fā)環(huán)境與開(kāi)發(fā)模型 10
3.2.1 開(kāi)發(fā)環(huán)境 10
3.2.2 開(kāi)發(fā)模型 11
3.3 總結(jié) 11
第四章 組件設(shè)計(jì)與實(shí)現(xiàn) 12
4.1 通用查詢器自身數(shù)據(jù)的設(shè)計(jì) 12
4.1.1 字段關(guān)聯(lián)的設(shè)計(jì) 12
4.1.2 模版的設(shè)計(jì) 13
4.2 功能模塊的設(shè)計(jì) 14
4.2.1 數(shù)據(jù)描述模塊 14
4.2.2 模板管理 16
4.2.3 數(shù)據(jù)查詢模塊 17
4.2.4 多語(yǔ)言接口 20
4.3 系統(tǒng)環(huán)境 20
4.4 總結(jié) 20
第五章 組件設(shè)計(jì)與實(shí)現(xiàn)的關(guān)鍵技術(shù) 21
5.1 基于XML文件的數(shù)據(jù)存儲(chǔ) 21
5.1.1 問(wèn)題的產(chǎn)生 21
5.1.2 基于XML文件的數(shù)據(jù)存儲(chǔ) 21
5.2 SQL查詢語(yǔ)句的動(dòng)態(tài)生成 22
5.2.1 問(wèn)題的產(chǎn)生 22
5.2.2 SQL查詢語(yǔ)句的動(dòng)態(tài)生成 23
5.3 總結(jié) 23
第六章 結(jié)束語(yǔ) 25
參考文獻(xiàn) 26
致 謝 27
附錄 主要源程序 28
參考文獻(xiàn)
5]魏延. 軟件重用技術(shù)[J]. 重慶師范學(xué)院學(xué)報(bào)
[6]周軼剛,康建初. 可重用軟件模式[J]. 計(jì)算機(jī)工程與應(yīng)用
[7]王洪薇. 軟件重用技術(shù)及其進(jìn)展[J]. 內(nèi)蒙古科技與經(jīng)濟(jì)
[8]孟亮,余雪麗,孟昭光. 基于構(gòu)件庫(kù)的軟件重用技術(shù)[J]. 太原理工大學(xué)學(xué)報(bào)
[9]舒紅平,劉魁. 基于Java的Web通用查詢組件設(shè)計(jì)及應(yīng)用[J]. 成都信息工程學(xué)院學(xué)報(bào)
附錄 主要源程序
//產(chǎn)生“select”子句和“from”子句
public static string GenDispSQL(string tableName,string tempName)
{
string selectSQL = "select ";
string fromSQL = " from " + tableName;
//獲取模版的ID
string tempID = DispTempAccess.GetID(tempName);
//獲取模版的所有字段
......
1.4萬(wàn)字 36頁(yè)
包括開(kāi)題報(bào)告和任務(wù)書(shū),程序代碼
摘 要
隨著計(jì)算機(jī)技術(shù)的發(fā)展,軟件變得越來(lái)越復(fù)雜,軟件的開(kāi)發(fā)也變得越來(lái)越困難。人們發(fā)現(xiàn),根據(jù)以往的開(kāi)發(fā)模式,要在控制的時(shí)間和成本內(nèi),開(kāi)發(fā)出高質(zhì)量的軟件產(chǎn)品,幾乎是不可能的。于是人們想到了各種各樣的方法來(lái)進(jìn)行改進(jìn)。軟件重用無(wú)疑是這些方法中最重要的方法之一。通過(guò)軟件重用,人們不僅可以利用標(biāo)準(zhǔn)化的軟件模塊快速構(gòu)建特定的應(yīng)用程序,而且可以在開(kāi)發(fā)軟件時(shí)使用以前開(kāi)發(fā)的,已經(jīng)驗(yàn)證過(guò)的沒(méi)有錯(cuò)誤的模塊,從而極大的提高軟件產(chǎn)品的生產(chǎn)效率,減輕開(kāi)發(fā)人員的工作強(qiáng)度和開(kāi)發(fā)成本。
本文在深入分析查詢語(yǔ)句的組成結(jié)構(gòu)的基礎(chǔ)上,設(shè)計(jì)和實(shí)現(xiàn)了一個(gè)通用查詢器。該通用查詢器由數(shù)據(jù)描述,模板管理,數(shù)據(jù)查詢,多語(yǔ)言接口等部分組成。數(shù)據(jù)描述允許用戶通過(guò)自己角度說(shuō)明數(shù)據(jù)表和字段;模板管理使用戶能夠重用以前的查詢條件;數(shù)據(jù)查詢則根據(jù)用戶輸入,動(dòng)態(tài)生成SQL語(yǔ)句,進(jìn)行數(shù)據(jù)查詢;多語(yǔ)言接口則使程序界面可以用不同的語(yǔ)言進(jìn)行顯示。
通用查詢器采用獨(dú)立的模塊化設(shè)計(jì)和基于XML文件的數(shù)據(jù)存儲(chǔ)方式,以動(dòng)態(tài)的方式根據(jù)用戶輸入生成SQL語(yǔ)句。這樣保證了通用查詢器的可移植性,可維護(hù)性,使其能夠作為一個(gè)組件與各個(gè)信息系統(tǒng)進(jìn)行集成,是對(duì)軟件組件級(jí)重用的一次有益嘗試。
最后對(duì)通用查詢器進(jìn)行了測(cè)試。測(cè)試結(jié)果表明,通用查詢器完全能夠根據(jù)用戶輸入,動(dòng)態(tài)生成正確的SQL語(yǔ)句,并將用戶需要的數(shù)據(jù)顯示給用戶,完成了數(shù)據(jù)查詢的功能。但是在其與其它信息系統(tǒng)集成上,還有待進(jìn)一步進(jìn)行驗(yàn)證。
關(guān)鍵字:軟件重用,組件,MVC結(jié)構(gòu),N層,SQL語(yǔ)句
The Design and Implementation of Common Query
Abstract
Along with the development of computer technology, software become more and more complex, and the development of software become more and more difficult. Software developers find that according to past development method, it is impossible to create a high quality software production within defined time and cost. So developers think out many methods to improve software development process and software quality. Software reuse is absolutely one of the most important methods. Software reuse improve the efficiency of software development greatly, and reduce the development time and cost.
According to the analysis of the structure of SQL query sentence, this paper introduces the design and implement of common query. This common query is made up of four parts, data description, modules management, data query, and multilanguage interface. These four parts allow user to describe data table and field, to use templates created before, to search useful data.
The common query is created as a module, and use XML files to store data, create SQL sentence dynamic. With them, the common query is easy to transplant and maintenance, and is easy to build into other information system. It is a very good attempt of software reuse.
At the end, we test it. The results show that the common query can create correct SQL query sentence according to user’s input, and give useful data to user who need it. As to working with other information system, it need further confirm.
Key Words: software reuse,module,MVC architecture,N-tier,SQL sentence
目 錄
第一章 緒 論 1
1.1 課題研究背景 1
1.2 軟件復(fù)用的概念和現(xiàn)狀 2
1.2.1 軟件復(fù)用的概念 2
1.2.2 軟件復(fù)用的現(xiàn)狀 2
1.3 論文組織結(jié)構(gòu) 3
第二章 組件設(shè)計(jì)目標(biāo)及策略 4
2.1 組件設(shè)計(jì)目標(biāo)和要求 4
2.2 系統(tǒng)分析 4
2.3 功能劃分 5
2.3.1 數(shù)據(jù)描述模塊 6
2.3.2 模板管理模塊 6
2.3.3 數(shù)據(jù)查詢模塊 6
2.3.4 多語(yǔ)言接口模塊 7
2.4 總結(jié) 7
第三章 組件開(kāi)發(fā)方案 8
3.1 體系結(jié)構(gòu) 8
3.1.1 兩層或三層體系結(jié)構(gòu) 8
3.1.2 N層體系結(jié)構(gòu) 9
3.1.3 組件形式 10
3.2 系統(tǒng)開(kāi)發(fā)環(huán)境與開(kāi)發(fā)模型 10
3.2.1 開(kāi)發(fā)環(huán)境 10
3.2.2 開(kāi)發(fā)模型 11
3.3 總結(jié) 11
第四章 組件設(shè)計(jì)與實(shí)現(xiàn) 12
4.1 通用查詢器自身數(shù)據(jù)的設(shè)計(jì) 12
4.1.1 字段關(guān)聯(lián)的設(shè)計(jì) 12
4.1.2 模版的設(shè)計(jì) 13
4.2 功能模塊的設(shè)計(jì) 14
4.2.1 數(shù)據(jù)描述模塊 14
4.2.2 模板管理 16
4.2.3 數(shù)據(jù)查詢模塊 17
4.2.4 多語(yǔ)言接口 20
4.3 系統(tǒng)環(huán)境 20
4.4 總結(jié) 20
第五章 組件設(shè)計(jì)與實(shí)現(xiàn)的關(guān)鍵技術(shù) 21
5.1 基于XML文件的數(shù)據(jù)存儲(chǔ) 21
5.1.1 問(wèn)題的產(chǎn)生 21
5.1.2 基于XML文件的數(shù)據(jù)存儲(chǔ) 21
5.2 SQL查詢語(yǔ)句的動(dòng)態(tài)生成 22
5.2.1 問(wèn)題的產(chǎn)生 22
5.2.2 SQL查詢語(yǔ)句的動(dòng)態(tài)生成 23
5.3 總結(jié) 23
第六章 結(jié)束語(yǔ) 25
參考文獻(xiàn) 26
致 謝 27
附錄 主要源程序 28
參考文獻(xiàn)
5]魏延. 軟件重用技術(shù)[J]. 重慶師范學(xué)院學(xué)報(bào)
[6]周軼剛,康建初. 可重用軟件模式[J]. 計(jì)算機(jī)工程與應(yīng)用
[7]王洪薇. 軟件重用技術(shù)及其進(jìn)展[J]. 內(nèi)蒙古科技與經(jīng)濟(jì)
[8]孟亮,余雪麗,孟昭光. 基于構(gòu)件庫(kù)的軟件重用技術(shù)[J]. 太原理工大學(xué)學(xué)報(bào)
[9]舒紅平,劉魁. 基于Java的Web通用查詢組件設(shè)計(jì)及應(yīng)用[J]. 成都信息工程學(xué)院學(xué)報(bào)
附錄 主要源程序
//產(chǎn)生“select”子句和“from”子句
public static string GenDispSQL(string tableName,string tempName)
{
string selectSQL = "select ";
string fromSQL = " from " + tableName;
//獲取模版的ID
string tempID = DispTempAccess.GetID(tempName);
//獲取模版的所有字段
......