KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASUserService1658020123Remote_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 JOnASUserService1658020123Remote_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.UserService, 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("hero.interfaces.BnUserLocal findUser(java.lang.String)"),
12     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnUserLocal findUserLocal(java.lang.String)"),
13     new java.rmi.server.Operation JavaDoc("java.util.Collection findUsers()"),
14     new java.rmi.server.Operation JavaDoc("javax.ejb.EJBHome getEJBHome()"),
15     new java.rmi.server.Operation JavaDoc("javax.ejb.Handle getHandle()"),
16     new java.rmi.server.Operation JavaDoc("java.lang.Object getPrimaryKey()"),
17     new java.rmi.server.Operation JavaDoc("java.util.Map getUserInfos(java.lang.String)"),
18     new java.rmi.server.Operation JavaDoc("boolean isIdentical(javax.ejb.EJBObject)"),
19     new java.rmi.server.Operation JavaDoc("void remove()")
20     };
21     
22     private static final long interfaceHash = 906295115444324314L;
23     
24     private static final long serialVersionUID = 2;
25     
26     private static boolean useNewInvoke;
27     private static java.lang.reflect.Method JavaDoc $method_findUser_0;
28     private static java.lang.reflect.Method JavaDoc $method_findUserLocal_1;
29     private static java.lang.reflect.Method JavaDoc $method_findUsers_2;
30     private static java.lang.reflect.Method JavaDoc $method_getEJBHome_3;
31     private static java.lang.reflect.Method JavaDoc $method_getHandle_4;
32     private static java.lang.reflect.Method JavaDoc $method_getPrimaryKey_5;
33     private static java.lang.reflect.Method JavaDoc $method_getUserInfos_6;
34     private static java.lang.reflect.Method JavaDoc $method_isIdentical_7;
35     private static java.lang.reflect.Method JavaDoc $method_remove_8;
36     
37     static {
38     try {
39         java.rmi.server.RemoteRef JavaDoc.class.getMethod("invoke",
40         new java.lang.Class JavaDoc[] {
41             java.rmi.Remote JavaDoc.class,
42             java.lang.reflect.Method JavaDoc.class,
43             java.lang.Object JavaDoc[].class,
44             long.class
45         });
46         useNewInvoke = true;
47         $method_findUser_0 = hero.interfaces.UserService.class.getMethod("findUser", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class});
48         $method_findUserLocal_1 = hero.interfaces.UserService.class.getMethod("findUserLocal", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class});
49         $method_findUsers_2 = hero.interfaces.UserService.class.getMethod("findUsers", new java.lang.Class JavaDoc[] {});
50         $method_getEJBHome_3 = javax.ejb.EJBObject JavaDoc.class.getMethod("getEJBHome", new java.lang.Class JavaDoc[] {});
51         $method_getHandle_4 = javax.ejb.EJBObject JavaDoc.class.getMethod("getHandle", new java.lang.Class JavaDoc[] {});
52         $method_getPrimaryKey_5 = javax.ejb.EJBObject JavaDoc.class.getMethod("getPrimaryKey", new java.lang.Class JavaDoc[] {});
53         $method_getUserInfos_6 = hero.interfaces.UserService.class.getMethod("getUserInfos", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class});
54         $method_isIdentical_7 = javax.ejb.EJBObject JavaDoc.class.getMethod("isIdentical", new java.lang.Class JavaDoc[] {javax.ejb.EJBObject JavaDoc.class});
55         $method_remove_8 = javax.ejb.EJBObject JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {});
56     } catch (java.lang.NoSuchMethodException JavaDoc e) {
57         useNewInvoke = false;
58     }
59     }
60     
61     // constructors
62
public JOnASUserService1658020123Remote_Stub() {
63     super();
64     }
65     public JOnASUserService1658020123Remote_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
66     super(ref);
67     }
68     
69     // methods from remote interfaces
70

