How to add a database to Sequence Diagram

2,313 views
Skip to first unread message

Adam Heeg

unread,
Oct 9, 2015, 10:55:33 AM10/9/15
to StarUML
Please excuse my lack of knowledge at diagraming.

I want to show call's to our databases in the sequence diagram I am creating.  Assuming this is allowed can you tell me the steps to add a database resource to my model explorer and then add it to the sequence diagram?  I am expecting it would be a lifeline, if not please add any details as to the type of interaction it would be.

Thank you,
Adam

StarUML

unread,
Oct 10, 2015, 10:45:14 AM10/10/15
to StarUML
As you know, there is no fixed way to represent database. One possible way is just simply creating a Lifeline with with "<<database>>" or "<<table>>" stereotype. Incoming messages to the lifeline could be considered as a query to the database.

But typically databases or tables are not directly represented in sequence diagram. Instead, create DAO (Data Access Object) classes and then place the lifelines representing the DAO class. (If you are adopted typical three-tiered system architecture: Presentation Tier - Business Logic Tier - Data Access Tier)

Thanks,
StarUML Team

2015년 10월 9일 금요일 오후 11시 55분 33초 UTC+9, Adam Heeg 님의 말:
Reply all
Reply to author
Forward
0 new messages