public static void maintainSimpleIdentityRelationship( String relDefName, String particpntDefName, BusObj appSpecificBusObj, BusObj genericBusObj, CxExecutionContext map_ctx)
None.
The maintainSimpleIdentityRelationship() method maintains the relationship table associated with the particpntDefName participant of the relDefName simple identity relationship. This method maintains a relationship whose participant uses unique keys from multiple business objects at the same level.
The maintainSimpleIdentityRelationship() method performs the following validations on arguments that are passed in:
If any of these validations fails, maintainSimpleIdentityRelationship() throws the RelationshipRuntimeException exception.
Once the arguments are validated, the action that maintainSimpleIdentityRelationship() takes depends on the following information:
The maintainSimpleIdentityRelationship() method handles all of the basic adding and deleting of participants and relationship instances for each combination of calling context and verb. For more information on the actions that maintainSimpleIdentityRelationship() takes, see Accessing identity relationship tables. Table 95 through Table 99 provide the actions for each of the calling contexts.
You can call this method in either of the following cases:
Use maintainSimpleIdentityRelationship() in conjunction with the maintainChildVerb() method to maintain a simple identity relationship. For more information, see Defining transformation rules for a simple identity relationship.
The following example maintains the simple identity relationship between the Clarify_BusOrg and generic Customer business objects in an inbound Clarify_BusOrg-to-Customer map:
IdentityRelationship.maintainSimpleIdentityRelationship( "CustIdentity", "ClarBusOrg", ObjClarify_BusOrg, ObjCustomer, cxExecCtx);
For more examples involving maintainSimpleIdentityRelationship(), see Defining transformation rules for a simple identity relationship.