net.wotonomy.control
Interface EORelationshipManipulation

All Known Subinterfaces:
EOEnterpriseObject
All Known Implementing Classes:
EOCustomObject, EOGenericRecord

public interface EORelationshipManipulation

EORelationshipManipulation provides methods for generically adding and removing relationships between objects, handling both one-way and reciprocal relationships.

Version:
$Revision: 893 $
Author:
michael@mpowers.net, $Author: cgruber $

Method Summary
 void addObjectToBothSidesOfRelationshipWithKey(EORelationshipManipulation anObject, java.lang.String aKey)
          As addObjectToProperty with key, but also performs the reciprocal operation on the other side of the relationship.
 void addObjectToPropertyWithKey(java.lang.Object anObject, java.lang.String aKey)
          Adds the specified object to the relationship on this object specified by the key.
 void removeObjectFromBothSidesOfRelationshipWithKey(EORelationshipManipulation anObject, java.lang.String aKey)
          As removeObjectFromPropertyWithKey with key, but also performs the reciprocal operation on the other side of the relationship.
 void removeObjectFromPropertyWithKey(java.lang.Object anObject, java.lang.String aKey)
          Removes the specified object from the relationship on this object specified by the key.
 

Method Detail

addObjectToPropertyWithKey

void addObjectToPropertyWithKey(java.lang.Object anObject,
                                java.lang.String aKey)
Adds the specified object to the relationship on this object specified by the key. For to-one relationships, this operation is the same as valueForKey.


removeObjectFromPropertyWithKey

void removeObjectFromPropertyWithKey(java.lang.Object anObject,
                                     java.lang.String aKey)
Removes the specified object from the relationship on this object specified by the key. For to-one relationships, this operation is the same as takeValueForKey with a null value.


addObjectToBothSidesOfRelationshipWithKey

void addObjectToBothSidesOfRelationshipWithKey(EORelationshipManipulation anObject,
                                               java.lang.String aKey)
As addObjectToProperty with key, but also performs the reciprocal operation on the other side of the relationship.


removeObjectFromBothSidesOfRelationshipWithKey

void removeObjectFromBothSidesOfRelationshipWithKey(EORelationshipManipulation anObject,
                                                    java.lang.String aKey)
As removeObjectFromPropertyWithKey with key, but also performs the reciprocal operation on the other side of the relationship.



Copyright © 2006 null. All Rights Reserved.