01: // PersonRemote.java
02:
03: package org.objectweb.jonas.jtests.beans.relation.rcycle;
04:
05: import java.util.Collection;
06:
07: import java.rmi.RemoteException;
08: import javax.ejb.EJBObject;
09: import javax.ejb.FinderException;
10:
11: /**
12: * Person remote interface
13: * @author H.Joanin
14: */
15: public interface PersonRemote extends EJBObject {
16:
17: Integer getId() throws RemoteException;
18:
19: String getName() throws RemoteException;
20:
21: void setName(String name) throws RemoteException;
22:
23: int getSex() throws RemoteException;
24:
25: void setSex(int sex) throws RemoteException;
26:
27: Integer retrieveSpouse() throws RemoteException;
28:
29: void assignSpouse(Integer idSpouse) throws FinderException,
30: RemoteException;
31:
32: Collection retrieveParents() throws RemoteException;
33:
34: void assignParents(Collection idParents) throws FinderException,
35: RemoteException;
36:
37: void addInParents(Integer idParents) throws FinderException,
38: RemoteException;
39:
40: Collection retrieveChildren() throws RemoteException;
41:
42: void assignChildren(Collection idChildren) throws FinderException,
43: RemoteException;
44:
45: void addInChildren(Integer idChild) throws FinderException,
46: RemoteException;
47:
48: Collection retrieveChildrenNames() throws RemoteException;
49:
50: Integer retrieveGuardian() throws RemoteException;
51:
52: void assignGuardian(Integer idGuardian) throws FinderException,
53: RemoteException;
54:
55: Collection retrieveGuardianOf() throws RemoteException;
56:
57: void assignInGuardianOf(Collection ids) throws FinderException,
58: RemoteException;
59:
60: void addInGuardianOf(Integer id) throws FinderException,
61: RemoteException;
62:
63: boolean testCmrNull() throws FinderException, RemoteException;
64:
65: }
|