摘要 |
A bi-directional relationship manager is described for setting a new reference value for managing bi-directional relationships between objects in an object model. The bi-directional relationship manager receives bi-directional relationship information indicating interrelation between objects having one or more bi-directional relationships. It creates proxy objects based on the bi-directional relationship information for selected bi-directional relationship objects having bi-directional relationships. A created proxy object receives a new reference value to be set in a selected object relating to a bi-directional relationship. It determines, using one or more of the proxy objects, a new peer value to be set in a peer object which has the bi-directional relationship with the selected object, and sets the new peer value to a proxy object created for the peer object. It may also update reference values of other related objects that are related to the selected object through one or more bi-directional relationships to reflect the change in references.
|