Book a Demo

Author Topic: Table Class  (Read 2967 times)

Olaf

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Table Class
« on: November 26, 2002, 12:10:02 pm »
does anyone have a clue why setting a column“s primary key attribute leads to that column showing up in the operations section of that table class?? ???

CJ

  • EA User
  • **
  • Posts: 288
  • Karma: +0/-0
    • View Profile
Re: Table Class
« Reply #1 on: November 27, 2002, 04:35:54 am »
G'day,

I hope that the more experienced folk in this forum will address your question.  In the meantime, I'll take a crack at it.

For table-stereotyped classes, the operations are anything and everything that isn't an attribute (table column).  Primary key constraints, foreign key constraints, indexes, checks, etc. are all considered operations ... me thinks it's a UML standard?
Cheers and best regards.

jaimeglz

  • EA User
  • **
  • Posts: 164
  • Karma: +0/-0
    • View Profile
Re: Table Class
« Reply #2 on: November 28, 2002, 05:06:38 pm »
Hi Olaf,

According to SQL standards, adding a PK contraint to a table should automatically create an index for the chosen column or columns. An index is a behavioural feature, which plays the same role as an operation; for instance, when you invoke the index (which happens automatically when you search for a primary key datum), you fire-off a sequence of events, which is part the behavioural aspect of your table.

In UML, behavioural features of classifiers (such as tables) are grouped into the operations dept., and this is why SQL constraints, such as PKs, appear in the operations section of the classes' box.

Hope I have helped to clarify the issue.

Jaime Gonzalez