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 > WORKING WITH THE DATA DICTIONARY<br />

• Name Synchronization: Completely detaches the domain name from the bound attributes/columns. This avoids<br />

inadvertent changes when the attribute or column names are set to the same as a column, creating a partial<br />

sync, but then further changed causing the attribute or column to change.<br />

• Attachment Synchronization: Keeps attachments in the domain in sync with the bound column. Any<br />

attachments added to a domain will propagate to the attributes/columns. Always Migrate always migrates new<br />

attachments on the domain to the columns. You can still add other attachments directly to the columns.<br />

Attachment Bindings tab<br />

Bind an external piece of information, or attachment to the domain. You can also remove an attachment from an<br />

object, override an attachment binding’s default value, or change the position of a bound attachment. To override<br />

the value of the attachment you have moved to the Selected Attachments grid, double-click the Value field of the<br />

target attachment. <strong>ER</strong>/<strong>Studio</strong> opens the Value Override Editor or a list depending on the attachment datatype.<br />

Attachments are created in the Attachments folder of the Data Dictionary and must be applied to the domain<br />

before they will display on this tab. For more information, see Attaching External Documents to the Data Model.<br />

Binding Information tab<br />

Select the object classes and/or specific objects to which you want to bind this attachment. You can override this<br />

setting using the Attribute or Column tab of the entity or table editor, respectively.<br />

Reusing Procedural Logic<br />

The Data Dictionary supports the following types of procedural logic and enables you to organize them by database<br />

platform:<br />

• Reusable Triggers: A special type of stored procedure that automatically executes when data modification<br />

operations such as INS<strong>ER</strong>T, UPDATE, or DELETE occur. Because triggers are customizable and fire<br />

automatically, they are often used to maintain referential integrity in a database.<br />

• Reusable Procedures: Templated procedures written in BASIC code. These procedures can be applied to any<br />

table, since they use the table’s context in the code.<br />

• Libraries: Lets you compartmentalize blocks of code used to generate SQL for Reusable Triggers and Reusable<br />

Procedures. This lets you reuse blocks of code. Reusable triggers or procedure code can call library functions.<br />

The editor that launches when creating new procedural logic is the Sax Basic editor, which is compatible with<br />

Microsoft Visual Basic.<br />

Topics covered in this section are:<br />

• Create and Edit Reusable Triggers<br />

• Create and Edit Reusable Procedures<br />

• Create and Edit Libraries<br />

Create and Edit Reusable Triggers<br />

1 Select a table.<br />

NOTE: The SQL in the procedure will be validated in context of the table selected and the database<br />

platform. If no table is selected, the SQL cannot be properly validated.<br />

2 In the Data Dictionary, expand the Reusable Procedural Logic node and then expand the Reusable Triggers<br />

node.<br />

3 Right-click the node for the appropriate database platform and then click New Trigger.<br />

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

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

Saved successfully!

Ooh no, something went wrong!