The methods documented in this chapter operate on objects of the IdentityRelationship class. These objects represent instances of identity relationships. The IdentityRelationship class provides additional functionality needed when accessing the repository database. It combines a set of existing APIs into methods that provide ease of use for the map developer.
The source code for the methods in the IdentityRelationship class is provided and can be used as is in the IBM WebSphere InterChange Server Express environment, or can be customized to fit other environments.
Table 105 lists the methods of the IdentityRelationship
class.
Method | Description | Page |
---|---|---|
addMyChildren() | Adds the specified child instances to a parent/child relationship for an identity relationship. | addMyChildren() |
deleteMyChildren() | Removes the specified child instances to a parent/child relationship for an identity relationship belonging to the specified parent. | deleteMyChildren() |
foreignKeyLookup() | Performs a lookup in a foreign relationship table based on the foreign key of the source business object, failing to find a relationship instance if the foreign key does not exist in the foreign relationship table. | foreignKeyLookup() |
foreignKeyXref() | Performs a lookup in the relationship table in the relationship database based on the foreign key of the source business object, adding a new relationship instance in the foreign relationship table if the foreign key does not exist. | foreignKeyXref() |
maintainChildVerb() | Sets the child business object verb based on the map execution context and the verb of the parent business object. | maintainChildVerb() |
maintainCompositeRelationship() | Maintains a composite identity relationship from within the parent map. | maintainCompositeRelationship() |
maintainSimpleIdentityRelationship() | Maintains a simple identity relationship from within either a parent or child map. | maintainSimpleIdentityRelationship() |
updateMyChildren() | Adds and deletes child instances in a specified parent/child relationship of an identity relationship as necessary. | updateMyChildren() |