Presentation is loading. Please wait.

Presentation is loading. Please wait. 7M822 UML Profile for Databases 11 November 2010.

Similar presentations

Presentation on theme: " 7M822 UML Profile for Databases 11 November 2010."— Presentation transcript:

1 7M822 UML Profile for Databases 11 November 2010

2 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 7M822 What makes a database Add Data Delete Data Change Data Lookup or search for data Organize Data

4 7M822 Key Terminology Table Column Record Field Primary Key Foreign Key Index

5 7M822 Database Example (1) NameAdresNumberCourseGrade JoranVRT 9.131464327m8227 JoranVRT 9.131464327m7018 JoranVRT 9.131464327m7116 JanVRT 9.126937317m8228 JanVRT 9.126937317m7017 Grades

6 7M822 Database Example (2) NameAdresNumber JoranVRT 9.13146432 JanVRT 9.12693731 NumberCourseGrade 1464327m8227 1464327m7018 1464327m7116 6937317m8228 6937317m7017 Student Grade

7 7M822 Types of databases Flat databases Indexed databases DBMS based databases

8 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 7M822 DBMS Flavors From relational To object oriented

10 7M822 DBMS Systems Oracle Sybase Microsoft SQL Server MySQL

11 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 7M822 UML Profiles Way to customize UML diagrams for your own needs. Stereotypes Tagged value Constraints Graphical representation

13 7M822 UML Profile Example

14 7M822 UML Profile for Database Design Rational Software Corporation For designing databases Uses tagged parameters and stereotypes Only a subset will be explained

15 7M822 Database Diagram Elements Table Column Primary key Foreign key Identifying relationship Non-identifying relationship

16 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 7M822 Example 1

18 7M822 Mapping Logical Design To Database Design Synchronization Classes > Tables Attributes > Columns Associations > Relations Normalization There are more ways to do it

19 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 7M822 Mapping Subtype Classes to Tables One table per class One table per concrete class One table per hierarchy

21 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 7M822 Example 2

23 7M822 Example 3 – Logical Diagram

24 7M822 Example 3 – Database Diagram

25 7M822 Microsoft Access Create and fill tables Execute database queries Build on the Jet Engine Visual Basic for Applications Forms and Reports IDE

26 7M822 Database Desktop Example (1)

27 7M822 Database Desktop Example (2) 0..1

Download ppt " 7M822 UML Profile for Databases 11 November 2010."

Similar presentations

Ads by Google