Download presentation
Presentation is loading. Please wait.
Published byJanice Peto Modified over 10 years ago
1
www.ddss.arch.tue.nl 7M822 UML Profile for Databases 11 November 2010
2
www.ddss.arch.tue.nl 7M822 Database A database is a collection of data. Databases can be stored in one or more files, or can be managed by a software system called Database Management System (DBMS)
3
www.ddss.arch.tue.nl 7M822 What makes a database Add Data Delete Data Change Data Lookup or search for data Organize Data
4
www.ddss.arch.tue.nl 7M822 Key Terminology Table Column Record Field Primary Key Foreign Key Index
5
www.ddss.arch.tue.nl 7M822 Database Example (1) NameAdresNumberCourseGrade JoranVRT 9.131464327m8227 JoranVRT 9.131464327m7018 JoranVRT 9.131464327m7116 JanVRT 9.126937317m8228 JanVRT 9.126937317m7017 Grades
6
www.ddss.arch.tue.nl 7M822 Database Example (2) NameAdresNumber JoranVRT 9.13146432 JanVRT 9.12693731 NumberCourseGrade 1464327m8227 1464327m7018 1464327m7116 6937317m8228 6937317m7017 Student Grade
7
www.ddss.arch.tue.nl 7M822 Types of databases Flat databases Indexed databases DBMS based databases
8
www.ddss.arch.tue.nl 7M822 DBMS Services Schemas Consistency checks Guarantee of no data corruption after crash Concurrent access for multiple readers and writers. Backup and recovery Authentication and access control Support for Structured Query Language (SQL)
9
www.ddss.arch.tue.nl 7M822 DBMS Flavors From relational To object oriented
10
www.ddss.arch.tue.nl 7M822 DBMS Systems Oracle Sybase Microsoft SQL Server MySQL
11
www.ddss.arch.tue.nl 7M822 Jet Database Engine Database Engine of MS-Access Contained in an *.MDB or *.ACCDB File Accessed trough ADO or DAO Allows multiuser access Enforces referential integrity checks
12
www.ddss.arch.tue.nl 7M822 UML Profiles Way to customize UML diagrams for your own needs. Stereotypes Tagged value Constraints Graphical representation
13
www.ddss.arch.tue.nl 7M822 UML Profile Example
14
www.ddss.arch.tue.nl 7M822 UML Profile for Database Design Rational Software Corporation For designing databases Uses tagged parameters and stereotypes Only a subset will be explained
15
www.ddss.arch.tue.nl 7M822 Database Diagram Elements Table Column Primary key Foreign key Identifying relationship Non-identifying relationship
16
www.ddss.arch.tue.nl 7M822 Database Diagram Elements (2) Table (stereotype >) Not used Primary key (stereotype >) Foreign key (stereotype >) Primary/Foreign key (stereotype >) Non-identifying relationship Identifying relationship
17
www.ddss.arch.tue.nl 7M822 Example 1
18
www.ddss.arch.tue.nl 7M822 Mapping Logical Design To Database Design Synchronization Classes > Tables Attributes > Columns Associations > Relations Normalization There are more ways to do it
19
www.ddss.arch.tue.nl 7M822 Mapping Classes To Tables Map persisted classes to tables Many to many associations must be broken down to one to many associations using an association table.
20
www.ddss.arch.tue.nl 7M822 Mapping Subtype Classes to Tables One table per class One table per concrete class One table per hierarchy
21
www.ddss.arch.tue.nl 7M822 Mapping Attributes to Columns Map persistent attributes Dont map calculated attributes Can use Generic Types first, later use database specific types. Generic Types: Boolean, Currency, Date, Double, Integer, Long, Single, String
22
www.ddss.arch.tue.nl 7M822 Example 2
23
www.ddss.arch.tue.nl 7M822 Example 3 – Logical Diagram
24
www.ddss.arch.tue.nl 7M822 Example 3 – Database Diagram
25
www.ddss.arch.tue.nl 7M822 Microsoft Access Create and fill tables Execute database queries Build on the Jet Engine Visual Basic for Applications Forms and Reports IDE
26
www.ddss.arch.tue.nl 7M822 Database Desktop Example (1)
27
www.ddss.arch.tue.nl 7M822 Database Desktop Example (2) 0..1
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.