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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

• Logical Only: If selected, the entity will not be implemented as a table when generating a physical model, and<br />

will be ignored when comparing the logical model with a physical model.<br />

• Synchronize Column Rolename with Logical Rolename Available when the attribute selected is a foreign key.<br />

This option affects name modification in the entity or table editor, on-screen name editing, and name modification<br />

in the Data Model Explorer. Lets you change the role names of foreign attributes or columns to the same names<br />

as other attributes or columns in the same entity or table. Duplicates will be unified when the user ends the edit<br />

session.<br />

• Add to Primary Key?: When chosen, adds the selected attribute to the Primary Key, which is used to index the<br />

entity enabling faster data retrieval.<br />

• Edit Foreign Key Datatype: When selected for a child object, you can edit the Datatype values of the foreign<br />

key. When this option is selected, changes made to this relationship in the parent are not propagated to the child<br />

until you deselect this option. This preserves the foreign key overrides.<br />

Datatype tab<br />

• Override Bound Data: Overrides datatypes on an attribute basis (for supported types: SQL Server, Sybase, IBM<br />

DB2 for LUW, and IBM DB2 for OS/390). Used to handle any exceptions while maintaining the binding to the<br />

same domain. For example, there is a VARCHAR domain on two separate DBMS platforms. The character<br />

domain’s primary use can be on Oracle. You specified it as VARCHAR (which will be VARCHAR2 in Oracle).<br />

Using this option, you can have a DB2 model where it is implemented it as CHAR. You can customize the<br />

domain’s implementation to accommodate the specific platform, without losing the bindings between DB2<br />

columns and the domain.<br />

• Identity Properties: For numeric datatypes for which nulls are not allowed and for whose datatype supports<br />

identity properties, you can specify identity properties by selecting the Identity Column option and then specifying<br />

a seed and increment value. The seed and increment values are used to automatically generate sequential<br />

numbers for each row in the table beginning with the Seed value and incrementing by the amount specified by<br />

Increment. The default seed and increment values are one but can be changed.<br />

Default tab<br />

If a default value has not already been bound to the entity attribute (Data Dictionary > Defaults > Edit Default<br />

Definition > Binding Information), you can type a Declarative Default or select Override Bound Data and then<br />

choose another value from the Default Binding list. The declarative default will appear in the SQL produced<br />

when you select Generate Database from the physical model. If a default value attribute has been previously<br />

bound to the entity, you can override the default by selecting another default from the Default Binding list. For<br />

more information, see Working with the Data Dictionary. If the attribute selected is a primary key of the entity,<br />

you have the option to select the option to Propagate Default to Child Keys.<br />

Rule/Constraint tab<br />

Lets you select a rule binding from the Data Dictionary or manually type in a rule binding. The exact text in the<br />

declarative box gets inserted into the physical model DDL. Add, modify, or delete a constraint. Check constraints<br />

are used to ensure the validity of data in a database and to provide data integrity. For more information, see<br />

Enforcing Data Integrity Using Check Constraints. If the information is grayed out (read-only) it is because a<br />

domain is being used and the definition, datatype, rule, constraint or default is inherited from the domain.<br />

Definition tab<br />

Enter or edit a definition for the attribute. If the target database supports it, <strong>ER</strong>/<strong>Studio</strong> adds this definition as an<br />

attribute comment when generating SQL code.<br />

Notes tab<br />

The notes added here are included as part of the HTML report when you generate a report for the model. You<br />

can format the notes using standard HTML tags.<br />

Where Used tab<br />

Shows which logical and physical models and submodels implement the attribute.<br />

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

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

Saved successfully!

Ooh no, something went wrong!