PowerDesigner® v16.5 数据类型
发布日期:2021-06-29 19:36:55 浏览次数:2 分类:技术文章

本文共 2268 字,大约阅读时间需要 7 分钟。

> > >

域属性

要查看或编辑域的属性,请双击其图表符号或浏览器或列表条目。此处列出的属性表选项卡和字段是默认情况下可用的属性表和选项卡,在您或管理员定制接口之前。

常规选项卡包含以下属性:

属性

描述

Name/Code/Comment

识别对象。该名称应该清楚地向非技术用户传达对象的用途,而用于生成代码或脚本的代码可以缩写,通常不应包含空格。您可以选择添加注释以提供有关该对象的更多详细信息。默认情况下,通过应用模型选项中指定的命名约定,从名称生成代码。要分离名称代码同步,请单击以释放“ 代码”字段右侧的=按钮

Stereotype

将对象的语义扩展到核心UML定义之外。您可以直接在此字段中输入原型,或者通过在扩展文件中指定原型,将原型添加到列表中。

Data type

与域对应的数据的形式; 数字,字母数字,布尔或其他

Multiplicity

使用此域的值属性的允许数量范围的指定可能成立。例如,使用多个属性时,域的多重性很有用。多样性是数据类型的一部分,多样性和数据类型可能来自域。您可以选择:
  • 0..1 - 零或1

  • 0 .. * - 零到无限

  • 1..1 - 正好一个

  • 1 .. * - 一个无限

  • * - 无限制

Keywords

提供一种通过标记松散地分组对象的方式。要输入多个关键字,请用逗号分隔它们。

详情选项卡

Detail选项卡包含一个Persistent groupbox,其目的是在从面向对象的模型生成CDM或PDM期间改进代码和数据类型的生成,其中包含以下属性:

属性

描述

Persistent

Groupbox用于有效生成CDM或PDM持久性模型。将模型定义为持久性(请参阅)。

Data Type

指定用于生成持久模型(CDM或PDM)的持久数据类型。持久数据类型是从默认的PowerDesigner概念数据类型定义的

Length

持久数据类型的最大字符数。

Precision

对于可以取小数点的持续数据类型值,小数点后的位数。

以下选项卡也可用:

  • 标准检查 - 包含控制域允许值的检查(请参阅

  • 附加检查 - 允许您指定域的附加约束(未由标准检查参数定义)。

  • 规则 - 列出与域关联的业务规则(请参阅核心功能指南>使用PowerDesigner建模>对象>业务规则)。

下表列出了可用数据类型的详细信息:

数字数据类型

Data Type

Content

Length

Mandatory Precision

Integer

32-bit integer

Short Integer

16-bit integer

Long Integer

32-bit integer

Byte

256 values

Number

Numbers with a fixed decimal point

Fixed

Decimal

Numbers with a fixed decimal point

Fixed

Float

32-bit floating point numbers

Fixed

Short Float

Less than 32-bit point decimal number

Long Float

64-bit floating point numbers

Money

Numbers with a fixed decimal point

Fixed

Serial

Automatically incremented numbers

Fixed

Boolean

Two opposing values (true/false; yes/no; 1/0)

字符数据类型

Data Type

Content

Length

Characters

Character strings

Fixed

Variable Characters

Character strings

Maximum

Long Characters

Character strings

Maximum

Long Var Characters

Character strings

Maximum

Text

Character strings

Maximum

Multibyte

Multibyte character strings

Fixed

Variable Multibyte

Multibyte character strings

Maximum

时间数据类型

Data Type

Content

Date

Day, month, year

Time

Hour, minute, and second

Date & Time

Date and time

Timestamp

System date and time

其他数据类型

Data Type

Content

Length

Binary

Binary strings

Maximum

Long Binary

Binary strings

Maximum

Bitmap

Images in bitmap format (BMP)

Maximum

Image

Images

Maximum

OLE

OLE links

Maximum

Other

User-defined data type

Undefined

Not yet defined data type

转载地址:https://daqiang.blog.csdn.net/article/details/80252896 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Apache Commons FileUpload 文件上传
下一篇:AngularJS 服务(Service)

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2024年05月02日 01时44分35秒