EA帮助文档翻译(数据建模)1.0
- 格式:doc
- 大小:870.50 KB
- 文档页数:34
二.创建工程依次点击“File->New Project->命名保存->在“Select model”中选择需要创建的类型(如图-1)->单击“OK”确认,得到界面如图-2所示图-1:创建工程Business Process业务流程Requirements需求分析Use Case用例Domain Model领域模型Class类设计Database数据库设计Component组件Deployment部署Testing测试Maintenance维护Project Management项目管理User Interface用户接口表-1:创建项目的常见类型图-2:创建项目后界面截图三.一些基本的通用设置3.1 设置默认代码环境依次点击:“Tool->Options-Source Code Engineering->Default Language For Code Ge neration->C#”如图3所示,完成:单击“Close”确认退出。
图-3:设置默认代码环境3.2 设置默认数据库依次点击:“Tool->Options- Code Editors->Default Database->SQL Server 2005”如图4所示:图-4:设置默认数据库四.Class模型4.1.创建“Class”模型依次点击“File->New Project->命名保存->在“Select model”中勾选“Class”,最后单击“确定”进入设计界面。
在设计界面的左边是工具箱(如图5)图-5:类模型工具栏Class Elements Common Package包Note注释Class类Constraint约束条件Interface接口Document文档:附加文档附件Enumeration枚举Artifact人工:表示任意的系统任意的Table表Requirement需求描述Signal对象通信信号的描述Issue问题描述Association关联Change变化描述Class Relationships Boundary分界线Associate关联Dependency依赖关系Generalize泛化Realize实现Compose组成Trace追踪Associate Class关联类Information Flow数据流Assembly程序集Note Link注释链接Realize实现Nesting嵌套Package Merge包的合并Package Import包的导入4.2.为模型中创建的“Class”对象使用别名首先在工具箱中点选,然后在合适的位置左键单击确定,之后弹出属性窗口(如图7所示)图-7:新建类截图在“Name”栏中输入Class 的名称“Test”,然后在“Alias”中输入一个别名“测试”。
numeca 的中文帮助文件帮助文档2-5 FINE求解2-5.1 工程控制台 Project Management78. In the FINE, interface project parameters, select the item Project Management/Project Settings (default). 在Import a grid file 中输入刚刚保存过的*.igg格式的文件。
79. 在主菜单Mesh中选择Properties.设定度量单位。
80. In the Project units section, choose meters as therotor37.geomTurbo file contained the geometryin meters (default)81. In the Computations area, rename "computation_1" in"coarse_choked"yh-1在左边列表框中,选择/Parameters/Configuration//Fluid Model 选取流体类型,如:理想气体,真实气体,水,等~/Flow Model 选择流动模型,定常或非定常流动,1)欧拉方程或NS方程2; 2)湍流模型(NS);3)是否考虑重力作用。
/Rotating Machinery 设置旋转参数,如转速等~2-5.2 步长和时间步设置82. 时间步长设置。
选择Configuration / space & time 83. 时间选取定常解模式。
84. 选择3D流动85. 定义这个例子为内流,采用圆柱坐标系统。
86. 激活IGG/Autogrid网格87. 设置旋转速度。
-17188RPM80-87这几步在6.0以上版本中方法不同,不必激活IGG。
参考上面yh-1 2-5.3 在FINE查看网格88. 单击Mesh图标在6.0以上版本中选择菜单Mesh/View On/Off89. 单击图形查看按扭,如图2.5.3-1中下侧的图标2-5.4 物理模型2-5.4.1 概要(以下内容与6.0以上版本中的位置不同)90. 打开对模型话框,Physical Model/General physics,如图2.5.4-191. 选取Fluid model这个标签,92. 弹出是否创建新流体的对话框,选择No.93. 选取AIR(Perfect Gas)空气,理想气体.在这个列表框中。
EA软件操作手册目录一.主界面二.轨迹测量三.系统设置四.报告设置五.报告六.维氏测试要点七.企业版新增内容说明一.主界面图1主界面分为以下10个功能区:①主菜单②工具栏③硬度计算④塔台控制⑤硬度计状态⑥硬度计工作模式⑦移动控制⑧坐标显示栏⑨比例尺⑩图像显示区域4①主菜单:图2主菜单包括:文件、视频、系统、测量、帮助五个菜单。
A.文件菜单介绍:图3a)打开文件:打开一幅图片。
b)保存图片:存储当前图像显示区域的图像。
c)退出:退出。
B.视频菜单介绍:图4a)静态:视频状态(静态图片和动态视频)的切换。
b)摄像头属性:视频参数设置。
c)视频中心点调整:调整视频中心点。
图5C.系统菜单介绍:图6a)系统设置:系统参数设置。
b)标定:设置比例尺。
D.测量菜单介绍:图7a)自动测量:使用软件的自动测量压痕功能。
b)三边测量法:依次顺序连接压痕四个顶点来计算硬度值的方法。
c)顶点测量法:依次连接压痕两组对角顶点,以此来计算硬度值的方法。
d)长度测量:测量一条线的长度。
e)轨迹测量:进入轨迹测量界面。
E.帮助菜单介绍:图8a)语言:选择软件显示的语言(中文/英文)。
b)关于:显示软件的相关信息。
c)操作手册:软件说明书。
d)联系我们:恒一企业有限公司详细资料。
②工具栏:工具栏提供了一些常用功能的快捷方式图9A.打开文件。
B.保存图片。
C.摄像头静态/动态切换。
D.报告设置。
E.打开报告界面。
F.自动测量。
G.三边测量法。
H.顶点测量法。
I.长度测量。
J.打开轨迹测量界面。
K.使用放大镜功能。
L.在视频框中显示坐标轴中心。
M.调整聚焦范围。
③硬度计算如下图所示,硬度计算可以在HK和HV两种方式中进行选择。
图10根据使用需要,MH和VH可以相互切换。
HKHV图11④塔台控制:切换到塔台上不同的位置图12图12所示,从左到右为:40X物镜/10X物镜/压头/20X物镜/5X物镜。
图标下文字可在系统-系统设置-镜头设置内修改,以满足客户多样化需求。
二.创建工程依次点击“File->New Project->命名保存->在“Select model”中选择需要创建的类型(如图-1)->单击“OK”确认,得到界面如图-2所示图-1:创建工程Business Process 业务流程Requirements需求分析Use Case用例Domain Model领域模型Class类设计Database数据库设计Component组件Deployment部署Testing测试Maintenance维护Project Management项目管理User Interface用户接口表-1:创建项目的常见类型图-2:创建项目后界面截图三.一些基本的通用设置设置默认代码环境依次点击:“Tool->Options-Source Code Engineering->Default Language For Code Ge neration->C#”如图3所示,完成:单击“Close”确认退出。
图-3:设置默认代码环境设置默认数据库依次点击:“Tool->Options- Code Editors->Default Database->SQL Server 2005”如图4所示:图-4:设置默认数据库四.Class模型.创建“Class”模型依次点击“File->New Project->命名保存->在“Select model”中勾选“Class”,最后单击“确定”进入设计界面。
在设计界面的左边是工具箱(如图5)图-5:类模型工具栏Class Elements Common Package包Note注释Class类Constraint约束条件Interface接口Document文档:附加文档附件Enumeration枚举Artifact人工:表示任意的系统任意的Table表Requirement需求描述Signal对象通信信号的描述Issue问题描述Association关联Change变化描述Class Relationships Boundary分界线Associate关联Dependency依赖关系Generalize泛化Realize实现Compose组成Trace追踪Associate Class关联类Information Flow数据流Assembly程序集Note Link注释链接Realize实现??Nesting嵌套??Package Merge包的合并??Package Import包的导入??.为模型中创建的“Class”对象使用别名首先在工具箱中点选,然后在合适的位置左键单击确定,之后弹出属性窗口(如图7所示)图-7:新建类截图在“Name”栏中输入Class 的名称“Test”,然后在“Alias”中输入一个别名“测试”。
EA经典教程一、Enterprise Architect简介Enterprise Architect是一个对于软件系统开发有着极好支持的CASE软件(Computer Aided Software Engineering)。
EA不同于普通的UML画图工具(如VISIO),它将支撑系统开发的全过程。
在需求分析阶段,系统分析与设计阶段,系统开发及部署等方面有着强大的支持,同时加上对10种编程语言的正反向工程,项目管理,文档生成,数据建模等方面。
可以让系统开发中各个角色都获得最好的开发效率。
二、创建新项目安装好了EA汉化版后,启动软件。
点击“创建新的项目”,打开创建新项目对话框。
【图1】这里可以选择各种的初始的模板包。
【图2】我们选择了其中几个,然后确定打开了项目浏览器。
我们的项目将从这里开始了。
【图3】三、EA软件配置在使用软件之前,我们先来对它进行配置。
打开“工具”–>“选项”。
【图4】常规配置中,比较重要的是作者这项。
因为在EA项目的团队协作中,作者是每个人的身份标识。
在代码工程中,最好把文件编码设置成UTF8或者是GB中文。
其他方面的配置,因为都是中文的,也比较容易理解。
有些不明的地方,可以多琢磨。
另外对于最下面的十种编程语言,可以根据自己的需要,进行一些配置。
比如PHP,可以配置PHP4或者是PHP5,那么生成的代码也是有些不同的。
还可以隐藏其他没有用到的语言。
四、用例图,类图的使用用例图(use case)用例图是我们做系统分析的通常第一步,是非常重要的。
毕竟大部分的开发流程,都将需求分析作为首要步骤,也是必要步骤。
将系统需求化作图型表达出来。
首先是在项目浏览器中,右键“添加”–>“新建图表”。
【图5】然后可以加入一些角色和用例,在每次在工具箱里面拉出一个元件,都将打开这个元件的设置对话框,在对话框内填入元件的名称等信息。
现在我们是表达一个用户注册和登录的场景:【图6】加入关联,用例图中最常用的关联是“使用use”,当然也经常会用到“包含include”“扩展extend”。
**Enterprise Architect 12 中文用户手册****第一章:简介**Enterprise Architect(简称EA)是一款功能强大的企业级建模和设计工具,支持软件开发的全过程,包括需求分析、系统设计、测试和维护等。
EA 12是其第十二个版本,为用户提供了更为丰富的功能和更优秀的用户体验。
**第二章:安装与启动**1. 从官方网站下载EA 12的安装包。
2. 双击安装包,按照提示完成安装过程。
3. 安装完成后,双击桌面图标启动EA 12。
**第三章:基础功能**1. **项目管理**:用户可以创建新的项目或在已存在的项目中进行工作,还支持多人协同工作。
2. **建模与设计**:EA 12提供了多种建模工具,如UML、BPMN、ERD 等,用户可以根据需要选择合适的工具进行建模和设计。
3. **代码生成**:EA 12可以将用户的设计直接转换成多种编程语言的代码,大大提高了开发效率。
**第四章:高级功能**1. **版本控制**:EA 12内置了版本控制功能,可以追踪模型的变化历史,方便用户进行版本管理和协作。
2. **模板库**:EA 12提供了一系列的模板和模式,可以帮助用户更快速的创建模型和设计。
3. **扩展性**:EA 12支持用户自定义扩展,用户可以根据自己的需要编写插件来扩展EA的功能。
**第五章:操作指南**这一部分会详细地解释如何使用EA 12进行建模、设计、生成代码等操作,包括但不限于创建类图、顺序图、状态图,设置属性,生成代码等。
**第六章:常见问题与解决方案**这一部分会列出用户在使用EA 12过程中可能遇到的问题,以及相应的解决方案。
**第七章:总结与展望**EA 12是一款功能全面、操作简便的企业级建模和设计工具,无论是对于初学者还是对于经验丰富的开发者,都能提供强大的支持。
未来,我们期待EA 能够继续引入更多的创新功能,为用户提供更好的服务。
注意:本手册的内容仅供参考,如有需要,请查阅官方文档或联系官方客服。
##Enterprise Architect帮助文档EA7.0帮助文档翻译目录简介 (3)从此处开始 (3)使用EA (3)用EA建模 (3)模型管理 (3)项目管理 (3)编码工程 (3)调试和配置文档 (3)数据建模 (3)一张数据表格 (3)创建一个表格 (4)设置表格属性 (5)创建字段 (10)创建Oracle包 (12)主键 (12)外键 (13)存储过程 (18)视图 (22)索引,触发器和检查约束 (24)生成DDL (26)把一个包生成DDL (26)进程的数据类型转换 (27)包的数据类型转换 (28)数据库管理系统数据类型 (29)从开放式数据库中导入数据库模式 (30)转化MDA (34)XML技术 (34)生成文档 (34)EA扩展 (34)UML字典 (34)项目角色和EA (34)授权管理 (34)术语 (34)简介从此处开始使用EA用EA建模模型管理项目管理编码工程调试和配置文档数据建模一张数据表格下面展示了一个数据模型表,上面有三个表格,相互之间用主外键连接起来。
上面同样展示了主外键的操作。
你也可以添加其他操作:检验,触发器,约束性,索引。
一个数据模型表在EA中表现为一个类表,创建方法和其他类型的表一样。
创建一个表格什么是表?关系模型数据库中,最基础的模型结构就是“表”。
一个表代表了具有相同结构的一系列记录。
UML数据模型配置文件中的表表现为一个衍型类,这就是说,一个带着衍型的类元素作用于它之上。
一个表的图标表示在图表的右上方。
创建一个表通过以下步骤创建一个表:1、选择一个表;2、选择工具条选项中的更多工具|扩展|数据模型菜单;3、点击元素列中的表格元素,然后点击表。
一个表格就展示在表上了;4、如果类:表n属性对话框没有显示,双击表来显示它;5、在名称一栏,键入一个合适的名称,根据需要键入其他的属性。
6、点击OK按钮。
设置表格属性一旦你创建了一个表,你可以设置它的属性。
1、主界面:File——文件Edit——编辑Object——对象View——查看Proc——过程(处理)Quick——快速Options——选项Window——窗口Help——帮助2、File——文件New——新建Open——打开Save——保存Save As——另存为、Close——关闭Import——输入Export——出口Print——打印Print Setup——打印设置Run——运行Exit——退出Undo——撤销Cut——剪切Copy——复制Paste——粘贴Paste Special——选择性粘贴Delete——删除Find——查找Replace——替换Next——下一个Insert Text File——插入文本文件4、Object——对象New Object——新对象Fetch From DB——从数据库中获取···Store to DB——储存在数据库中···Copy Object——复制对象Name——命名Delete——删除Freeze Output——冻结结果Print——打印View Options——查看选项Sample——样本Generate Series——生成序列Show——展示Graph——图表Empty Group(Edit Series)——空集Series Statistics——序列统计Group Statistics——集合统计Estimate Equation——估计方程Estimate VAR——估计VAR6、Options——选项General Options——常规选项Graphics defaults——默认图像Database Registry——数据库注册表后续的会陆续上传··。
EA⼯具简明使⽤说明⼿册EA⼯具的使⽤说明⼿册EA Enterprise Architect的简称,该⼯具是优秀建模与设计⼯具之⼀。
基于uml2.3标准实现。
以优秀团队为基础的建模环境中,包含完整的的开发周期,为业务建模、系统⼯程、企业架构、需求设计管理、软件设计、代码⽣成、测试提供⾼性能的可视化⼯具,该⼯具具有从思维导图,到业务需求,软件设计、直⾄部署完成的跟踪能⼒。
因ea是基于uml2.3标准,Uml语⾔是⼀种说明性语⾔,定义了⼀下领域的标注和语义:⽤户交互或⽤例模型表述系统和⽤户之间的界定和交互。
在某些⽅⾯对应与⼀个需求模型。
状态或动态模型状态图表描述随着时间变化,类所呈现的状态和条件。
活动图则描述系统即将执⾏的⼯作流程交互或通信模型描述系统中的对象彼此之间如何进⾏交互已完成⼯作逻辑或类模型描述构成系统的类和对象物理组件模型描述构成系统的软件(有时也包含硬件)物理部署模型描述物理架构和物理架构中组件的部署了解每⼀种模型图代表的含义,刻意更好的帮助你理解ea⼯具中各个部分的模型图的含义,可以通过其他⽅式获得更多具体uml相关的知识。
EA⼯具可以作为⼀个团队的沟通的⼯具,EA提供了软件开发周期所有部分,从需求、业务、数据、编码、测试等所有部分。
使⽤ea⼯具,可以为每个不同类型的⽤户创建不同权限的账户,进⾏相应部分的操作,⽅便不在同⼀个地⽅的开发团队之间项⽬内容的交流,该功能需要管理员权限(需要管理员密码)。
项⽬创建:点击界⾯中的“create new project”按钮或是⽂件菜单下的“new project”输⼊项⽬名称,在弹出的菜单中右边选区,选择所需要创建的部分,例如usercase 或testing,也可以同时选择所有内容。
点击确定后如图:按照模板创建了⼀个模板,在相应模块添加相应对象,例如:usercase 中项⽬中primary use cases 是图表中的⼀种,图表选择器可以通过右击model ,选择add-- newdiagram 选项调出图表创建的选择项,如图所⽰:选择不同的图表可以使⽤不同的组件进⾏描述。
淮阴工学院毕业设计(论文)外文资料翻译系(院):计算机工程学院专业:计算机1062姓名:李楠学号:1061301201外文出处:Asphyre增强版帮助文档(用外文写)the help of Asphyre eXtreme附件: 1.外文资料翻译译文;2.外文原文。
注:请将该封面与附件装订成册。
附件1:外文资料翻译译文Asphyre增强版帮助文档关于Asphyre 加强版Asphyre加强版是创造电脑游戏和交互式程序的一个Delphi VCL组件的框架。
其组件包括以下类别:广泛的 2 D 支持:简单的几何图形例如线、长方形、圆等等;图行变换 (旋转, 裁剪, 拉伸及其他变换) 和多种混合效果;容易对目标图像进行渲染并把它们当做来源图像显示到电脑屏幕上;动态纹理支持: 无论是2 D或3D模型中都能快速更改纹理目录并加以应用;使用多纹理的先进多通道效果;通过字体工具对已渲染的字体文本进行显示。
文本有多种风格(阴影效果,浮雕效果), 可以拉伸也可以包含本文标签;强大的可拉伸的粒子引擎可以显示爆炸, 透镜和其他的效果。
图形用户接口支持 + WYSIWYG 编者:完全可订制的控制;容易使用和加入Asphyre 应用;支持半透明和多幅图画重叠效果;通过使用透明度通道的4角梯度渐变使用户界面更加友好;标签, 编辑框, 列表框,按钮以及其他的控制应用;带有常用图形用户接口组件的类集合。
局部 3D支持:载入和显示静态模型;通过增加高阶层点阵式类来提供一个完全的数学单元;本地公告技术支持爆炸,烟和其他的视觉 3D立体效果;可将原始事物以简单形式显示,好像它在 2D 中–比如测定体积的爆炸, 树和而且其他效果;高清晰的摄相机类;多种光源和材质的支持;通过简单的几个调用就能设置立方体材质和环境映像;用深度缓冲器渲染目标;本地多种材质支持。
用精确的时间表现现实的时间:尽可能快速显示, 程序 (比如移动的物体) 以恒定速度运行;通过限制渲染速度提高系统资源利用率–仅使用一小部分处理器的运算时间, 就能将渲染效果发挥到极致;延迟和帧频的计算。
OFSAA Data Model Document Generation GuideCreating Data Dictionary for OFSAA or OFSDF and Download Specifications for OFSAA Staging from erwinRelease 8.1.xAug 2021OFSAA Data Model Document Generation GuideCopyright © 2021 Oracle and/or its affiliates. All rights reserved.This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing.If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable:U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S.Gove rnment end users are “commercial computer software” pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government.This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group. This software or hardware and documentation may provide access to or information about content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as set forth in an applicable agreement between you and Oracle.For information on third party licenses, click here.Document ControlTable of Contents1Introduction to Data Model Document Generation (5)2Background on erwin (6)2.1OFSAA Data Models in erwin (6)2.2Impact of erwin use on the Data Model Documentation (6)2.3Purpose of this Guide (6)2.4Data Dictionary (7)2.5Download Specifications (7)2.6Report Generation Process (9)2.6.1Generate a Report by Creating a New Template (9)2.6.2Generate a Report by Using an Existing Template (14)I NTRODUCTION TO D ATA M ODEL D OCUMENT G ENERATIONOFSAA D ATA M ODELS IN ERWIN1Introduction to Data Model Document Generation This is a technical guide on how to generate the data dictionary documentation for Oracle FinancialServices Analytical Applications (OFSAA) and Oracle Financial Services Data Foundation (OFSDF). Theprocess of generating the download specifications for OFSAA Staging is also explained. Both theseactivities are performed in erwin.OFSAA D ATA M ODELS IN ERWIN2Background on erwinOFSAA Data Models are present in Erwin. Erwin also helps in the creation of data model documentation.Topics:∙OFSAA Data Models in erwin∙Impact of erwin use on the Data Model Documentation∙Purpose of this Guide∙Data Dictionary∙Download Specifications∙Report Generation Process2.1OFSAA Data Models in erwinSince OFSAA version 5, the data model has been defined and delivered as an Erwin file. erwin is a datamodeling tool or environment on which, OFSAA currently depends. It is used to define all data modelartifacts, both Logical and Physical data models, which are used by the OFSAA applications, as well as theOracle Financial Services Data Foundation.2.2Impact of erwin use on the Data Model DocumentationIn the prior versions of OFSAA, the data model was documented in PDF form, and shipped separatelyfrom the actual application artifacts. Starting from OFSAA 5, this has changed. The primary store of alldata model related documentation will be the erwin data model file. The reasons for this are as follows: ∙erwin permits complete definition of model-related documentation within the model itself. In other words, the model is now ‘self-documenting’.∙In many cases, clients typically perform several customizations to the model. This causes any fixed model documentation to progressively become outdated or inaccurate, as additional fields or tablesare added to the data model for client-specific needs.∙All OFSAA applications share a common physical data model, which is also shipped as part of the OFSDF. As clients may license independent OFSAA applications or OFSDF at different points intime, erwin permits these models to be merged in a controlled manner to account for site-specificchanges as well as release-specific changes from Oracle.Model documentation can then be generated for the combined, updated model, and therefore stays up-to-date with both the latest internal (client-specific) and external (product- driven) changes.2.3Purpose of this GuideThis guide explains the process of generating two important documentation artifacts from within erwin.D ATA D ICTIONARY2.4Data DictionaryThe data dictionary is a detailed listing of all tables/columns constituting a specific OFSAA application.Today, the erwin file containing the OFSAA Data Models provides the following information relevant to thecreation of a data dictionary:∙Subject Areas in each part of the data modelA subject area is a specific grouping/organization of the data model content. It is a high-levelcategorization scheme that shows which application module or business analysis areas are servedwithin the model. The tables and columns defined during the design process are grouped into thesecategories for easier navigation as well as comprehension of the model.∙Table/Entity definitions▪Detailed definitions of all tables▪Detailed, column level dictionary information including column specification, datatypes, as well as several User Defined Properties (UDPs) that provide additional metadata added during thedesign process to categorize a specific data model object.∙Data Model diagrams▪Associated with each data model (either OFSAA or OFSDF) is a collection of data modeldiagrams (Entity Relationship diagrams). These are usually specific to a subject area, andprovide a visual representation of the key entities, their relationships and keys.2.5Download SpecificationsAs indicated earlier, the OFSAA Data Model is a common data model supporting multiple OFSAAapplications. The organization of the data model is split into 3 distinct areas.D OWNLOAD S PECIFICATIONSFigure 1: OFSAA Data Model Organization∙Staging Area: This schema is the common data sourcing layer across all OFSAA applications, and also the OFSDF.∙Processing Area: This refers to application-specific schemas that are exclusive to each OFSAA application, and provide storage/structures for intermediate outputs and application-specificconfiguration and setup data.∙Results Area: This refers to the collection of star schemas with conformed dimensions that support BI/reporting from aggregated outputs from the processing area.The use of the common sourcing layer means that a single table in the staging area can serve multiple and different analytical applications/processing engines within the OFSAA architecture.Therefore, it is necessary to know how specific applications map to specific staging tables/columns, and what subset of the complete unified staging data model is actually used by each application.The download specification is a supplemental document to the data dictionary that provides this listing. For each staging table/column, it provides key information such as definition, datatype, and so on. Additionally, it maps each column in a specific staging table to the OFSAA applications/components that use this column, and also indicates whether this column is mandatory or optional.This provides implementers with a scoping documentation for data sourcing that specifies the data requirements applicable to a particular solution, for which the sourcing scripts need to be developed.This is done by means of specialized metadata within erwin called User Defined Properties (UDPs), whichare additional tags that a data model designer can attach to any data model object in erwin. For additionaldetails on UDPs please refer to the erwin Data Modeler documentation.2.6Report Generation ProcessTo generate specific documentat described earlier, use erwin Model Reporting Capabilities, which allowsData Modelers to produce customized reports of various Data Model artifacts.erwin allows the generation of model-documentation in various levels of detail, and various formats likeHTML, Text, PDF, and so on.The generation process involves installing erwin reporting templates for the Data Dictionary andDownload Specification, and executing these templates, with customization of the outputs as required.2.6.1Generate a Report by Creating a New TemplateThis section provides the procedure to generate a report from the erwin Application by designing a newtemplate. For illustration, generation of the PMG Report is mentioned.To generate the PMG Report using the erwin Application, follow these steps:1. Open the erwin Application.2. Select the Tools Menu and select Report Designer.The erwin Report Designer Window is displayed.Figure 2: Select Report Designer in the erwin Application3. In the erwin Report Designer Window, select the File Menu, and select New Report.The Report Editor Window is displayed.Figure 3: Select New Report in the erwin Report Designer Window4. In the Report Editor Window, do the following:a.In the Name Field, enter a name for the Report.b.In the Report Type option, select Logical/Physical.c.In the Report Design Tab, in the Select Report Subject section, expand the Model Tree andselect Entity/Table. The corresponding fields are listed in the Select Report Fields Section.d.For the PMG Report Type, in the Select Report Fields Section, select the following fields:−In the Properties Sub-tree, which consists of the table related fields, select the Comments, Name, and Physical Name Fields.−In the Attribute/Column Sub-tree, expand Properties and select the Domain Parent, Comments, Name, Null Option, Physical Data Type, and Physical Name Fields.−In the Attribute/Column Sub-tree, expand Key Type and select the Is FK and Is PK Fields.Figure 4: Report Editor Windowe.After selecting all the required fields, click OK.5. The Report is created and listed in the Report Explorer Section. To generate the selected fields in aCSV file format, select the created Report and then select icon.Figure 5: Report Generation Process6. The processing begins and in an Excel file, the Report is generated in the CSV format.Figure 6: Sample PMG Report7. Save the generated file in the default Excel file extension format (.xlsx).8. Save the generated new Report as a template. To save the generated new Report as a template,follow these steps:a.After selecting all the required fields and before exporting the Report to the CSV file format, inthe erwin Report Designer Window, select the Report and select the icon.Figure 7: Select Save Solutionb.The Save As Dialog opens. In the File name Field, enter a name for the Report file. The fileextension in the Save as type needs to be erwin Report Solution Files(*erps). To save theReport as a Solution (or template), click Save.Figure 8: Save the templateTo generate any type of Report, follow the same procedure. Select the required fields in the Select Report Fields section based on the Report type.2.6.2Generate a Report by Using an Existing TemplateThis section provides the procedure to generate a report from the erwin Application by using an existingreport. For illustration, generation of the OIDF_DL-Spec is mentioned.To generate the DL Specifications Report using the erwin Application, follow these steps:1. Open the erwin Application.2. Select the Tools Menu and select Report Designer.The erwin Report Designer Window is displayed.Figure 9: Select Report Designer in the erwin Application3. To open a designed Report, in the erwin Report Designer Window, select the File Menu, and selectOpen solution.Figure 10: Select Open Solution in the erwin Report Designer Window4. In the Open Dialog, navigate to the location containing Reports. Select the required Report, which isin the .erps file format and click Open.Figure 11: Select an existing Report5. The selected Report is listed in the Report Explorer Section. You can select any new fields or removeany existing fields in the Report Editor Window. To make the changes, right-click on the Report and select Properties.The Report Editor Window is displayed.Figure 12: Select the Report Properties6. In the Report Design Tab, in the Select Report Subject Section, expand the Model Tree and selectEntity/Table. The corresponding fields of the Report are listed in the Select Report Fields Section.You can select any new fields or remove any existing fields. After making required modifications, click OK.Figure 13: Select or remove the fields7. To generate the selected fields in a CSV file format, select the Report and then select icon.Figure 14: Export Report8. The processing begins and in an Excel file, the Report is generated in the CSV format.Figure 15: Sample DL Specifications Report9. You can save the generated file in the default Excel file extension format (.xlsx).OFSAA S UPPORTOFSAA SupportRaise a Service Request (SR) in My Oracle Support (MOS) for queries related to OFSAA Applications.S END U S Y OUR C OMMENTSSend Us Your CommentsOracle welcomes your comments and suggestions on the quality and usefulness of this publication.Your input is an important part of the information used for revision.∙Did you find any errors?∙Is the information clearly presented?∙Do you need more information? If so, where?∙Are the examples correct? Do you need more examples?∙What features did you like most about this manual?If you find any errors or have any other suggestions for improvement, indicate the title and partnumber of the documentation along with the chapter/section/page number (if available) and contactthe Oracle Support.Before sending us your comments, you might like to ensure that you have the latest version of thedocument wherein any of your concerns have already been addressed. You can access My OracleSupport site that has all the revised/recently released documents.。
EA工具简介要点附录1 EA工具简介EA是一套UML的开发工具,对于EA而言,每个UML的项目,EA都会使用一个项目文件来保存,其文件扩展名为“EAP”。
EA的项目文件,是一个Access数据文件,在EAP 中,除了保存了所有的UML图形外,另外也保存了所有的UML元素,一级权限控制所需要的User相关信息。
1.EA操作界面简介EA的开发环境如图附录1-1所示:图附录1-1:EA的开发环境在上图的开发环境中,EA可以分为四大区块:●功能菜单区所有EA的功能,都可以通过功能菜单区中所列出来的功能菜单来达成;●工具区在EA的工具区中提供了所有UML2.0的所有UML元素。
工具区与你所增的UML图形是息息相关的,举例来说,当新增加了一张UML的类图后,工具区将会出现在类图的工具列上,让你可以轻易地使用类图中能使用的所有UML元素。
●工作区工作区是绘制UML图形的主要区域。
在EA中并不限制同一个工作区可以放置多少UML图形。
可以看到在工作区最下方有一个个的标签(Tab),因此,你可以在同一个工作区内放置多个UML图形,每个图形会有一个标签。
然而,在处理时,一次只能够处理一个标签(Tab)。
●项目属性区在EA右方的区块中,是属于项目中各个UML元素属性的区域。
通常,在这个区域中会有7个不通的窗口。
第一个窗口为“项目浏览窗口”(Project Browser)。
在这个窗口中,最主要是呈现你所打开的这个EA项目中,所有UML元素的摆放位置。
第二个窗口为“资源视图”(Resource View)。
在这个窗口中,主要是呈现你可以使用的EA资源。
第三个窗口时备注(Notes),这个备注窗口中记录了所有UML 元素中的备注记录。
第四个窗口时“属性”(Properties)窗口,这个窗口也是针对单一UML元素的属性设置的窗口。
第五个窗口时“模型视图”窗口,在这个窗口中,可以自行定义自己的模型视图。
第六个窗口时针对于突刺那个缩放的“移动及缩放”(Pan&Zoom)窗口,这个窗口可以让操作人员快速地操作图形。
##Enterprise Architect帮助文档帮助文档翻译目录简介 (2)从此处开始 (2)使用EA (2)用EA建模 (2)模型管理 (2)项目管理 (2)编码工程 (2)调试和配置文档 (2)数据建模 (2)一张数据表格 (2)创建一个表格 (3)设置表格属性 (4)创建字段 (9)创建Oracle包 (11)主键 (11)外键 (12)存储过程 (17)视图 (21)索引,触发器和检查约束 (23)生成DDL (25)把一个包生成DDL (25)进程的数据类型转换 (26)包的数据类型转换 (27)数据库管理系统数据类型 (28)从开放式数据库中导入数据库模式 (29)转化MDA (33)XML技术 (33)生成文档 (33)EA扩展 (33)UML字典 (33)项目角色和EA (33)授权管理 (33)术语 (33)简介从此处开始使用EA用EA建模模型管理项目管理编码工程调试和配置文档数据建模一张数据表格下面展示了一个数据模型表,上面有三个表格,相互之间用主外键连接起来。
上面同样展示了主外键的操作。
你也可以添加其他操作:检验,触发器,约束性,索引。
一个数据模型表在EA中表现为一个类表,创建方法和其他类型的表一样。
创建一个表格什么是表关系模型数据库中,最基础的模型结构就是“表”。
一个表代表了具有相同结构的一系列记录。
UML数据模型配置文件中的表表现为一个衍型类,这就是说,一个带着衍型的类元素作用于它之上。
一个表的图标表示在图表的右上方。
创建一个表通过以下步骤创建一个表:1、选择一个表;2、选择工具条选项中的更多工具|扩展|数据模型菜单;3、点击元素列中的表格元素,然后点击表。
一个表格就展示在表上了;4、如果类:表n属性对话框没有显示,双击表来显示它;5、在名称一栏,键入一个合适的名称,根据需要键入其他的属性。
6、点击OK按钮。
设置表格属性一旦你创建了一个表,你可以设置它的属性。
下面描述的大部分表的属性都可以在属性对话框里设置,一小部分通过键入标签值来实现,比如说,设置表所属人的值,或者,为了和MySQL兼容,需要设置表选项。
LyteX中文帮助文档作者:Jay Jaeluh@, ollydbg ollydbg@ zoho zoho@June19,2009Draft Version:1.0目录1什么是LyT E X5 2安装LyT E X53开始使用LyT E X53.1撰写英文文档 (5)3.2撰写简体中文文档 (6)3.2.1创建空白中文文档 (7)3.3导入和导出中文tex文档 (7)3.3.1导入中文tex文档 (7)3.3.2导出中文tex文档 (8)4定制中文模版94.1中文宏包设置 (9)4.2字体设置 (9)4.3行距和段落设置 (10)4.4浮动图像,表格,目录等的标题中文显示 (11)4.5浮动项的设置 (12)4.6文档类设置 (13)4.7给模版添加环境(Environment Modules) (14)4.8页面设置 (16)4.9目录和编号 (17)4.10文献 (18)4.11数学宏包的使用 (19)4.12输出pdf的设置 (20)4.13列表符号的设置 (21)4.14使用分支 (22)5Lyx内容排版225.1快捷键 (22)5.2文本样式排版 (23)5.3文章段落排版 (24)5.4浮动项目排版 (25)5.4.1插入算法 (25)5.4.2插入浮动图片 (27)5.4.3插入浮动表格 (28)5.4.3.1长表格 (28)5.4.3.2长表格的位置调整 (28)5.5Box(盒子) (29)5.5.1自定义box (29)5.5.1.1设置边框的厚度 (29)5.5.1.2设置边框到内容的距离 (30)5.5.1.3设置阴影大小 (30)5.5.1.4设置背景颜色 (31)5.5.2迷你页面(MiniPage) (31)5.5.3文本框(Parbox) (32)5.6有颜色的Box (33)5.7自定义有颜色的box (34)6数学公式排版376.1使用数学工具条 (37)6.2插入行内或者显示公式 (37)6.3公式编号 (38)6.3.1内置公式编号样式 (39)6.3.2按章节或段落对公式进行编号 (40)6.3.3对子公式编号 (40)6.3.4自定义公式编号样式 (42)6.4数学公式的对齐方式 (43)6.4.1AMS align环境 (43)6.4.2AMS alignat()环境 (44)6.4.3AMS falign环境 (44)6.4.4AMS gather环境 (45)6.4.5ANS Multiline环境 (45)6.4.6Eqarray环境 (46)6.5数学长公式输入 (46)6.6长公式中的括号 (46)6.7数学特殊字符的输入 (47)6.8数学脚本的使用 (47)7其他排版技巧483开始使用LYT E X 1什么是LyT E XLyteX是一个结合了L Y X而且配置了其他组件的一个移动Tex套件,最新版本的LyteX由以下组件构成:•L A T E X1:L A T E X(LATEX)是一种基于T E X的排版系统,由美国计算机学家LeslieLamport在20世纪80年代初期开发,利用这种格式,即使使用者没有排版和程序设计的知识也可以充分发挥由T E X所提供的强大功能,能在几天,甚至几小时内生成很多具有书籍质量的印刷品。
易语言大漠中文对照帮助English Answer:Getting Started with Yi Language and the Desert Chinese Translation Aid.Yi Language.Yi Language is a powerful and versatile Chinese programming language that is specifically designed for beginners. It is known for its simplicity, ease of use, and extensive documentation. Yi Language is widely used in China for various applications such as desktop software development, web development, mobile app development, and games.Desert Chinese Translation Aid.Desert Chinese Translation Aid is a valuable tool that can assist you in translating Yi Language code intostandard Chinese. This tool is particularly useful for those who are not proficient in Chinese or who want to verify the accuracy of their translations.Using the Desert Chinese Translation Aid.To use the Desert Chinese Translation Aid, simply copy and paste your Yi Language code into the input field. The tool will automatically translate your code into standard Chinese. You can then review the translated code and make any necessary changes.Example.Here is an example of how to use the Desert Chinese Translation Aid:Yi Language Code:变量 a 为 10。
密级:内部公开文档编号:版本号:V1.0EA使用说明书广东恒峰信息技术有限公司--------------------------------------------------------------------- 广东恒峰信息技术有限公司对本文件资料享受著作权及其它专属权利,未经书面许可,不得将该等文件资料(其全部或任何部分)披露予任何第三方,或进行修改后使用。
文件更改摘要:目录1 简介 ------------------------------------------------------------------------------------------------------------ 41.1丰富系统设计 -------------------------------------------------------------------------------------- 41.2快速、稳定、高性能 ----------------------------------------------------------------------------- 41.3端到端跟踪 ----------------------------------------------------------------------------------------- 41.4在UML2.0上构建-------------------------------------------------------------------------------- 41.5主要特性--------------------------------------------------------------------------------------------- 51.6产品新增特性 -------------------------------------------------------------------------------------- 52 EA使用说明 ------------------------------------------------------------------------------------------------- 72.1创建工程--------------------------------------------------------------------------------------------- 72.2一些基本的通用设置 ----------------------------------------------------------------------------- 82.2.1 设置默认代码环境----------------------------------------------------------------------- 82.2.2 设置默认数据库-------------------------------------------------------------------------- 92.3Class模型 ------------------------------------------------------------------------------------------- 92.3.1 创建“Class”模型-------------------------------------------------------------------------- 92.4为模型中创建的“Class”对象使用别名------------------------------------------------------ 112.5代码的生成 ---------------------------------------------------------------------------------------- 132.5.1 把整个包的设计类生成C#格式代码 --------------------------------------------- 132.5.2 单个自动生成C#代码---------------------------------------------------------------- 142.6设计模型与生成的代码同步------------------------------------------------------------------- 152.7数据库模型,需求模型,组件,部署 ------------------------------------------------------ 162.7.1 建立数据库表;------------------------------------------------------------------------- 162.7.2 建立数据表 ------------------------------------------------------------------------------- 172.8文档的生成 ---------------------------------------------------------------------------------------- 192.8.1 Text文档的生成------------------------------------------------------------------------- 192.8.2 Html文档的生成------------------------------------------------------------------------ 192.9将包导入成XML形式-------------------------------------------------------------------------- 202.10画图的线的弯曲,自动布局,改变线的连接点的方法 ----------------------------- 212.10.1 活动图及时序图的绘制 --------------------------------------------------------------- 212.10.1.1 活动图的绘制 -------------------------------------------------------------------------- 212.10.2 时序图的绘制 ---------------------------------------------------------------------------- 242.10.3 如何添加注释 ---------------------------------------------------------------------------- 262.10.4 设置图中的字体样式------------------------------------------------------------------- 272.10.5 将一个图的元素重新复制一份新的到其它图 ----------------------------------- 273 区分UML 类图中的几种关系 ------------------------------------------------------------------------ 283.1关联关系(association) -------------------------------------------------------------------------- 283.2聚合关系(aggregation) ------------------------------------------------------------------------- 283.3合成关系(composition) ------------------------------------------------------------------------ 293.4依赖关系(dependency):---------------------------------------------------------------------- 293.5小结-------------------------------------------------------------------------------------------------- 291 简介生命周期软件设计方案——Enterprise Architect是以目标为导向的软件系统。
##Enterprise Architect帮助文档EA7.0帮助文档翻译目录简介 (3)从此处开始 (3)使用EA (3)用EA建模 (3)模型管理 (3)项目管理 (3)编码工程 (3)调试和配置文档 (3)数据建模 (3)一张数据表格 (3)创建一个表格 (4)设置表格属性 (5)创建字段 (10)创建Oracle包 (12)主键 (12)外键 (13)存储过程 (18)视图 (22)索引,触发器和检查约束 (24)生成DDL (26)把一个包生成DDL (26)进程的数据类型转换 (27)包的数据类型转换 (28)数据库管理系统数据类型 (29)从开放式数据库中导入数据库模式 (30)转化MDA (34)XML技术 (34)生成文档 (34)EA扩展 (34)UML字典 (34)项目角色和EA (34)授权管理 (34)术语 (34)简介从此处开始使用EA用EA建模模型管理项目管理编码工程调试和配置文档数据建模一张数据表格下面展示了一个数据模型表,上面有三个表格,相互之间用主外键连接起来。
上面同样展示了主外键的操作。
你也可以添加其他操作:检验,触发器,约束性,索引。
一个数据模型表在EA中表现为一个类表,创建方法和其他类型的表一样。
创建一个表格什么是表?关系模型数据库中,最基础的模型结构就是“表”。
一个表代表了具有相同结构的一系列记录。
UML数据模型配置文件中的表表现为一个衍型类,这就是说,一个带着衍型的类元素作用于它之上。
一个表的图标表示在图表的右上方。
创建一个表通过以下步骤创建一个表:1、选择一个表;2、选择工具条选项中的更多工具|扩展|数据模型菜单;3、点击元素列中的表格元素,然后点击表。
一个表格就展示在表上了;4、如果类:表n属性对话框没有显示,双击表来显示它;5、在名称一栏,键入一个合适的名称,根据需要键入其他的属性。
6、点击OK按钮。
设置表格属性一旦你创建了一个表,你可以设置它的属性。
下面描述的大部分表的属性都可以在属性对话框里设置,一小部分通过键入标签值来实现,比如说,设置表所属人的值,或者,为了和MySQL兼容,需要设置表选项。
选择数据库类型最重要的是正确的为一个表设置它的数据库类型。
这定义了一系列的数据类型,可以用于定义字段,也可以声明生成的是哪一种的DDL语言。
EA支持如下的数据库:DB2;Informix;Ingres;InterBase;MS Access;MySQL;Oracle 9i和10i;PostgreSQL;SQL Server2000和2005;SQL Server7;Sybase Adaptive Server Anywhere(Sybase ASA);Sybase Adaptive Server Enterprise (Sybase ASE)。
通过以下步骤设置数据库类型:1、双击表中的数据元素,来打开属性对话框;2、选择常规选项;3、在数据库一栏,点击下拉框,选择数据库类型;4、点击OK按钮保存设置。
点击表细节,你可以进入字段对话框和操作对话框,或者你可以选择生产这个表的DDL。
设置表所属通过以下步骤来定义表的拥有人:1、选择视图|标签值按钮来选择或者是按键[Ctrl]+[Shift]+[6]。
标签值对话框出现。
2、在属性窗口上点击表视图上的表格。
则会显示所选表格的标签值。
3、点击新标签按钮。
标签值对话框如下图所示:4、在标签值一栏,键入标签名字拥有人。
在值一栏,键入拥有人。
5、点击OK按钮来确定操作,生产的DDL脚本语言里包含表格的拥有人。
设置MySQL选项在mySQL中,为了使用外键,你必须设置表的类型是InnoDB。
通过以下步骤来设置:1、选择视图|标签值菜单选项或者按下[Ctrl]+[Shift]+[6]。
显示标签值设置对话框。
2、点击表中的表格,或者点击项目浏览器中的表格。
标签值窗口会显示选择的表格;3、点击新建标签按钮。
标签值对话框如下图所示:4、在标签一栏,输入标签名Type。
在值一栏,输入InnoDB;5、点击OK按钮确定操作,生成的SQL脚本中的DDL包含表格类型。
6、为了兼容最新版本的MySQL,额外的表格选择可以以同样的方法添加:设置Oracle表格属性对于Oracle 9i或者10i,你可以使用表格标签值来设置表格属性。
步骤如下:1、选择视图|标签值菜单选项或者按下[Ctrl]+[Shift]+[6]。
显示标签值设置对话框。
2、点击表中的表格,或者点击项目浏览器中的表格。
标签值窗口会显示选择的表格;3、点击新建标签按钮。
4、定义如下图所示的标签值:5、点击OK按钮来保存标签值。
所有的Oracle表的有效属性如下图所示。
说明:索引器和约束可以用同样的方法添加。
醒目索引或者约束,把属性作为标签值来添加。
对于一个给定的表的属性可以表示在标签值的窗口里,如下面典型的标签值说明的那样:创建字段什么是字段?在一个关系表中,最基本的组织元素就是字段。
每个数据的个别项目输入到一个关系数据库中,表示为一个表中的一行的一个字段。
字段在UML数据建模中表现为一个衍型的属性,这就是说,是一个有着字段衍型的属性。
创建字段说明:对于MySQL,在创建一个字段之前,先添加ENUM和SET数据类型。
选择设置|数据库数据类型菜单,然后,在数据库数据类型对话框中,在产品名称一栏选择MySQL。
添加数据类型ENUM和SET。
通过以下步骤来创建字段:1、右击表中的表格,打开选项菜单,选择属性菜单按钮。
2、显示一个表属性对话框;3、打开之后,键入名称和数据类型,然后点击保存按钮。
贴士:如果数据类型的下拉列是空的,那就意味着你没有为这个表选择一个目标数据库。
关闭字段对话框,从新打开表属性对话框,设置一个数据库类型,然后再继续。
为了防止这种情况的发生,请设置默认数据库类型。
4、下面各选项是可选的。
主键;非空;唯一性;缺省值;开放性;别名;注释。
说明:一些数据类型,比如说Oracle的NUMBER类型,需要一个精确度和一个范围。
这些在需要设置的地方就可以设置。
例如,对于Oracle:说明:Oracle的VARCHAR2(15CHAR)和VARCHAR2(15BYTE)数据类型可以通过添加标签LengthType来实现,LengthType的值设为CHAR或者是BYTE。
说明:对于MySQL的ENUM和SET数据类型,在缺省域里面,键入一个以逗号为分割的列,(‘one’,‘two’,‘three’)。
改变一个字段的顺序1、在字段对话框中,高亮显示一个字段的名字;2、点击可以上移或者下移字段。
创建Oracle包通过以下步骤来创建一个Oracle包:1、打开项目浏览器中的项目,创建一个EA包(如果需要的话,创建一个类表);2、添加一个类元素到这个包中,或者这个表中。
3、打开元素的属性对话框,在衍型一栏中,设置值为包4、对于程序包规格说明,创建一个操作,这个操作的名字定义为规格说明,不设任何返回类型。
5、打开规格说明操作的属性对话框,在行为制表里,在起始代码栏里输入整个包的规格说明书。
6、对于包的主力,创建一个名为Body的操作,无返回值。
7、打开Body操作的属性对话框,在行为制表里,输入整个包的起始代码。
主键什么是主键?键用来访问表,分为主键和外键。
一个主键是唯一的,它定义一个表格中的一条记录。
外键可以通过其他相关表格中的主键来访问数据。
定义一个简单主键如果一个主键包含一个单一的字段,就比较好定义。
1、右键点击表中的表格,显示选项菜单。
选择元素特征|属性菜单选项;2、在属性对话框,选择想设为主键的字段。
3、选择主键复选框,然后点击保存按钮。
一个衍型操作可以自动的被创建。
这个操作室用来定义表的主键的。
如果想去除主键标示,值删除这个操作即可。
定义一个复杂的主键。
通常来说,一个主键包含多于一个字段。
例如,一个字段LastName在一个表中,可能不是唯一的,所以,一个主键需要从LastName,FirstName和DataOfBirth字段中定义。
通过以下的步骤设置复杂的主键:1、继续设置单一主键的步骤,你选择哪个字段是没有影响的。
2、右键点击表上的表格来打开选项菜单。
选择选择元素特征|属性菜单选项;3、选择主键操作(他的名字以PK_开头),然后点击字段制表;4、增加一个主键的字段,点击新建按钮,从字段名字中选择一个字段,然后点击保存按钮。
5、如果需要的话,选择小手按钮可以改变主键字段的顺序。
定义一个主键名字模板如下步骤可以定义一个主键模板:1、选择工具|选项|源码工程|编码编辑器菜单选项,选项的DDL页面显示如下:2、点击DDL名字模板按钮。
DDL名字模板对话框如下图显示:3、编辑或者是替换主键名字模板;4、点击保存按钮。
SQL中没有聚集的主键通过如下步骤定义一个主键为没有聚集的主键。
1、右键点击表中的表格,打开菜单选项;2、选择元素特征|操作子菜单,显示表操作对话框;3、高亮显示主键操作,然后选择扩展属性;4、选择SQL Server Non Clustered Primay Key复选框。
5、选择保存关闭按钮。
外键什么是外键?两种可以访问表的键:主键和外键。
一个主键是唯一的,它定义一个表格中的一条记录。
外键可以通过其他相关表格中的主键来访问数据。
外键在EA的UML模型中是一个衍型操作。
一个外间是一个字段(属性)的集合,同时,有一些操作意义(他们加强与另一个表的主键直接的关系)。
一个外键模型化为一个衍型操作;这个操作参数成为一个键中的包含的字段。
说明:用定义外键的方法,通过另一个表格的主键来访问它并不是必须的。
外键是一些数据库管理系统的特征,提供额外的,比如说完整参照性,来进行检查,这样可以以免一个表格的主键值存在于其他表的外键中。
创建一个外键1、在表中或者是项目浏览器中打开一个需求表;2、在EA的UML工具箱的类里选择一个相关的连接;3、点击原表格至目标表格,画出之间的连接;4、使用连接选项菜单来显示外键对话框;5、如果需要的话,编辑外键的缺省名称;6、高亮包含外键关系的字段;7、点击保存按钮来自动生成外键操作;你生成了外键,下面的例子显示了它在一个表中是怎样显示的:复合外键选择正确的字段,点击保存按钮。
外键字段通过数据类型存储,并且通过数据类型来进行组合。
如果需要的话,你可以通过上下两个小手的图标改变键字段的顺序。
这个表创造了复合外键,下面这个表表现了怎样在一个表中显示。
贴士:如果你定义一个MySQL数据库,想使用外键,你必须先设置表类型才可以。
定义一个外键的名字模板1、选择工具|选项|源码工程|代码编辑器菜单.DDL页面如下图所示:2、点击DDL名字模板。
DDL名字模板对话框打开,显示了缺省状态下的名字模板。
3、在外键名字模板一栏编辑或者替代名字模板。