Previous Topic: Set Default Null Options, Data Types, Styles, and Object OwnersNext Topic: Specify History Options for Model Objects and Events


Set Default Referential Integrity Rules

Use the grid in the RI Defaults tab of the Model Editor to specify default referential integrity rules for relationships in your model.

Follow these steps:

  1. Click Model, Model Properties.

    The Model Editor opens.

    Model Editor RI Defaults Tab--Action Column and Relationship Type Columns

  2. Click the RI Defaults tab and work with the following options:
    Model Editor_RI Defaults Tab_Rebind RI Settings button Rebind referential integrity settings on all relationships

    Applies the new default settings to any existing relationship in the model. If you change the default settings in an existing model, use this button to implement the new settings in the model for all existing relationships. If the new settings are saved, but not rebound, the defaults affect the new relationships only.

    Model Editor_RI Defaults Tab_Reset RI Default Settings button Reset all Referential Integrity default settings to their original values

    Clears your settings and returns to the system defaults.

    Automatically Create RI Triggers

    Specifies whether you want to create triggers for the referential integrity defaults automatically.

    Action

    Lists a SQL action in each of its rows. For each SQL action, select the default RI action for each of the following relationship type columns:

    Identifying

    Lets you specify the RI setting for each of the SQL actions in the Action column. This setting applies to all identifying relationships in the model.

    Non-identifying, Nulls Allowed

    Lets you specify the RI setting for each of the SQL actions in the Action column. This setting applies to all non-identifying relationships in the model for which nulls are allowed.

    Non-identifying, No Nulls

    Lets you specify the RI setting for each SQL action in the Action column. The setting applies to all non-identifying relationships in the model for which nulls are not allowed.

    Subtype

    Lets you specify the RI setting for each of the SQL actions in the Action column. This setting applies to all subtype relationships in the model.

    Note: Some target databases, such as Oracle, use a different terminology for RI trigger actions. Use the RI setting appropriate for your target database. For NONE and NO ACTION, use of NONE means no restrictions (no RI trigger is created). NO ACTION is identical to RESTRICT. In other words, the actions are allowed only if the conditions are met.

  3. Click Close.

    Default referential integrity rules are set and the Model Editor closes.

More information:

Referential Integrity to Enforce Business Rules