Use of UML Diagrams
Use of UML Diagrams
UML diagrams. But how are these diagrams useful for the database design.
Let us first discuss the behavioural/dynamic diagrams of UML. The use Case Diagrams ar e used to
gather infor mation dur ing the requirement analysis phase. Li kewise the sequence diagram is used to
visualise the execution of the use cases, whi le the collabora tion di agram defines the sequence of
messages. The state Chart Diagram and acti vit y diagram are used to graphically represent some of
the states and acti vities of a system.
Thus, these diagrams are ver y useful for providing the behavioural or functional i nfor mat ion about
databases. Thus, they may be useful for transaction and processing design. For example, a use case
diagram of a student of an on -line Uni versity may be:
This use case diagram is indicating that the student and staff may have to login fi rst, thus, the
implementation of such a system would require a table for user -name and password and f or taking
admission a student may need to have a vali d user name and password. It also indicates t hat the
process of admission will be certified by a staff member, who will allow the student to t ake
admission after due checking. Thus, UML behavioral diagrams may be useful to define
processing/transactions. They also provide some infor mation about entities and attributes. However,
the UML diagram is cl osely a ssociated with database structure design in the class diagram. Let us
discuss these diagrams in more detail in respect of database desi gn and i mplementation.