


全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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年征兵政策考试试题及答案
- 2025年河南省政务服务中心(综合窗口)人员招聘笔试备考题库及答案
- 2025年历代举人试卷图片及答案
- 2025年内镜科消化道病变鉴别诊断考察答案及解析
- 自考国际工程真题及答案
- 2025年骨科常见疾病诊治策略检测答案及解析
- 2025年近视知识测试题及答案
- 艺体综合中心建设项目商业计划书
- 慢性鼻窦炎鼻息肉护理查房课件
- set2020标准文件编写工具软件使用说明书
- 中小学教师参与学校管理研究论文
- 动叶可调式轴流风机液压调节系统课件
- 标准件与常用件课件
- 报价单(报价单模板)
- 液氧泄漏应急处置的培训与演练
- 沥青路面施工-沥青混合料配合比设计
- UG有限元的分析第12章
- 教育学会会员入会申请表
- 高端地产销售培训课件-豪宅营销模式完整版
评论
0/150
提交评论