代码之家  ›  专栏  ›  技术社区  ›  sergiogx

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

  •  2
  • sergiogx  · 技术社区  · 16 年前

    现在,我只使用一个内部带有metod的类来表示一个存储过程,比如

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

    但这会占用大量空间,有什么建议吗?

    谢谢

    3 回复  |  直到 16 年前
        1
  •  0
  •   sergiogx    16 年前
        2
  •  0
  •   Arthur Zennig    9 年前

    这是问题的一部分:
    UML representation of Stored Procedure

    代表为 刻板印象

    <<Stored Procedure>>

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

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

        3
  •  0
  •   Slávek Rydval    9 年前

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

    No parameters are shown

    enter image description here

    enter image description here

    enter image description here

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

    1. 通常显示web函数和存储过程之间有一种用法。
    2. 准备序列图。

    所有内容如下所示。因为更好的可维护性,我会选择1和3。

    enter image description here

    enter image description here