版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、面向?qū)ο髷?shù)據(jù)庫(kù)實(shí)驗(yàn)一一應(yīng)用實(shí)現(xiàn)報(bào)告1系統(tǒng)設(shè)計(jì)1.1 面向?qū)ο髷?shù)據(jù)庫(kù)實(shí)驗(yàn)體系架構(gòu)該系統(tǒng)采用J2EE的三層結(jié)構(gòu),分為表示層、業(yè)務(wù)邏輯層和數(shù)據(jù)服務(wù)層。三層體系將業(yè) 務(wù)規(guī)則、數(shù)據(jù)訪問(wèn)等工作放到中間層處理,客戶端不直接與數(shù)據(jù)庫(kù)交互,而是通過(guò)控制器與中間層建立連接,再由中間層與數(shù)據(jù)庫(kù)交互。表本層米用JSP。中間層采用,為了分離控制層與業(yè)務(wù)邏輯層,又可細(xì)分為:Web層,就是MVC模式中的“ C”,負(fù)責(zé)表示層與業(yè)務(wù)邏輯層的交互,調(diào)用業(yè)務(wù)邏 輯層,并將業(yè)務(wù)數(shù)據(jù)返回給表示層顯示。MVC框架采用流行的Struts。DAO層(數(shù)據(jù)訪問(wèn)對(duì)象層),負(fù)責(zé)與持久化對(duì)象交互,封裝了數(shù)據(jù)的增、刪、改、 查等原子操作。PO層(持久
2、化又象層),以面向?qū)ο蠓绞讲僮鲾?shù)據(jù)庫(kù)。數(shù)據(jù)服務(wù)層使用面向?qū)ο髷?shù)據(jù)庫(kù)Versant。表示層采用struts框架,負(fù)責(zé)界面的更新,數(shù)據(jù)的校驗(yàn)、讀取、顯示。數(shù)據(jù)訪問(wèn)對(duì)象層 采用JVI接口,對(duì)不同的對(duì)象建立一個(gè)類,并提供相應(yīng)服務(wù),供表示層使用,并以 VO在表 示層與DAO層進(jìn)行消息傳遞。持久化層對(duì)象采用經(jīng)過(guò)JVI加強(qiáng)過(guò)的模型類,執(zhí)行新增、編輯、刪除等操作。1.2 模塊劃分模塊劃分的目標(biāo)是: 高內(nèi)聚,低耦合。我們盡量減少模塊和模塊之間的交互,而把處理 流程相似的功能歸到同一模塊,最大限度的實(shí)現(xiàn)代碼的重用,模塊劃分如下:模塊編號(hào)模塊名稱M1主界囿M2立方體模塊M3圓錐體模塊M4圓柱體模塊M5球體模塊M6模
3、型預(yù)覽1.3 包的體系結(jié)構(gòu)及功能描述name.zzz.hd.action面向?qū)ο髷?shù)據(jù)庫(kù)界面 Action包 mon面向?qū)ο髷?shù)據(jù)庫(kù)實(shí)驗(yàn)常用工具包 name.zzz.hd.dao面向?qū)ο髷?shù)據(jù)庫(kù)實(shí)驗(yàn)的數(shù)據(jù)訪問(wèn)對(duì)象 name.zzz.hd.model面向?qū)ο髷?shù)據(jù)庫(kù)實(shí)驗(yàn)的各個(gè)模型實(shí)體類包 name.zzz.hd.vo面向?qū)ο髷?shù)據(jù)庫(kù)模型顯示對(duì)象包2各模塊詳細(xì)設(shè)計(jì)2.1 主界面(M1)詳細(xì)設(shè)計(jì)2.1.1 程序描述:主界面顯示程序所能執(zhí)行的各種操作,并以菜單的形式顯示出來(lái)。另外頁(yè)面的底部顯示小組成員名單。通過(guò)點(diǎn)擊頁(yè)面頂部的不同功能,進(jìn)入不同的操作。2.1.2 流程邏輯:2.1.3 類圖:2.2 立方體(M2)
4、模塊詳細(xì)設(shè)計(jì)2.2.1 程序描述:該模塊包括對(duì)立方體的增刪改查操作,新增立方體時(shí)輸入立方體的原點(diǎn)和在坐標(biāo)系中的x、y、z三個(gè)坐標(biāo)點(diǎn),然后保存立方體信息。立方體模塊還對(duì)立方體進(jìn)行列表,并能進(jìn)行編 輯和刪除操作。在列表上方的快速搜索里面可以輸入立方體的名稱進(jìn)行模糊查詢。2.2.2 流程邏輯:addCube.jspCubeAction-cubeDao: CubeDao = new CubeDao()+add(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletRespo
5、nse): ActionForward +preview(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +insert(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +edit(mapping: ActionMapping,
6、 form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +update(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +delete(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, re
7、sponse: HttpServletResponse): ActionForward +list(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForwardCubeDao+delete(String) +getCount() +getCube() +getCubeVo() +list() +save() +update()2.3 圓錐體(M3)模塊詳細(xì)設(shè)計(jì)2.3.1 程序描述:該模塊包括對(duì)圓錐體的增刪改查操作,新增圓錐體
8、時(shí)輸入圓錐體的頂點(diǎn)和底面頂點(diǎn)半徑,然后保存圓錐體信息。圓錐體模塊還對(duì)圓錐體進(jìn)行列表,并能進(jìn)行編輯和刪除操作。在列表上方的快速搜索里面可以輸入圓錐體的名稱進(jìn)行模糊查詢。2.3.2 流程邏輯:選擇圓錐體的操作ConeDaoaddCone.jspConeAction+delete(String) +getCount() +getCone() +getConeVo() +list() +save() +update()-ConeDao: ConeDao = new ConeDao() +add(mapping: ActionMapping, form: ActionForm, request: Htt
9、pServletRequest, response: HttpServletResponse): ActionForward +preview(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +insert(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse):
10、ActionForward +edit(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +update(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +delete(mapping: ActionMapping, form:
11、ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +list(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward2.4 圓柱體(M4)模塊詳細(xì)設(shè)計(jì)2.4.1 程序描述:該模塊包括對(duì)圓柱體的增刪改查操作,新增圓柱體時(shí)輸入圓柱體的頂點(diǎn)和底面頂點(diǎn)半徑,然后保存圓柱體信息。圓柱體模塊還對(duì)圓柱體進(jìn)行列表
12、,并能進(jìn)行編輯和刪除操作。在列表上方的快速搜索里面可以輸入圓柱體的名稱進(jìn)行模糊查詢。2.4.2 流程邏輯:選擇圓柱體的操作listCylinder.jsp遼CylinderActioneditCylinder.jsp-CylinderDao: CylinderDao = new CylinderDao()+add(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +preview(mapping: ActionM
13、apping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +insert(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +edit(mapping: ActionMapping, form: ActionForm, request: HttpServletReques
14、t, response: HttpServletResponse): ActionForward +update(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +delete(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +
15、list(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForwardCylinderDao+delete(String) +getCount() +getCylinder() +getCylinderVo() +list() +save() +update()2.5 球體(M5)模塊詳細(xì)設(shè)計(jì)2.5.1 程序描述:該模塊包括對(duì)球體的增刪改查操作,新增球體時(shí)輸入球體的圓點(diǎn)和半徑,然后保存球體信息。球體模塊還對(duì)球體進(jìn)行列表,并能
16、進(jìn)行編輯和刪除操作。在列表上方的快速搜索里面 可以輸入球體的名稱進(jìn)行模糊查詢。2.5.2 流程邏輯:列表保存球體信息到數(shù)據(jù)庫(kù)SphereAction-SphereDao: sphereDao = new SphereDao() +add(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +preview(mapping: ActionMapping, form: ActionForm, request: Http
17、ServletRequest, response: HttpServletResponse): ActionForward +insert(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +edit(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): Acti
18、onForward +update(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward +delete(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForwardSphereDaoaddSphere.jspeditSphere.jsp+list
19、(mapping: ActionMapping, form: ActionForm, request: HttpServletRequest, response: HttpServletResponse): ActionForward+delete(String) +getCount() +getSphere() +getSphereVo() +list() +save() +update()2.6 模型預(yù)覽(M6)模塊詳細(xì)設(shè)計(jì)2.6.1 程序描述:該模塊包括對(duì)立方體、圓錐體、圓柱體、球體的預(yù)覽,首先輸入 4種不同模型的名稱, 然后進(jìn)入預(yù)覽界面,預(yù)覽四種不同的模型。2.6.2 流程邏輯:2.6.3 類圖:previewShowPreviewModel1PreviewAction-cubeDao: CubeDao = new CubeDao() -sphereDao: SphereDao = new SphereDao() -cylinderDao: CylinderDao = new
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 信息技術(shù)教師勞動(dòng)合同范本
- 房地產(chǎn)開發(fā)商合同 示范文本
- 室內(nèi)設(shè)計(jì)裝修協(xié)議格式
- 個(gè)人商業(yè)店面出租合同協(xié)議
- 2024年化糞池清掏服務(wù)合同書
- 標(biāo)準(zhǔn)拆遷安置房買賣合同
- 公司借款合同的編寫要點(diǎn)與示范
- 旅游項(xiàng)目投資合作協(xié)議模板
- 個(gè)人車輛租賃合同
- 上海市液化氣購(gòu)銷合同
- 公務(wù)員2021年國(guó)考《申論》真題(地市級(jí))及參考答案
- DPtech-FW1000系列防火墻系統(tǒng)操作手冊(cè)
- 思想道德與法治課件:第五章 第二節(jié) 吸收借鑒優(yōu)秀道德成果
- 地方課程六年級(jí)上冊(cè)
- 淺論構(gòu)建高效課堂研究的意義
- 村級(jí)一村一品實(shí)施方案
- 高壓線安全防護(hù)專項(xiàng)施工方案(完整版)
- 時(shí)柵位移傳感技術(shù)講解
- 燈具施工方案(完整版)
- TKT-Glossary中譯版
評(píng)論
0/150
提交評(píng)論