Previous Topic: Action BlocksNext Topic: ENTITY Trigger Modules


Referential Integrity Trigger Modules

When two entity types participate in a relationship, each is said to reference the other. This reference is implemented by storing the primary key for one entity type as a field in the record for the other entity type. Referential Integrity (RI) rules verify that a reference exists when a relationship pairing is required, and that the reference is removed when the record to which it points is removed. Depending on rules in the Data Model, this may mean setting the reference (foreign key) to null or deleting a record that is left without a required reference.

RI triggers are generated modules that enforce referencing rules defined by the Data Model. RI triggers are generated and maintained for each model separately, and they are based on the complete Data Model.

When you display generation component objects in the Code option, the RI triggers appear first in the list of objects. You must generate the RI triggers before installing any source language code. Failure to generate the RI trigger modules first can result in unresolved references when linking load modules.

When the option Process modules marked for Compatibility is selected, the RI triggers are generated only once but compiled twice, once with compiler option NODLL and again with the compiler option DLL.

Generation of RI triggers results in the following types of modules: