使用 visio 2007,如何表示触发器和存储过程?
我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
所以我找到了这个
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?
这个问题的 UML 部分:
的单个类
表示为具有构造型
<<存储过程>>
。
每个存储过程都被视为操作。
资料来源:SparkSystems 关于存储过程主题:
http://www.sparxsystems .com/enterprise_architect_user_guide/10/database_engineering/storedprocedureindividualclass.html
UML part of this Question:
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
由于没有像 Oracle 这样的包,我将创建一个包含存储过程列表的类。我会写下它们的所有参数。我知道它会占用图表上的大量空间,但 UML 允许不显示模型中的所有内容。因此,您只能看到不带参数的过程列表(尽管它们在模型中!)、带有类型或完整列表。 Sparx EA 允许:
现在,如何显示 Web 函数调用存储过程?再说一次,还有更多的可能性。
全部如下所示。我会选择 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:
Now, how to show that a web function calls stored procedures? Again, there are more possibilities.
All is shown below. I would go for 1 and 3 because of better maintainability.