全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Title:Date:Page:Solution-Chapter 082005-03-023Document Revision HistoryRevisionDateByRemarksA12005-3-2Henry ZhongCreatedList:Using class utilities1.1 Model Changes1.2 Storage and Business LogicSolutions Chapter 08(Using class utilities)1、 Model Changes1.1 Open the Model and add a new class in the Main diagram. Change the class type to ClassUtility and give the class the name DemoTrInvoiceUtil.1.2 Methods in the DemoTrInvoiceUtil class will use data belonging to the DemoTrInvoice class, hence the dependency relationship between the two classes will need a friendship as well. Therefore the check box Friendship Required in the specification of the relation need to be checked. Check Box must be checked1.3 Now add a public method called GetTotalUnpaid to the DemoTrInvoiceUtil class. This method will retrieve the total value of unpaid invoices for a certain customer. Therefore it needs two arguments. In the detail tab of method specifications add the arguments for CompanyId of type String and CustomerId of type Number. 1.4 The model should look like that following. 1.5 Save the model.2 Storage and Business Logic2.1 The Utility class does not contain any attributes, but contain only methods. Therefore there are no storage changes. Hence can start by opening the source code for DemoTrInvoiceUtil in the business logic.2.2 The following segment of coding, is one possible method of implementing the method Get_Total_Unpaid. Note: One of the conventions used is to use a cursor whenever a select statement is needed.Avoid using PL/SQL procedures in a select statement. The table is used in the place of the view and the column unpaid is used directly instead of using the DEMO_TR_INVOICE_API.Get_Unpaid as these calls to PL/SQL from SQL will cause performance degradation. 2.3 Select the function and click edit. In the edit dialog box that appears select the last tab called PRAGMA, and check the first two options (WNDS- Write No Database State and WNPS- Write No Package State) to assure the security system that these methods will not be updating the database. 2.4 It is possible to test the functionality of this function in a select statement by
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 重点项目-石油勘探设备项目可行性研究报告
- 门窗幕墙可行性研究报告
- 高碱玻璃棉项目可行性研究报告
- 鼻窥镜项目可行性研究报告
- 2025年安徽省建设工程质量检测人员技术能力(建筑节能)专项考试题库(含答案)
- 广西中考物理5年(2021-2025)真题分类汇编:专题06 力与运动和力(原卷版)
- 2025年消防设施操作员之消防设备初级技能押题练习试题A卷含答案
- 鲜果种植基地收购协议书
- 村组安全生产协议书
- 承德汽车销毁协议书
- 《“1+X”无人机摄影测量》课件-项目一 无人机摄影测量
- 不确定条件下跨区域应急物资调度优化研究
- 《农机电器设备使用维护》课件-项目一:农机电气系统基础
- 格兰仕微波炉G80W23YSL说明书
- (高清版)DB12∕T 1444-2025 博物馆消防安全管理导则
- 建筑工程重大隐患排查整治方案
- 腰椎骨折疑难病例讨论
- 滨州医学院《人体形态学》2023-2024学年第一学期期末试卷
- 中国监控摄像机行业发展趋势及发展前景研究报告2025-2028版
- 校园餐资金管理制度
- 手术麻醉管理授权培训
评论
0/150
提交评论