Data Modeling

Return to Introduction  Previous page  Next page

You perform database modeling and database design in Enterprise Architect using the UML Data Modeling Profile. This profile provides easy-to-use and easy-to-understand extensions to the UML standard, mapping the database concepts of tables and relationships onto the UML concepts of classes and associations. These extensions also enable you to model database keys, triggers, constraints, RI and other relational database features.

Typical data modeling tasks you might perform are listed at the end of this topic.

Tables and Columns

The basic modeling structure of a relational database is the table, which represents a set of records, or rows, with the same structure. The basic organizational element of a relational database is the column. Every individual item of data entered into a relational database is represented by a value in a column of a row in a table.

The UML Data Modeling Profile represents:

·Tables as stereotyped classes; that is, class elements with a stereotype of table
·Columns as stereotyped attributes; that is, attributes with a stereotype of column.

Enterprise Architect can generate simple DDL scripts to create the tables in your model.

Database Keys

Two types of key are used to access tables: Primary Keys and Foreign Keys. A Primary Key uniquely identifies a record in a table, while a Foreign Key accesses data in some other related table via its Primary Key.

A Primary Key consists of one or more columns; a simple Primary Key (single column) is defined as the attribute of a stereotyped operation. A complex Primary Key (several columns) is defined as the stereotyped operation itself.

A Foreign Key is a collection of columns (attributes) that together have some operational meaning (they enforce a relationship to a Primary Key in another table). Foreign keys are represented in Enterprise Architect as operations with the stereotype FK; the operation parameters become the columns involved in the key.

Supported Databases

Enterprise Architect supports import of database schema from these databases

·DB2
·Firebird/InterBase
·Informix
·Ingres
·MS Access
·MS SQL Server
·MySQL
·Oracle 9i and 10g
·PostgreSQL
·Sybase Adaptive Server Anywhere (Sybase ASA)
·Sybase Adaptive Server Enterprise (Sybase ASE).

Note: Firebird 1.5 database tables can be modeled and generated as InterBase tables. Firebird tables can be imported but are treated as InterBase tables.

Typical Tasks

Typical tasks you can perform when modeling or designing databases include:

Note: The UML Data Modeling Profile is not currently a ratified standard; however it has wide industry support and is a useful method for bridging the gap between the UML and conventional relational database modeling.