01: // PersonLocal.java
02:
03: package org.objectweb.jonas.jtests.beans.relation.rcycle;
04:
05: import java.util.Collection;
06:
07: import javax.ejb.EJBLocalObject;
08:
09: /**
10: * Person local interface
11: * @author H.Joanin
12: */
13: public interface PersonLocal extends EJBLocalObject {
14:
15: Integer getId();
16:
17: String getName();
18:
19: void setName(String name);
20:
21: int getSex();
22:
23: void setSex(int sex);
24:
25: PersonLocal getSpouse();
26:
27: void setSpouse(PersonLocal spouse);
28:
29: Collection getParents();
30:
31: void setParents(Collection parents);
32:
33: Collection getChildren();
34:
35: void setChildren(Collection parents);
36:
37: PersonLocal getGuardian();
38:
39: void setGuardian(PersonLocal guardian);
40:
41: Collection getGuardianOf();
42:
43: void setGuardianOf(Collection guardianOf);
44:
45: }
|