KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jtests > beans > relation > rcycle > PersonRemote


1 // PersonRemote.java
2

3 package org.objectweb.jonas.jtests.beans.relation.rcycle;
4
5 import java.util.Collection JavaDoc;
6
7 import java.rmi.RemoteException JavaDoc;
8 import javax.ejb.EJBObject JavaDoc;
9 import javax.ejb.FinderException JavaDoc;
10
11
12 /**
13  * Person remote interface
14  * @author H.Joanin
15  */

16 public interface PersonRemote extends EJBObject JavaDoc {
17
18     Integer JavaDoc getId() throws RemoteException JavaDoc;
19
20     String JavaDoc getName() throws RemoteException JavaDoc;
21     void setName(String JavaDoc name) throws RemoteException JavaDoc;
22
23     int getSex() throws RemoteException JavaDoc;
24     void setSex(int sex) throws RemoteException JavaDoc;
25
26     Integer JavaDoc retrieveSpouse() throws RemoteException JavaDoc;
27     void assignSpouse(Integer JavaDoc idSpouse) throws FinderException JavaDoc, RemoteException JavaDoc;
28
29     Collection JavaDoc retrieveParents() throws RemoteException JavaDoc;
30     void assignParents(Collection JavaDoc idParents) throws FinderException JavaDoc, RemoteException JavaDoc;
31     void addInParents(Integer JavaDoc idParents) throws FinderException JavaDoc,RemoteException JavaDoc;
32
33     Collection JavaDoc retrieveChildren() throws RemoteException JavaDoc;
34     void assignChildren(Collection JavaDoc idChildren) throws FinderException JavaDoc, RemoteException JavaDoc;
35     void addInChildren(Integer JavaDoc idChild) throws FinderException JavaDoc, RemoteException JavaDoc;
36     Collection JavaDoc retrieveChildrenNames() throws RemoteException JavaDoc;
37
38     Integer JavaDoc retrieveGuardian() throws RemoteException JavaDoc;
39     void assignGuardian(Integer JavaDoc idGuardian) throws FinderException JavaDoc, RemoteException JavaDoc;
40
41     Collection JavaDoc retrieveGuardianOf() throws RemoteException JavaDoc;
42     void assignInGuardianOf(Collection JavaDoc ids) throws FinderException JavaDoc, RemoteException JavaDoc;
43     void addInGuardianOf(Integer JavaDoc id) throws FinderException JavaDoc, RemoteException JavaDoc;
44
45     boolean testCmrNull() throws FinderException JavaDoc, RemoteException JavaDoc;
46
47 }
48
Popular Tags