1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package net.wotonomy.control;
20
21 /***
22 * EORelationshipManipulation provides methods for generically
23 * adding and removing relationships between objects, handling
24 * both one-way and reciprocal relationships.
25 *
26 * @author michael@mpowers.net
27 * @author $Author: cgruber $
28 * @version $Revision: 893 $
29 */
30 public interface EORelationshipManipulation
31 {
32 /***
33 * Adds the specified object to the relationship on this
34 * object specified by the key. For to-one relationships,
35 * this operation is the same as valueForKey.
36 */
37 void addObjectToPropertyWithKey(
38 Object anObject, String aKey );
39
40 /***
41 * Removes the specified object from the relationship on
42 * this object specified by the key. For to-one relationships,
43 * this operation is the same as takeValueForKey with a null
44 * value.
45 */
46 void removeObjectFromPropertyWithKey(
47 Object anObject, String aKey );
48
49 /***
50 * As addObjectToProperty with key, but also performs the
51 * reciprocal operation on the other side of the relationship.
52 */
53 void addObjectToBothSidesOfRelationshipWithKey(
54 EORelationshipManipulation anObject, String aKey );
55
56 /***
57 * As removeObjectFromPropertyWithKey with key, but also performs the
58 * reciprocal operation on the other side of the relationship.
59 */
60 void removeObjectFromBothSidesOfRelationshipWithKey(
61 EORelationshipManipulation anObject, String aKey );
62
63 }
64
65
66
67
68
69
70
71
72
73
74
75
76