KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASUserRegistration_390198867Remote_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 JOnASUserRegistration_390198867Remote_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.UserRegistration, 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("void deleteUser(java.lang.String)"),
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.lang.Object getPrimaryKey()"),
15     new java.rmi.server.Operation JavaDoc("boolean isIdentical(javax.ejb.EJBObject)"),
16     new java.rmi.server.Operation JavaDoc("void remove()"),
17     new java.rmi.server.Operation JavaDoc("void roleCreate(java.lang.String, java.lang.String)"),
18     new java.rmi.server.Operation JavaDoc("void setUserProperty(java.lang.String, java.lang.String, java.lang.String)"),
19     new java.rmi.server.Operation JavaDoc("void setUserRole(java.lang.String, java.lang.String)"),
20     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnUserLocal userCreate(java.lang.String)"),
21     new java.rmi.server.Operation JavaDoc("void userCreate(java.lang.String, java.lang.String, java.lang.String)"),
22     new java.rmi.server.Operation JavaDoc("void userCreate(java.lang.String, java.lang.String, java.lang.String, java.lang.String)")
23     };
24     
25     private static final long interfaceHash = 8827534278029431046L;
26     
27     private static final long serialVersionUID = 2;
28     
29     private static boolean useNewInvoke;
30     private static java.lang.reflect.Method JavaDoc $method_deleteUser_0;
31     private static java.lang.reflect.Method JavaDoc $method_getEJBHome_1;
32     private static java.lang.reflect.Method JavaDoc $method_getHandle_2;
33     private static java.lang.reflect.Method JavaDoc $method_getPrimaryKey_3;
34     private static java.lang.reflect.Method JavaDoc $method_isIdentical_4;
35     private static java.lang.reflect.Method JavaDoc $method_remove_5;
36     private static java.lang.reflect.Method JavaDoc $method_roleCreate_6;
37     private static java.lang.reflect.Method JavaDoc $method_setUserProperty_7;
38     private static java.lang.reflect.Method JavaDoc $method_setUserRole_8;
39     private static java.lang.reflect.Method JavaDoc $method_userCreate_9;
40     private static java.lang.reflect.Method JavaDoc $method_userCreate_10;
41     private static java.lang.reflect.Method JavaDoc $method_userCreate_11;
42     
43     static {
44     try {
45         java.rmi.server.RemoteRef JavaDoc.class.getMethod("invoke",
46         new java.lang.Class JavaDoc[] {
47             java.rmi.Remote JavaDoc.class,
48             java.lang.reflect.Method JavaDoc.class,
49             java.lang.Object JavaDoc[].class,
50             long.class
51         });
52         useNewInvoke = true;
53         $method_deleteUser_0 = hero.interfaces.UserRegistration.class.getMethod("deleteUser", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class});
54         $method_getEJBHome_1 = javax.ejb.EJBObject JavaDoc.class.getMethod("getEJBHome", new java.lang.Class JavaDoc[] {});
55         $method_getHandle_2 = javax.ejb.EJBObject JavaDoc.class.getMethod("getHandle", new java.lang.Class JavaDoc[] {});
56         $method_getPrimaryKey_3 = javax.ejb.EJBObject JavaDoc.class.getMethod("getPrimaryKey", new java.lang.Class JavaDoc[] {});
57         $method_isIdentical_4 = javax.ejb.EJBObject JavaDoc.class.getMethod("isIdentical", new java.lang.Class JavaDoc[] {javax.ejb.EJBObject JavaDoc.class});
58         $method_remove_5 = javax.ejb.EJBObject JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {});
59         $method_roleCreate_6 = hero.interfaces.UserRegistration.class.getMethod("roleCreate", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
60         $method_setUserProperty_7 = hero.interfaces.UserRegistration.class.getMethod("setUserProperty", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
61         $method_setUserRole_8 = hero.interfaces.UserRegistration.class.getMethod("setUserRole", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
62         $method_userCreate_9 = hero.interfaces.UserRegistration.class.getMethod("userCreate", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class});
63         $method_userCreate_10 = hero.interfaces.UserRegistration.class.getMethod("userCreate", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
64         $method_userCreate_11 = hero.interfaces.UserRegistration.class.getMethod("userCreate", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class, java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
65     } catch (java.lang.NoSuchMethodException JavaDoc e) {
66         useNewInvoke = false;
67     }
68     }
69     
70     // constructors
71
public JOnASUserRegistration_390198867Remote_Stub() {
72     super();
73     }
74     public JOnASUserRegistration_390198867Remote_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
75     super(ref);
76     }
77     
78     // methods from remote interfaces
79

80     // implementation of deleteUser(String)
81
public void deleteUser(java.lang.String JavaDoc $param_String_1)
82     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
83     {
84     try {
85         if (useNewInvoke) {
86         ref.invoke(this, $method_deleteUser_0, new java.lang.Object JavaDoc[] {$param_String_1}, -5740162346944931429L);
87         } else {
88         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 0, interfaceHash);
89         try {
90             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
91             out.writeObject($param_String_1);
92         } catch (java.io.IOException JavaDoc e) {
93             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
94         }
95         ref.invoke(call);
96         ref.done(call);
97         }
98     } catch (java.lang.RuntimeException JavaDoc e) {
99         throw e;
100     } catch (java.rmi.RemoteException JavaDoc e) {
101         throw e;
102     } catch (hero.util.HeroException e) {
103         throw e;
104     } catch (java.lang.Exception JavaDoc e) {
105         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
106     }
107     }
108     
109     // implementation of getEJBHome()
110
public javax.ejb.EJBHome JavaDoc getEJBHome()
111     throws java.rmi.RemoteException JavaDoc
112     {
113     try {
114         if (useNewInvoke) {
115         Object JavaDoc $result = ref.invoke(this, $method_getEJBHome_1, null, 3163754803894080547L);
116         return ((javax.ejb.EJBHome JavaDoc) $result);
117         } else {
118         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 1, interfaceHash);
119         ref.invoke(call);
120         javax.ejb.EJBHome JavaDoc $result;
121         try {
122             java.io.ObjectInput JavaDoc in = call.getInputStream();
123             $result = (javax.ejb.EJBHome JavaDoc) in.readObject();
124         } catch (java.io.IOException JavaDoc e) {
125             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
126         } catch (java.lang.ClassNotFoundException JavaDoc e) {
127             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
128         } finally {
129             ref.done(call);
130         }
131         return $result;
132         }
133     } catch (java.lang.RuntimeException JavaDoc e) {
134         throw e;
135     } catch (java.rmi.RemoteException JavaDoc e) {
136         throw e;
137     } catch (java.lang.Exception JavaDoc e) {
138         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
139     }
140     }
141     
142     // implementation of getHandle()
143
public javax.ejb.Handle JavaDoc getHandle()
144     throws java.rmi.RemoteException JavaDoc
145     {
146     try {
147         if (useNewInvoke) {
148         Object JavaDoc $result = ref.invoke(this, $method_getHandle_2, null, -1299374689989208114L);
149         return ((javax.ejb.Handle JavaDoc) $result);
150         } else {
151         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
152         ref.invoke(call);
153         javax.ejb.Handle JavaDoc $result;
154         try {
155             java.io.ObjectInput JavaDoc in = call.getInputStream();
156             $result = (javax.ejb.Handle JavaDoc) in.readObject();
157         } catch (java.io.IOException JavaDoc e) {
158             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
159         } catch (java.lang.ClassNotFoundException JavaDoc e) {
160             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
161         } finally {
162             ref.done(call);
163         }
164         return $result;
165         }
166     } catch (java.lang.RuntimeException JavaDoc e) {
167         throw e;
168     } catch (java.rmi.RemoteException JavaDoc e) {
169         throw e;
170     } catch (java.lang.Exception JavaDoc e) {
171         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
172     }
173     }
174     
175     // implementation of getPrimaryKey()
176
public java.lang.Object JavaDoc getPrimaryKey()
177     throws java.rmi.RemoteException JavaDoc
178     {
179     try {
180         if (useNewInvoke) {
181         Object JavaDoc $result = ref.invoke(this, $method_getPrimaryKey_3, null, 4840115071604865751L);
182         return ((java.lang.Object JavaDoc) $result);
183         } else {
184         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
185         ref.invoke(call);
186         java.lang.Object JavaDoc $result;
187         try {
188             java.io.ObjectInput JavaDoc in = call.getInputStream();
189             $result = (java.lang.Object JavaDoc) in.readObject();
190         } catch (java.io.IOException JavaDoc e) {
191             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
192         } catch (java.lang.ClassNotFoundException JavaDoc e) {
193             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
194         } finally {
195             ref.done(call);
196         }
197         return $result;
198         }
199     } catch (java.lang.RuntimeException JavaDoc e) {
200         throw e;
201     } catch (java.rmi.RemoteException JavaDoc e) {
202         throw e;
203     } catch (java.lang.Exception JavaDoc e) {
204         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
205     }
206     }
207     
208     // implementation of isIdentical(EJBObject)
209
public boolean isIdentical(javax.ejb.EJBObject JavaDoc $param_EJBObject_1)
210     throws java.rmi.RemoteException JavaDoc
211     {
212     try {
213         if (useNewInvoke) {
214         Object JavaDoc $result = ref.invoke(this, $method_isIdentical_4, new java.lang.Object JavaDoc[] {$param_EJBObject_1}, -5909123752501984271L);
215         return ((java.lang.Boolean JavaDoc) $result).booleanValue();
216         } else {
217         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
218         try {
219             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
220             out.writeObject($param_EJBObject_1);
221         } catch (java.io.IOException JavaDoc e) {
222             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
223         }
224         ref.invoke(call);
225         boolean $result;
226         try {
227             java.io.ObjectInput JavaDoc in = call.getInputStream();
228             $result = in.readBoolean();
229         } catch (java.io.IOException JavaDoc e) {
230             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
231         } finally {
232             ref.done(call);
233         }
234         return $result;
235         }
236     } catch (java.lang.RuntimeException JavaDoc e) {
237         throw e;
238     } catch (java.rmi.RemoteException JavaDoc e) {
239         throw e;
240     } catch (java.lang.Exception JavaDoc e) {
241         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
242     }
243     }
244     
245     // implementation of remove()
246
public void remove()
247     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
248     {
249     try {
250         if (useNewInvoke) {
251         ref.invoke(this, $method_remove_5, null, -5013858639939630501L);
252         } else {
253         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
254         ref.invoke(call);
255         ref.done(call);
256         }
257     } catch (java.lang.RuntimeException JavaDoc e) {
258         throw e;
259     } catch (java.rmi.RemoteException JavaDoc e) {
260         throw e;
261     } catch (javax.ejb.RemoveException JavaDoc e) {
262         throw e;
263     } catch (java.lang.Exception JavaDoc e) {
264         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
265     }
266     }
267     
268     // implementation of roleCreate(String, String)
269
public void roleCreate(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2)
270     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
271     {
272     try {
273         if (useNewInvoke) {
274         ref.invoke(this, $method_roleCreate_6, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2}, -6612757925996645924L);
275         } else {
276         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
277         try {
278             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
279             out.writeObject($param_String_1);
280             out.writeObject($param_String_2);
281         } catch (java.io.IOException JavaDoc e) {
282             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
283         }
284         ref.invoke(call);
285         ref.done(call);
286         }
287     } catch (java.lang.RuntimeException JavaDoc e) {
288         throw e;
289     } catch (java.rmi.RemoteException JavaDoc e) {
290         throw e;
291     } catch (hero.util.HeroException e) {
292         throw e;
293     } catch (java.lang.Exception JavaDoc e) {
294         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
295     }
296     }
297     
298     // implementation of setUserProperty(String, String, String)
299
public void setUserProperty(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2, java.lang.String JavaDoc $param_String_3)
300     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
301     {
302     try {
303         if (useNewInvoke) {
304         ref.invoke(this, $method_setUserProperty_7, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2, $param_String_3}, 8945694367595599534L);
305         } else {
306         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
307         try {
308             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
309             out.writeObject($param_String_1);
310             out.writeObject($param_String_2);
311             out.writeObject($param_String_3);
312         } catch (java.io.IOException JavaDoc e) {
313             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
314         }
315         ref.invoke(call);
316         ref.done(call);
317         }
318     } catch (java.lang.RuntimeException JavaDoc e) {
319         throw e;
320     } catch (java.rmi.RemoteException JavaDoc e) {
321         throw e;
322     } catch (hero.util.HeroException e) {
323         throw e;
324     } catch (java.lang.Exception JavaDoc e) {
325         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
326     }
327     }
328     
329     // implementation of setUserRole(String, String)
330
public void setUserRole(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2)
331     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
332     {
333     try {
334         if (useNewInvoke) {
335         ref.invoke(this, $method_setUserRole_8, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2}, -1002283327313042695L);
336         } else {
337         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 8, interfaceHash);
338         try {
339             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
340             out.writeObject($param_String_1);
341             out.writeObject($param_String_2);
342         } catch (java.io.IOException JavaDoc e) {
343             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
344         }
345         ref.invoke(call);
346         ref.done(call);
347         }
348     } catch (java.lang.RuntimeException JavaDoc e) {
349         throw e;
350     } catch (java.rmi.RemoteException JavaDoc e) {
351         throw e;
352     } catch (hero.util.HeroException e) {
353         throw e;
354     } catch (java.lang.Exception JavaDoc e) {
355         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
356     }
357     }
358     
359     // implementation of userCreate(String)
360
public hero.interfaces.BnUserLocal userCreate(java.lang.String JavaDoc $param_String_1)
361     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
362     {
363     try {
364         if (useNewInvoke) {
365         Object JavaDoc $result = ref.invoke(this, $method_userCreate_9, new java.lang.Object JavaDoc[] {$param_String_1}, 6403740065556070885L);
366         return ((hero.interfaces.BnUserLocal) $result);
367         } else {
368         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 9, interfaceHash);
369         try {
370             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
371             out.writeObject($param_String_1);
372         } catch (java.io.IOException JavaDoc e) {
373             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
374         }
375         ref.invoke(call);
376         hero.interfaces.BnUserLocal $result;
377         try {
378             java.io.ObjectInput JavaDoc in = call.getInputStream();
379             $result = (hero.interfaces.BnUserLocal) in.readObject();
380         } catch (java.io.IOException JavaDoc e) {
381             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
382         } catch (java.lang.ClassNotFoundException JavaDoc e) {
383             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
384         } finally {
385             ref.done(call);
386         }
387         return $result;
388         }
389     } catch (java.lang.RuntimeException JavaDoc e) {
390         throw e;
391     } catch (java.rmi.RemoteException JavaDoc e) {
392         throw e;
393     } catch (hero.util.HeroException e) {
394         throw e;
395     } catch (java.lang.Exception JavaDoc e) {
396         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
397     }
398     }
399     
400     // implementation of userCreate(String, String, String)
401
public void userCreate(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2, java.lang.String JavaDoc $param_String_3)
402     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
403     {
404     try {
405         if (useNewInvoke) {
406         ref.invoke(this, $method_userCreate_10, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2, $param_String_3}, -2654664015012264136L);
407         } else {
408         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 10, interfaceHash);
409         try {
410             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
411             out.writeObject($param_String_1);
412             out.writeObject($param_String_2);
413             out.writeObject($param_String_3);
414         } catch (java.io.IOException JavaDoc e) {
415             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
416         }
417         ref.invoke(call);
418         ref.done(call);
419         }
420     } catch (java.lang.RuntimeException JavaDoc e) {
421         throw e;
422     } catch (java.rmi.RemoteException JavaDoc e) {
423         throw e;
424     } catch (hero.util.HeroException e) {
425         throw e;
426     } catch (java.lang.Exception JavaDoc e) {
427         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
428     }
429     }
430     
431     // implementation of userCreate(String, String, String, String)
432
public void userCreate(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2, java.lang.String JavaDoc $param_String_3, java.lang.String JavaDoc $param_String_4)
433     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
434     {
435     try {
436         if (useNewInvoke) {
437         ref.invoke(this, $method_userCreate_11, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2, $param_String_3, $param_String_4}, -3062716394794781588L);
438         } else {
439         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 11, interfaceHash);
440         try {
441             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
442             out.writeObject($param_String_1);
443             out.writeObject($param_String_2);
444             out.writeObject($param_String_3);
445             out.writeObject($param_String_4);
446         } catch (java.io.IOException JavaDoc e) {
447             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
448         }
449         ref.invoke(call);
450         ref.done(call);
451         }
452     } catch (java.lang.RuntimeException JavaDoc e) {
453         throw e;
454     } catch (java.rmi.RemoteException JavaDoc e) {
455         throw e;
456     } catch (hero.util.HeroException e) {
457         throw e;
458     } catch (java.lang.Exception JavaDoc e) {
459         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
460     }
461     }
462 }
463
Popular Tags