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 > EXPORTING THE DATA MODEL The process of exporting an ER/Studio diagram to a new Describe Project follows these basic steps: 1 Create the Describe Project. 2 Check the preference for whether a view should be created; if it is yes, create the view. 3 Loop through the mapping structure. 4 Convert the relationships. 5 Mark the Describe project with the ER/Studio Diagram id. This sequence of steps occur when exporting a new ER/Studio diagram to an existing Describe project: 1 Get the system. 2 Loop through the mapping structure • If the node does not have an associated symbol, create one. • If the node’s name is modified, get its associated symbol and update the symbol. • If the node has new attributes, add attributes in Describe. • If the node has modified attributes, update the attributes in Describe. The ER/Studio - Describe Integration Advanced Setup Editor lets you set various options for exporting ER/Studio diagrams to Describe projects. The ER/Studio - Describe Integration Preferences Editor lets you set general preferences for exporting ER/Studio diagrams to Describe projects. Before you begin exporting from ER/Studio to Describe, you should review the following topics: • Standard Datatype Lengths in ER/Studio • Export UML Types • ER/Studio - Describe Mapping See Also Export to Describe Project Using the Wizard Export a Data Model to Describe Using the Advanced Method Set Describe Collaboration Preferences for Exporting Export UML Types The following table illustrates the various database types and the UML types to which they map: Database Type UML Type BIGINT long BINARY byte BIT bool CHAR string COUNTER int DATE string DATETIME string DATETIMN string EMBARCADERO TECHNOLOGIES > ER/STUDIO® 8.0.3 USER GUIDE 268

USING ER/STUDIO > EXPORTING THE DATA MODEL Database Type UML Type DECIMAL float DECIMALN float DOUBLE PRECISION double FLOAT float FLOATN float IMAGE/LONG BINARY byte INTEGER int INTN int LONG VARCHAR string MLSLABEL/VARCHAR string MONEY float MONEYN float NCHAR string NTEXT/LONG NVARCHAR string NUMERIC float NUMERICN float NVARCHAR string PICTURE byte REAL/SMALLFLOAT float ROWID/VARCHAR string SERIAL/INTEGER int SMALLDATETIME string SMALLINT short SMALLMONEY Float TEXT string TIME/DATETIME string TIMESTAMP/DATE string TINYINT short UNIQUEID int VARBINARY/BLOB byte VARCHAR string VARIANT char ER/Studio - Describe Mapping The ER/Studio - Describe Integration allows direct mapping of ER/Studio logical model entities to Describe class symbols. In general terms, this lets you generate a a class model from an ER/Studio data 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. EMBARCADERO TECHNOLOGIES > ER/STUDIO® 8.0.3 USER GUIDE 269

USING <strong>ER</strong>/STUDIO > EXPORTING THE DATA MODEL<br />

The process of exporting an <strong>ER</strong>/<strong>Studio</strong> diagram to a new Describe Project follows these basic steps:<br />

1 Create the Describe Project.<br />

2 Check the preference for whether a view should be created; if it is yes, create the view.<br />

3 Loop through the mapping structure.<br />

4 Convert the relationships.<br />

5 Mark the Describe project with the <strong>ER</strong>/<strong>Studio</strong> Diagram id.<br />

This sequence of steps occur when exporting a new <strong>ER</strong>/<strong>Studio</strong> diagram to an existing Describe project:<br />

1 Get the system.<br />

2 Loop through the mapping structure<br />

• If the node does not have an associated symbol, create one.<br />

• If the node’s name is modified, get its associated symbol and update the symbol.<br />

• If the node has new attributes, add attributes in Describe.<br />

• If the node has modified attributes, update the attributes in Describe.<br />

The <strong>ER</strong>/<strong>Studio</strong> - Describe Integration Advanced Setup Editor lets you set various options for exporting <strong>ER</strong>/<strong>Studio</strong><br />

diagrams to Describe projects. The <strong>ER</strong>/<strong>Studio</strong> - Describe Integration Preferences Editor lets you set general<br />

preferences for exporting <strong>ER</strong>/<strong>Studio</strong> diagrams to Describe projects.<br />

Before you begin exporting from <strong>ER</strong>/<strong>Studio</strong> to Describe, you should review the following topics:<br />

• Standard Datatype Lengths in <strong>ER</strong>/<strong>Studio</strong><br />

• Export UML Types<br />

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

See Also<br />

Export to Describe Project Using the Wizard<br />

Export a Data Model to Describe Using the Advanced Method<br />

Set Describe Collaboration Preferences for Exporting<br />

Export UML Types<br />

The following table illustrates the various database types and the UML types to which they map:<br />

Database Type UML Type<br />

BIGINT long<br />

BINARY byte<br />

BIT bool<br />

CHAR string<br />

COUNT<strong>ER</strong> int<br />

DATE string<br />

DATETIME string<br />

DATETIMN string<br />

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

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

Saved successfully!

Ooh no, something went wrong!