ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation ER/Studio - Embarcadero Technologies Product Documentation

docs.embarcadero.com
from docs.embarcadero.com More from this publisher
24.12.2012 Views

USING ER/STUDIO > CREATING AND WORKING WITH DATA MODELS Database Type Width SERIAL/INTEGER -1 SMALLDATETIME -1 SMALLINT 5 SMALLMONEY 7 TEXT 18 TIME/DATETIME -1 TIMESTAMP/DATE -1 TINYINT 3 UNIQUEID 16 VARBINARY/BLOB 18 VARCHAR 18 VARIANT 20 Import Database Types The following table illustrates the various UML types and the database types to which they map: UML Type Database Type long BIGINT byte BINARY bool BIT string CHAR int COUNTER string DATE string DATETIME string DATETIMN float DECIMAL float DECIMALN double DOUBLE PRECISION float FLOAT float FLOATN byte IMAGE/LONG BINARY int INTEGER int INTN string LONG VARCHAR string MLSLABEL/VARCHAR float MONEY float MONEYN string NCHAR EMBARCADERO TECHNOLOGIES > ER/STUDIO® 8.0.3 USER GUIDE 48

USING ER/STUDIO > CREATING AND WORKING WITH DATA MODELS UML Type Database Type string NTEXT/LONG NVARCHAR float NUMERIC float NUMERICN string NVARCHAR byte PICTURE float REAL/SMALLFLOAT string ROWID/VARCHAR int SERIAL/INTEGER string SMALLDATETIME short SMALLINT Float SMALLMONEY string TEXT string TIME/DATETIME string TIMESTAMP/DATE short TINYINT int UNIQUEID byte VARBINARY/BLOB string VARCHAR char VARIANT Describe - ER/Studio Mapping The ER/Studio - Describe integration allows direct mapping of Describe class symbols to ER/Studio logical model entities. In general terms, this lets you generate an ER/Studio data model from a class model. The purpose of the integration is to give a database modeler using ER/Studio the ability to create a class diagram from a logical database model. The integration process maps Describe classes in a specific format. Before importing a class diagram into ER/Studio you should understand how ER/Studio maps to Describe. Review the following topics to ensure success: • Mapping Datatypes Between Describe and ER/Studio • Mapping Relationships Between Describe and ER/Studio • Optional vs. Mandatory Relationship (Existence) Mapping • Cardinality Mapping EMBARCADERO TECHNOLOGIES > ER/STUDIO® 8.0.3 USER GUIDE 49

USING <strong>ER</strong>/STUDIO > CREATING AND WORKING WITH DATA MODELS<br />

UML Type Database Type<br />

string NTEXT/LONG<br />

NVARCHAR<br />

float NUM<strong>ER</strong>IC<br />

float NUM<strong>ER</strong>ICN<br />

string NVARCHAR<br />

byte PICTURE<br />

float REAL/SMALLFLOAT<br />

string ROWID/VARCHAR<br />

int S<strong>ER</strong>IAL/INTEG<strong>ER</strong><br />

string SMALLDATETIME<br />

short SMALLINT<br />

Float SMALLMONEY<br />

string TEXT<br />

string TIME/DATETIME<br />

string TIMESTAMP/DATE<br />

short TINYINT<br />

int UNIQUEID<br />

byte VARBINARY/BLOB<br />

string VARCHAR<br />

char VARIANT<br />

Describe - <strong>ER</strong>/<strong>Studio</strong> Mapping<br />

The <strong>ER</strong>/<strong>Studio</strong> - Describe integration allows direct mapping of Describe class symbols to <strong>ER</strong>/<strong>Studio</strong> logical model<br />

entities. In general terms, this lets you generate an <strong>ER</strong>/<strong>Studio</strong> data model from a class model. The purpose of the<br />

integration is to give a database modeler using <strong>ER</strong>/<strong>Studio</strong> the ability to create a class diagram from a logical database<br />

model.<br />

The integration process maps Describe classes in a specific format. Before importing a class diagram into <strong>ER</strong>/<strong>Studio</strong><br />

you should understand how <strong>ER</strong>/<strong>Studio</strong> maps to Describe. Review the following topics to ensure success:<br />

• Mapping Datatypes Between Describe and <strong>ER</strong>/<strong>Studio</strong><br />

• Mapping Relationships Between Describe and <strong>ER</strong>/<strong>Studio</strong><br />

• Optional vs. Mandatory Relationship (Existence) Mapping<br />

• Cardinality Mapping<br />

EMBARCAD<strong>ER</strong>O TECHNOLOGIES > <strong>ER</strong>/STUDIO® 8.0.3 US<strong>ER</strong> GUIDE 49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!