使用 visio 2007,如何表示触发器和存储过程?

发布于 2024-08-13 09:40:46 字数 225 浏览 5 评论 0原文

我有一个 Web 服务类图,我希望它显示 Web 方法调用的存储过程。

现在,我只是使用一个内部带有方法的类来表示存储过程,类似的东西,

storeStuff(in this, in that, out field1, out field2)

但这会消耗大量空间,有什么建议吗?

或者有没有更好的方法来做到这一点?

谢谢

I have a web service class diagram, I want it to show what stored procedures a web method calls.

for now, I just use a class with a metod inside to represent a stored procedure, something like

storeStuff(in this, in that, out field1, out field2)

but this consumes tons of space, any tips?

or are there any better ways to do this?

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

つ低調成傷 2024-08-20 09:40:46

所以我找到了这个
http://www.agiledata.org/essays/umlDataModelingProfile.html#Figure3Keys
还有这个
http://www.agiledata.org/essays/umlDataModelingProfile.html#Figure5

visio 做得很好,但你无法指定结果集是什么。

有人有更好的吗?

so I found this
http://www.agiledata.org/essays/umlDataModelingProfile.html#Figure3Keys
and this
http://www.agiledata.org/essays/umlDataModelingProfile.html#Figure5

wich visio does well, but you can't specify what the resultset is.

anyone got anything better?

家住魔仙堡 2024-08-20 09:40:46

这个问题的 UML 部分:
UML 表示存储过程

单个类

表示为具有构造型<<存储过程>>


每个存储过程都被视为操作。

资料来源:SparkSystems 关于存储过程主题:
http://www.sparxsystems .com/enterprise_architect_user_guide/10/database_engineering/storedprocedureindividualclass.html

UML part of this Question:

UML representation of Stored Procedure

Represented as a Single Class with Stereotype

<<Stored Procedure>>

.

Each Stored Procedure are viewed as operations.


Source: SparkSystems on Stored Procedure subject:
http://www.sparxsystems.com/enterprise_architect_user_guide/10/database_engineering/storedprocedureindividualclass.html

旧情别恋 2024-08-20 09:40:46

由于没有像 Oracle 这样的包,我将创建一个包含存储过程列表的类。我会写下它们的所有参数。我知道它会占用图表上的大量空间,但 UML 允许不显示模型中的所有内容。因此,您只能看到不带参数的过程列表(尽管它们在模型中!)、带有类型或完整列表。 Sparx EA 允许:

不显示任何参数

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

现在,如何显示 Web 函数调用存储过程?再说一次,还有更多的可能性。

  1. 一般表明web函数和存储过程之间有一个用法。
  2. 将具体函数映射到具体存储过程。
  3. 准备顺序图。

全部如下所示。我会选择 1 和 3,因为可维护性更好。

输入图片此处描述

在此处输入图像描述

Having no packages as for example Oracle has, I would create a class that has a list of stored procedures. I’d write down all their parameters. I know that it can consume a lot of space on diagrams but UML allows not show all that you have in the model. So you can see just list of procedures without parameters (although they are in model!), with types or as full list. Sparx EA allows it:

No parameters are shown

enter image description here

enter image description here

enter image description here

Now, how to show that a web function calls stored procedures? Again, there are more possibilities.

  1. Generally show that there is a usage between web function and stored procedures.
  2. Map concrete function to concrete stored procedure(s).
  3. Prepare sequence diagram.

All is shown below. I would go for 1 and 3 because of better maintainability.

enter image description here

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文