Getting Started with InfoSphere Data Architect
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
64 <strong>Getting</strong> started <strong>with</strong> <strong>InfoSphere</strong> <strong>Data</strong> <strong>Architect</strong><br />
In the Properties view, it is possible to choose the type of relationship, participation, and<br />
cardinality.<br />
4. Explore the other tabs in the Properties view to see what other information you can<br />
define:<br />
a. Open the Type tab. Make sure that the following options are defined:<br />
- Relationship Type: Non-identifying<br />
- Existence: Optional<br />
- Cardinality: One or more<br />
b. Use the Referential Integrity tab to specify what should happen to the child<br />
entity when you update the primary key of the parent entity of the relationship.<br />
Make sure that the Delete option is set to CASCADE in the Parent Action<br />
group.<br />
The Referential Integrity tab should look like the image in Figure 3.12:<br />
Figure 3.12 – Specifying a CASCADE action on the child GRADE entity<br />
Table 3.1 specifies what will happen when you specify each action. You draft these<br />
requirements in the logical data model, and when you deploy the physical data model,<br />
these actions will occur when the referenced data objects are updated.<br />
Action<br />
Definition<br />
NONE<br />
RESTRICT<br />
CASCADE<br />
SET_NULL<br />
No action occurs. The delete or update action is rolled back.<br />
The parent entity is not deleted, nor its key updated, because<br />
there are dependent entities that rely on this entity.<br />
If the modified parent entity has a foreign-key relationship to the<br />
other entity in the relationship, the foreign-key reference to the<br />
dependent entity is updated. If the entity is deleted, and the<br />
delete action is set to CASCADE, the dependent entity is<br />
removed from all relationships (in other words, deleted).<br />
If the modified parent entity has a foreign-key relationship to the<br />
other entity in the relationship, each nullable foreign-key<br />
attribute of each dependent entity is set to NULL. This option<br />
can only be specified if all foreign-key attributes allow NULL