24.12.2012 Views

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

USING <strong>ER</strong>/STUDIO > DEVELOPING THE PHYSICAL MODEL<br />

Using the designated mapping, when generating a physical model <strong>ER</strong>/<strong>Studio</strong> knows if, for example, the logical CHAR<br />

datatype should be converted into a string, C, or remain unchanged. From the datatype mappings <strong>ER</strong>/<strong>Studio</strong> also<br />

knows the length and precision of the physical datatype. <strong>ER</strong>/<strong>Studio</strong> supports many different database platforms and<br />

provides standard/default datatype mappings for each platform. For example, using the default mappings for Oracle<br />

10g and 11g, <strong>ER</strong>/<strong>Studio</strong> maps FLOAT to BINARY_FLOAT, whereas for Oracle 9i a FLOAT attribute is mapped by<br />

default to DOUBLE PRECISION. You can customize the default datatype mappings to create new mappings that<br />

better suit your purposes.<br />

Use the Datatype Mapping Editor to customize the datatype mapping as you move your logical models to physical<br />

models.<br />

1 Select Tools > Datatype Mapping Editor.<br />

2 Display the mapping for the target platform, by choosing a mapping from the Select Mapping list.<br />

3 Click New, enter a name for the mapping, and then click OK.<br />

4 Make the changes as required, and then click OK.<br />

Notes<br />

• In the Datatype Mapping Editor, you can change the Physical Mapping values for every logical datatype.<br />

• In the Datatype Mapping Editor, you can change the Is Default, Default Length, and Default Precision values only<br />

if you haven’t defined a length, precision, or default for the datatype in the logical model.<br />

• Rename a datatype by clicking Rename in the Datatype Mapping Editor.<br />

• Customized datatype mappings are saved as .xml files in the ...\<strong>ER</strong><strong>Studio</strong>_X.X\DatatypeMapping<br />

directory.<br />

• In the Generate Physical Model Wizard, the list of datatype mappings that you can choose from is limited to the<br />

system mapping for the physical platform and any customized mappings that were based on this system<br />

mapping.<br />

• Mappings are stored in …\<strong>Embarcadero</strong>\<strong>ER</strong><strong>Studio</strong>_X.X\DatatypeMapping.<br />

Developing the Physical Model<br />

In order to create a database, ensure you have the client software installed and are using the correct connection<br />

strings. For more information, see Connecting to Database Sources and Targets.<br />

If you do not have the client connection software for the platform for which you want to create a database, you can<br />

generate a physical model from the logical model (See Generating a Physical Data Model), and then change the<br />

database platform to the target database. You can then access the Database Wizard to create the DDL required to<br />

create the database.<br />

Generally, a logical data model represents business information and defines business rules, and a physical data<br />

model represents the physical implementation of the model in a database. The physical design addresses the<br />

technical implementation of a data model, and shows how the data is stored in the database. For example, you can<br />

specify the datatype of each column in the table, and determine how tables will be stored in the database.<br />

To design the most effective data model possible, focus on the logical design before developing the physical design. A<br />

physical data modeler should have the technical-know-how to create data models from existing databases and to tune<br />

the data models with referential integrity, alternate keys, indexes and how to match indexes to SQL code. In systems<br />

development, the goal is to create an effective database application that can support some or all of your enterprise.<br />

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

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

Saved successfully!

Ooh no, something went wrong!