KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASAdminSession_1371997683Remote_Stub


1 // Stub class generated by rmic, do not edit.
2
// Contents subject to change without notice.
3

4 package hero.interfaces;
5
6 public final class JOnASAdminSession_1371997683Remote_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.AdminSession, java.rmi.Remote JavaDoc, javax.ejb.EJBObject JavaDoc
9 {
10     private static final java.rmi.server.Operation JavaDoc[] operations = {
11     new java.rmi.server.Operation JavaDoc("java.util.Collection getActivities()"),
12     new java.rmi.server.Operation JavaDoc("javax.ejb.EJBHome getEJBHome()"),
13     new java.rmi.server.Operation JavaDoc("javax.ejb.Handle getHandle()"),
14     new java.rmi.server.Operation JavaDoc("java.util.Collection getInstances()"),
15     new java.rmi.server.Operation JavaDoc("java.util.Collection getModels()"),
16     new java.rmi.server.Operation JavaDoc("java.lang.Object getPrimaryKey()"),
17     new java.rmi.server.Operation JavaDoc("boolean isIdentical(javax.ejb.EJBObject)"),
18     new java.rmi.server.Operation JavaDoc("void remove()")
19     };
20     
21     private static final long interfaceHash = 5366366842244620893L;
22     
23     private static final long serialVersionUID = 2;
24     
25     private static boolean useNewInvoke;
26     private static java.lang.reflect.Method JavaDoc $method_getActivities_0;
27     private static java.lang.reflect.Method JavaDoc $method_getEJBHome_1;
28     private static java.lang.reflect.Method JavaDoc $method_getHandle_2;
29     private static java.lang.reflect.Method JavaDoc $method_getInstances_3;
30     private static java.lang.reflect.Method JavaDoc $method_getModels_4;
31     private static java.lang.reflect.Method JavaDoc $method_getPrimaryKey_5;
32     private static java.lang.reflect.Method JavaDoc $method_isIdentical_6;
33     private static java.lang.reflect.Method JavaDoc $method_remove_7;
34     
35     static {
36     try {
37         java.rmi.server.RemoteRef JavaDoc.class.getMethod("invoke",
38         new java.lang.Class JavaDoc[] {
39             java.rmi.Remote JavaDoc.class,
40             java.lang.reflect.Method JavaDoc.class,
41             java.lang.Object JavaDoc[].class,
42             long.class
43         });
44         useNewInvoke = true;
45         $method_getActivities_0 = hero.interfaces.AdminSession.class.getMethod("getActivities", new java.lang.Class JavaDoc[] {});
46         $method_getEJBHome_1 = javax.ejb.EJBObject JavaDoc.class.getMethod("getEJBHome", new java.lang.Class JavaDoc[] {});
47         $method_getHandle_2 = javax.ejb.EJBObject JavaDoc.class.getMethod("getHandle", new java.lang.Class JavaDoc[] {});
48         $method_getInstances_3 = hero.interfaces.AdminSession.class.getMethod("getInstances", new java.lang.Class JavaDoc[] {});
49         $method_getModels_4 = hero.interfaces.AdminSession.class.getMethod("getModels", new java.lang.Class JavaDoc[] {});
50         $method_getPrimaryKey_5 = javax.ejb.EJBObject JavaDoc.class.getMethod("getPrimaryKey", new java.lang.Class JavaDoc[] {});
51         $method_isIdentical_6 = javax.ejb.EJBObject JavaDoc.class.getMethod("isIdentical", new java.lang.Class JavaDoc[] {javax.ejb.EJBObject JavaDoc.class});
52         $method_remove_7 = javax.ejb.EJBObject JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {});
53     } catch (java.lang.NoSuchMethodException JavaDoc e) {
54         useNewInvoke = false;
55     }
56     }
57     
58     // constructors
59
public JOnASAdminSession_1371997683Remote_Stub() {
60     super();
61     }
62     public JOnASAdminSession_1371997683Remote_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
63     super(ref);
64     }
65     
66     // methods from remote interfaces
67