71     // implementation of findUser(String)
72
public hero.interfaces.BnUserLocal findUser(java.lang.String JavaDoc $param_String_1)
73     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
74     {
75     try {
76         if (useNewInvoke) {
77         Object JavaDoc $result = ref.invoke(this, $method_findUser_0, new java.lang.Object JavaDoc[] {$param_String_1}, 2861884526190364653L);
78         return ((hero.interfaces.BnUserLocal) $result);
79         } else {
80         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 0, interfaceHash);
81         try {
82             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
83             out.writeObject($param_String_1);
84         } catch (java.io.IOException JavaDoc e) {
85             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
86         }
87         ref.invoke(call);
88         hero.interfaces.BnUserLocal $result;
89         try {
90             java.io.ObjectInput JavaDoc in = call.getInputStream();
91             $result = (hero.interfaces.BnUserLocal) in.readObject();
92         } catch (java.io.IOException JavaDoc e) {
93             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
94         } catch (java.lang.ClassNotFoundException JavaDoc e) {
95             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
96         } finally {
97             ref.done(call);
98         }
99         return $result;
100         }
101     } catch (java.lang.RuntimeException JavaDoc e) {
102         throw e;
103     } catch (java.rmi.RemoteException JavaDoc e) {
104         throw e;
105     } catch (hero.util.HeroException e) {
106         throw e;
107     } catch (java.lang.Exception JavaDoc e) {
108         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
109     }
110     }
111     
112     // implementation of findUserLocal(String)
113
public hero.interfaces.BnUserLocal findUserLocal(java.lang.String JavaDoc $param_String_1)
114     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
115     {
116     try {
117         if (useNewInvoke) {
118         Object JavaDoc $result = ref.invoke(this, $method_findUserLocal_1, new java.lang.Object JavaDoc[] {$param_String_1}, -5773048371744554314L);
119         return ((hero.interfaces.BnUserLocal) $result);
120         } else {
121         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 1, interfaceHash);
122         try {
123             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
124             out.writeObject($param_String_1);
125         } catch (java.io.IOException JavaDoc e) {
126             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
127         }
128         ref.invoke(call);
129         hero.interfaces.BnUserLocal $result;
130         try {
131             java.io.ObjectInput JavaDoc in = call.getInputStream();
132             $result = (hero.interfaces.BnUserLocal) in.readObject();
133         } catch (java.io.IOException JavaDoc e) {
134             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
135         } catch (java.lang.ClassNotFoundException JavaDoc e) {
136             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
137         } finally {
138             ref.done(call);
139         }
140         return $result;
141         }
142     } catch (java.lang.RuntimeException JavaDoc e) {
143         throw e;
144     } catch (java.rmi.RemoteException JavaDoc e) {
145         throw e;
146     } catch (hero.util.HeroException e) {
147         throw e;
148     } catch (java.lang.Exception JavaDoc e) {
149         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
150     }
151     }
152     
153     // implementation of findUsers()
154
public java.util.Collection JavaDoc findUsers()
155     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
156     {
157     try {
158         if (useNewInvoke) {
159         Object JavaDoc $result = ref.invoke(this, $method_findUsers_2, null, 1346795347855444037L);
160         return ((java.util.Collection JavaDoc) $result);
161         } else {
162         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
163         ref.invoke(call);
164         java.util.Collection JavaDoc $result;
165         try {
166             java.io.ObjectInput JavaDoc in = call.getInputStream();
167             $result = (java.util.Collection JavaDoc) in.readObject();
168         } catch (java.io.IOException JavaDoc e) {
169             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
170         } catch (java.lang.ClassNotFoundException JavaDoc e) {
171             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
172         } finally {
173             ref.done(call);
174         }
175         return $result;
176         }
177     } catch (java.lang.RuntimeException JavaDoc e) {
178         throw e;
179     } catch (java.rmi.RemoteException JavaDoc e) {
180         throw e;
181     } catch (hero.util.HeroException e) {
182         throw e;
183     } catch (java.lang.Exception JavaDoc e) {
184         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
185     }
186     }
187     
188     // implementation of getEJBHome()
189
public javax.ejb.EJBHome JavaDoc getEJBHome()
190     throws java.rmi.RemoteException JavaDoc
191     {
192     try {
193         if (useNewInvoke) {
194         Object JavaDoc $result = ref.invoke(this, $method_getEJBHome_3, null, 3163754803894080547L);
195         return ((javax.ejb.EJBHome JavaDoc) $result);
196         } else {
197         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
198         ref.invoke(call);
199         javax.ejb.EJBHome JavaDoc $result;
200         try {
201             java.io.ObjectInput JavaDoc in = call.getInputStream();
202             $result = (javax.ejb.EJBHome JavaDoc) in.readObject();
203         } catch (java.io.IOException JavaDoc e) {
204             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
205         } catch (java.lang.ClassNotFoundException JavaDoc e) {
206             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
207         } finally {
208             ref.done(call);
209         }
210         return $result;
211         }
212     } catch (java.lang.RuntimeException JavaDoc e) {
213         throw e;
214     } catch (java.rmi.RemoteException JavaDoc e) {
215         throw e;
216     } catch (java.lang.Exception JavaDoc e) {
217         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
218     }
219     }
220     
221     // implementation of getHandle()
222
public javax.ejb.Handle JavaDoc getHandle()
223     throws java.rmi.RemoteException JavaDoc
224     {
225     try {
226         if (useNewInvoke) {
227         Object JavaDoc $result = ref.invoke(this, $method_getHandle_4, null, -1299374689989208114L);
228         return ((javax.ejb.Handle JavaDoc) $result);
229         } else {
230         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
231         ref.invoke(call);
232         javax.ejb.Handle JavaDoc $result;
233         try {
234             java.io.ObjectInput JavaDoc in = call.getInputStream();
235             $result = (javax.ejb.Handle JavaDoc) in.readObject();
236         } catch (java.io.IOException JavaDoc e) {
237             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
238         } catch (java.lang.ClassNotFoundException JavaDoc e) {
239             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
240         } finally {
241             ref.done(call);
242         }
243         return $result;
244         }
245     } catch (java.lang.RuntimeException JavaDoc e) {
246         throw e;
247     } catch (java.rmi.RemoteException JavaDoc e) {
248         throw e;
249     } catch (java.lang.Exception JavaDoc e) {
250         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
251     }
252     }
253     
254     // implementation of getPrimaryKey()
255
public java.lang.Object JavaDoc getPrimaryKey()
256     throws java.rmi.RemoteException JavaDoc
257     {
258     try {
259         if (useNewInvoke) {
260         Object JavaDoc $result = ref.invoke(this, $method_getPrimaryKey_5, null, 4840115071604865751L);
261         return ((java.lang.Object JavaDoc) $result);
262         } else {
263         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
264         ref.invoke(call);
265         java.lang.Object JavaDoc $result;
266         try {
267             java.io.ObjectInput JavaDoc in = call.getInputStream();
268             $result = (java.lang.Object JavaDoc) in.readObject();
269         } catch (java.io.IOException JavaDoc e) {
270             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
271         } catch (java.lang.ClassNotFoundException JavaDoc e) {
272             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
273         } finally {
274             ref.done(call);
275         }
276         return $result;
277         }
278     } catch (java.lang.RuntimeException JavaDoc e) {
279         throw e;
280     } catch (java.rmi.RemoteException JavaDoc e) {
281         throw e;
282     } catch (java.lang.Exception JavaDoc e) {
283         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
284     }
285     }
286     
287     // implementation of getUserInfos(String)
288
public java.util.Map JavaDoc getUserInfos(java.lang.String JavaDoc $param_String_1)
289     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
290     {
291     try {
292         if (useNewInvoke) {
293         Object JavaDoc $result = ref.invoke(this, $method_getUserInfos_6, new java.lang.Object JavaDoc[] {$param_String_1}, 5902834266857789542L);
294         return ((java.util.Map JavaDoc) $result);
295         } else {
296         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
297         try {
298             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
299             out.writeObject($param_String_1);
300         } catch (java.io.IOException JavaDoc e) {
301             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
302         }
303         ref.invoke(call);
304         java.util.Map JavaDoc $result;
305         try {
306             java.io.ObjectInput JavaDoc in = call.getInputStream();
307             $result = (java.util.Map JavaDoc) in.readObject();
308         } catch (java.io.IOException JavaDoc e) {
309             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
310         } catch (java.lang.ClassNotFoundException JavaDoc e) {
311             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
312         } finally {
313             ref.done(call);
314         }
315         return $result;
316         }
317     } catch (java.lang.RuntimeException JavaDoc e) {
318         throw e;
319     } catch (java.rmi.RemoteException JavaDoc e) {
320         throw e;
321     } catch (hero.util.HeroException e) {
322         throw e;
323     } catch (java.lang.Exception JavaDoc e) {
324         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
325     }
326     }
327     
328     // implementation of isIdentical(EJBObject)
329
public boolean isIdentical(javax.ejb.EJBObject JavaDoc $param_EJBObject_1)
330     throws java.rmi.RemoteException JavaDoc
331     {
332     try {
333         if (useNewInvoke) {
334         Object JavaDoc $result = ref.invoke(this, $method_isIdentical_7, new java.lang.Object JavaDoc[] {$param_EJBObject_1}, -5909123752501984271L);
335         return ((java.lang.Boolean JavaDoc) $result).booleanValue();
336         } else {
337         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
338         try {
339             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
340             out.writeObject($param_EJBObject_1);
341         } catch (java.io.IOException JavaDoc e) {
342             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
343         }
344         ref.invoke(call);
345         boolean $result;
346         try {
347             java.io.ObjectInput JavaDoc in = call.getInputStream();
348             $result = in.readBoolean();
349         } catch (java.io.IOException JavaDoc e) {
350             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
351         } finally {
352             ref.done(call);
353         }
354         return $result;
355         }
356     } catch (java.lang.RuntimeException JavaDoc e) {
357         throw e;
358     } catch (java.rmi.RemoteException JavaDoc e) {
359         throw e;
360     } catch (java.lang.Exception JavaDoc e) {
361         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
362     }
363     }
364     
365     // implementation of remove()
366
public void remove()
367     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
368     {
369     try {
370         if (useNewInvoke) {
371         ref.invoke(this, $method_remove_8, null, -5013858639939630501L);
372         } else {
373         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 8, interfaceHash);
374         ref.invoke(call);
375         ref.done(call);
376         }
377     } catch (java.lang.RuntimeException JavaDoc e) {
378         throw e;
379     } catch (java.rmi.RemoteException JavaDoc e) {
380         throw e;
381     } catch (javax.ejb.RemoveException JavaDoc e) {
382         throw e;
383     } catch (java.lang.Exception JavaDoc e) {
384         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
385     }
386     }
387 }
388
Popular Tags