When a relationship exists between two entity types, each entity references the other entity through a primary key. Each entity stores the other entity's primary key in the foreign key field in each entity's record.
Referential Integrity (RI) rules verify that when pairing is required, a reference exists, and that the reference is removed when the record to which it points is removed. Rules in the Data Model require setting the reference to null or deleting a record that that has no reference.
CA Gen implements RI triggers as generated action blocks that enforce the referencing rules the Data Model defines when an entity is deleted or a relationship is disassociated.
CA Gen generates and maintains RI triggers for each model separately, based on the complete Data Model and Data Structure for a model.
Generate and install RI triggers before application system construction. This avoids unresolved references when linking application load modules, unless dynamic RI linking is used.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|