DataBase in Sequence Diagrams?

Posted on 2005-05-06
Last Modified: 2013-11-12

Hi All,

I am developing a sequence diagram for my program..
My GUI Window is supposed to save some info in the DB..
How can I show the Database in the sequence diagram?
Can I draw an arrow from the the GUIObject to a new object called DataBase?

Question by:SEstudent
    LVL 9

    Accepted Solution


    What I would recommend is that you wrap the behaviour of the database in a Wrapper Object. This means to have a class who handles all the accesses to the database.

    In this way the behaviour of the class will be pretty clear and in your sequence diagram, instead of calling the save method to the database, you can call the save method to this wrapper object.

    Hope this helps


    Author Comment


    Thanx tinchos..
    That helped :]

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
    "Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now