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

时间:2009-12-02 21:45:08

标签: sql class stored-procedures uml diagram

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

现在,我只使用一个带有metod的类来表示存储过程,类似于

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

但这消耗了大量的空间,任何提示?

还是有更好的方法吗?

感谢

3 个答案:

答案 0 :(得分:0)

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

visio表现不错,但你无法指定结果集是什么。

谁有更好的东西?

答案 1 :(得分:0)

UML部分问题:
UML representation of Stored Procedure

表示为具有刻板印象的单一类

<<Stored Procedure>>


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

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

答案 2 :(得分:0)

没有像Oracle那样的软件包,我会创建一个包含存储过程列表的类。我写下他们所有的参数。我知道它可以在图表上占用大量空间,但UML不允许显示模型中的所有内容。所以你只能看到没有参数的程序列表(虽然它们在模型中!),类型或完整列表。 Sparx EA允许它:

No parameters are shown

enter image description here

enter image description here

enter image description here

现在,如何显示web函数调用存储过程?同样,还有更多的可能性。

  1. 一般表明Web功能和存储过程之间存在使用。
  2. 将具体功能映射到具体的存储过程。
  3. 准备序列图。
  4. 所有内容如下所示。因为更好的可维护性,我会选择1和3。

    enter image description here

    enter image description here