68     // implementation of getActivities()
69
public java.util.Collection JavaDoc getActivities()
70     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
71     {
72     try {
73         if (useNewInvoke) {
74         Object JavaDoc $result = ref.invoke(this, $method_getActivities_0, null, -2177816423556792194L);
75         return ((java.util.Collection JavaDoc) $result);
76         } else {
77         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 0, interfaceHash);
78         ref.invoke(call);
79         java.util.Collection JavaDoc $result;
80         try {
81             java.io.ObjectInput JavaDoc in = call.getInputStream();
82             $result = (java.util.Collection JavaDoc) in.readObject();
83         } catch (java.io.IOException JavaDoc e) {
84             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
85         } catch (java.lang.ClassNotFoundException JavaDoc e) {
86             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
87         } finally {
88             ref.done(call);
89         }
90         return $result;
91         }
92     } catch (java.lang.RuntimeException JavaDoc e) {
93         throw e;
94     } catch (java.rmi.RemoteException JavaDoc e) {
95         throw e;
96     } catch (hero.util.HeroException e) {
97         throw e;
98     } catch (java.lang.Exception JavaDoc e) {
99         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
100     }
101     }
102     
103     // implementation of getEJBHome()
104
public javax.ejb.EJBHome JavaDoc getEJBHome()
105     throws java.rmi.RemoteException JavaDoc
106     {
107     try {
108         if (useNewInvoke) {
109         Object JavaDoc $result = ref.invoke(this, $method_getEJBHome_1, null, 3163754803894080547L);
110         return ((javax.ejb.EJBHome JavaDoc) $result);
111         } else {
112         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 1, interfaceHash);
113         ref.invoke(call);
114         javax.ejb.EJBHome JavaDoc $result;
115         try {
116             java.io.ObjectInput JavaDoc in = call.getInputStream();
117             $result = (javax.ejb.EJBHome JavaDoc) in.readObject();
118         } catch (java.io.IOException JavaDoc e) {
119             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
120         } catch (java.lang.ClassNotFoundException JavaDoc e) {
121             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
122         } finally {
123             ref.done(call);
124         }
125         return $result;
126         }
127     } catch (java.lang.RuntimeException JavaDoc e) {
128         throw e;
129     } catch (java.rmi.RemoteException JavaDoc e) {
130         throw e;
131     } catch (java.lang.Exception JavaDoc e) {
132         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
133     }
134     }
135     
136     // implementation of getHandle()
137
public javax.ejb.Handle JavaDoc getHandle()
138     throws java.rmi.RemoteException JavaDoc
139     {
140     try {
141         if (useNewInvoke) {
142         Object JavaDoc $result = ref.invoke(this, $method_getHandle_2, null, -1299374689989208114L);
143         return ((javax.ejb.Handle JavaDoc) $result);
144         } else {
145         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
146         ref.invoke(call);
147         javax.ejb.Handle JavaDoc $result;
148         try {
149             java.io.ObjectInput JavaDoc in = call.getInputStream();
150             $result = (javax.ejb.Handle JavaDoc) in.readObject();
151         } catch (java.io.IOException JavaDoc e) {
152             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
153         } catch (java.lang.ClassNotFoundException JavaDoc e) {
154             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
155         } finally {
156             ref.done(call);
157         }
158         return $result;
159         }
160     } catch (java.lang.RuntimeException JavaDoc e) {
161         throw e;
162     } catch (java.rmi.RemoteException JavaDoc e) {
163         throw e;
164     } catch (java.lang.Exception JavaDoc e) {
165         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
166     }
167     }
168     
169     // implementation of getInstances()
170
public java.util.Collection JavaDoc getInstances()
171     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
172     {
173     try {
174         if (useNewInvoke) {
175         Object JavaDoc $result = ref.invoke(this, $method_getInstances_3, null, 5352631896338076686L);
176         return ((java.util.Collection JavaDoc) $result);
177         } else {
178         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
179         ref.invoke(call);
180         java.util.Collection JavaDoc $result;
181         try {
182             java.io.ObjectInput JavaDoc in = call.getInputStream();
183             $result = (java.util.Collection JavaDoc) in.readObject();
184         } catch (java.io.IOException JavaDoc e) {
185             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
186         } catch (java.lang.ClassNotFoundException JavaDoc e) {
187             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
188         } finally {
189             ref.done(call);
190         }
191         return $result;
192         }
193     } catch (java.lang.RuntimeException JavaDoc e) {
194         throw e;
195     } catch (java.rmi.RemoteException JavaDoc e) {
196         throw e;
197     } catch (hero.util.HeroException e) {
198         throw e;
199     } catch (java.lang.Exception JavaDoc e) {
200         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
201     }
202     }
203     
204     // implementation of getModels()
205
public java.util.Collection JavaDoc getModels()
206     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
207     {
208     try {
209         if (useNewInvoke) {
210         Object JavaDoc $result = ref.invoke(this, $method_getModels_4, null, -3767925248899611016L);
211         return ((java.util.Collection JavaDoc) $result);
212         } else {
213         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
214         ref.invoke(call);
215         java.util.Collection JavaDoc $result;
216         try {
217             java.io.ObjectInput JavaDoc in = call.getInputStream();
218             $result = (java.util.Collection JavaDoc) in.readObject();
219         } catch (java.io.IOException JavaDoc e) {
220             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
221         } catch (java.lang.ClassNotFoundException JavaDoc e) {
222             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
223         } finally {
224             ref.done(call);
225         }
226         return $result;
227         }
228     } catch (java.lang.RuntimeException JavaDoc e) {
229         throw e;
230     } catch (java.rmi.RemoteException JavaDoc e) {
231         throw e;
232     } catch (hero.util.HeroException e) {
233         throw e;
234     } catch (java.lang.Exception JavaDoc e) {
235         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
236     }
237     }
238     
239     // implementation of getPrimaryKey()
240
public java.lang.Object JavaDoc getPrimaryKey()
241     throws java.rmi.RemoteException JavaDoc
242     {
243     try {
244         if (useNewInvoke) {
245         Object JavaDoc $result = ref.invoke(this, $method_getPrimaryKey_5, null, 4840115071604865751L);
246         return ((java.lang.Object JavaDoc) $result);
247         } else {
248         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
249         ref.invoke(call);
250         java.lang.Object JavaDoc $result;
251         try {
252             java.io.ObjectInput JavaDoc in = call.getInputStream();
253             $result = (java.lang.Object JavaDoc) in.readObject();
254         } catch (java.io.IOException JavaDoc e) {
255             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
256         } catch (java.lang.ClassNotFoundException JavaDoc e) {
257             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
258         } finally {
259             ref.done(call);
260         }
261         return $result;
262         }
263     } catch (java.lang.RuntimeException JavaDoc e) {
264         throw e;
265     } catch (java.rmi.RemoteException JavaDoc e) {
266         throw e;
267     } catch (java.lang.Exception JavaDoc e) {
268         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
269     }
270     }
271     
272     // implementation of isIdentical(EJBObject)
273
public boolean isIdentical(javax.ejb.EJBObject JavaDoc $param_EJBObject_1)
274     throws java.rmi.RemoteException JavaDoc
275     {
276     try {
277         if (useNewInvoke) {
278         Object JavaDoc $result = ref.invoke(this, $method_isIdentical_6, new java.lang.Object JavaDoc[] {$param_EJBObject_1}, -5909123752501984271L);
279         return ((java.lang.Boolean JavaDoc) $result).booleanValue();
280         } else {
281         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
282         try {
283             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
284             out.writeObject($param_EJBObject_1);
285         } catch (java.io.IOException JavaDoc e) {
286             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
287         }
288         ref.invoke(call);
289         boolean $result;
290         try {
291             java.io.ObjectInput JavaDoc in = call.getInputStream();
292             $result = in.readBoolean();
293         } catch (java.io.IOException JavaDoc e) {
294             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
295         } finally {
296             ref.done(call);
297         }
298         return $result;
299         }
300     } catch (java.lang.RuntimeException JavaDoc e) {
301         throw e;
302     } catch (java.rmi.RemoteException JavaDoc e) {
303         throw e;
304     } catch (java.lang.Exception JavaDoc e) {
305         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
306     }
307     }
308     
309     // implementation of remove()
310
public void remove()
311     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
312     {
313     try {
314         if (useNewInvoke) {
315         ref.invoke(this, $method_remove_7, null, -5013858639939630501L);
316         } else {
317         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
318         ref.invoke(call);
319         ref.done(call);
320         }
321     } catch (java.lang.RuntimeException JavaDoc e) {
322         throw e;
323     } catch (java.rmi.RemoteException JavaDoc e) {
324         throw e;
325     } catch (javax.ejb.RemoveException JavaDoc e) {
326         throw e;
327     } catch (java.lang.Exception JavaDoc e) {
328         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
329     }
330     }
331 }
332
Popular Tags