KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASBnRoleMapper_1983914099Remote_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 JOnASBnRoleMapper_1983914099Remote_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.BnRoleMapper, 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.BnRoleLocal getBnRole()"),
12     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnRoleMapperValue getBnRoleMapperValue()"),
13     new java.rmi.server.Operation JavaDoc("javax.ejb.EJBHome getEJBHome()"),
14     new java.rmi.server.Operation JavaDoc("javax.ejb.Handle getHandle()"),
15     new java.rmi.server.Operation JavaDoc("java.lang.String getName()"),
16     new java.rmi.server.Operation JavaDoc("java.lang.Object getPrimaryKey()"),
17     new java.rmi.server.Operation JavaDoc("int getType()"),
18     new java.rmi.server.Operation JavaDoc("boolean isIdentical(javax.ejb.EJBObject)"),
19     new java.rmi.server.Operation JavaDoc("void remove()"),
20     new java.rmi.server.Operation JavaDoc("void setBnRoleMapperValue(hero.interfaces.BnRoleMapperValue)"),
21     new java.rmi.server.Operation JavaDoc("void setName(java.lang.String)"),
22     new java.rmi.server.Operation JavaDoc("void setType(int)")
23     };
24     
25     private static final long interfaceHash = -621059556750483078L;
26     
27     private static final long serialVersionUID = 2;
28     
29     private static boolean useNewInvoke;
30     private static java.lang.reflect.Method JavaDoc $method_getBnRole_0;
31     private static java.lang.reflect.Method JavaDoc $method_getBnRoleMapperValue_1;
32     private static java.lang.reflect.Method JavaDoc $method_getEJBHome_2;
33     private static java.lang.reflect.Method JavaDoc $method_getHandle_3;
34     private static java.lang.reflect.Method JavaDoc $method_getName_4;
35     private static java.lang.reflect.Method JavaDoc $method_getPrimaryKey_5;
36     private static java.lang.reflect.Method JavaDoc $method_getType_6;
37     private static java.lang.reflect.Method JavaDoc $method_isIdentical_7;
38     private static java.lang.reflect.Method JavaDoc $method_remove_8;
39     private static java.lang.reflect.Method JavaDoc $method_setBnRoleMapperValue_9;
40     private static java.lang.reflect.Method JavaDoc $method_setName_10;
41     private static java.lang.reflect.Method JavaDoc $method_setType_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_getBnRole_0 = hero.interfaces.BnRoleMapper.class.getMethod("getBnRole", new java.lang.Class JavaDoc[] {});
54         $method_getBnRoleMapperValue_1 = hero.interfaces.BnRoleMapper.class.getMethod("getBnRoleMapperValue", new java.lang.Class JavaDoc[] {});
55         $method_getEJBHome_2 = javax.ejb.EJBObject JavaDoc.class.getMethod("getEJBHome", new java.lang.Class JavaDoc[] {});
56         $method_getHandle_3 = javax.ejb.EJBObject JavaDoc.class.getMethod("getHandle", new java.lang.Class JavaDoc[] {});
57         $method_getName_4 = hero.interfaces.BnRoleMapper.class.getMethod("getName", new java.lang.Class JavaDoc[] {});
58         $method_getPrimaryKey_5 = javax.ejb.EJBObject JavaDoc.class.getMethod("getPrimaryKey", new java.lang.Class JavaDoc[] {});
59         $method_getType_6 = hero.interfaces.BnRoleMapper.class.getMethod("getType", new java.lang.Class JavaDoc[] {});
60         $method_isIdentical_7 = javax.ejb.EJBObject JavaDoc.class.getMethod("isIdentical", new java.lang.Class JavaDoc[] {javax.ejb.EJBObject JavaDoc.class});
61         $method_remove_8 = javax.ejb.EJBObject JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {});
62         $method_setBnRoleMapperValue_9 = hero.interfaces.BnRoleMapper.class.getMethod("setBnRoleMapperValue", new java.lang.Class JavaDoc[] {hero.interfaces.BnRoleMapperValue.class});
63         $method_setName_10 = hero.interfaces.BnRoleMapper.class.getMethod("setName", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class});
64         $method_setType_11 = hero.interfaces.BnRoleMapper.class.getMethod("setType", new java.lang.Class JavaDoc[] {int.class});
65     } catch (java.lang.NoSuchMethodException JavaDoc e) {
66         useNewInvoke = false;
67     }
68     }
69     
70     // constructors
71
public JOnASBnRoleMapper_1983914099Remote_Stub() {
72     super();
73     }
74     public JOnASBnRoleMapper_1983914099Remote_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
75     super(ref);
76     }
77     
78     // methods from remote interfaces
79

80     // implementation of getBnRole()
81
public hero.interfaces.BnRoleLocal getBnRole()
82     throws java.rmi.RemoteException JavaDoc
83     {
84     try {
85         if (useNewInvoke) {
86         Object JavaDoc $result = ref.invoke(this, $method_getBnRole_0, null, 38784828953770150L);
87         return ((hero.interfaces.BnRoleLocal) $result);
88         } else {
89         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 0, interfaceHash);
90         ref.invoke(call);
91         hero.interfaces.BnRoleLocal $result;
92         try {
93             java.io.ObjectInput JavaDoc in = call.getInputStream();
94             $result = (hero.interfaces.BnRoleLocal) in.readObject();
95         } catch (java.io.IOException JavaDoc e) {
96             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
97         } catch (java.lang.ClassNotFoundException JavaDoc e) {
98             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
99         } finally {
100             ref.done(call);
101         }
102         return $result;
103         }
104     } catch (java.lang.RuntimeException JavaDoc e) {
105         throw e;
106     } catch (java.rmi.RemoteException JavaDoc e) {
107         throw e;
108     } catch (java.lang.Exception JavaDoc e) {
109         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
110     }
111     }
112     
113     // implementation of getBnRoleMapperValue()
114
public hero.interfaces.BnRoleMapperValue getBnRoleMapperValue()
115     throws java.rmi.RemoteException JavaDoc
116     {
117     try {
118         if (useNewInvoke) {
119         Object JavaDoc $result = ref.invoke(this, $method_getBnRoleMapperValue_1, null, 4036259508824687L);
120         return ((hero.interfaces.BnRoleMapperValue) $result);
121         } else {
122         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 1, interfaceHash);
123         ref.invoke(call);
124         hero.interfaces.BnRoleMapperValue $result;
125         try {
126             java.io.ObjectInput JavaDoc in = call.getInputStream();
127             $result = (hero.interfaces.BnRoleMapperValue) in.readObject();
128         } catch (java.io.IOException JavaDoc e) {
129             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
130         } catch (java.lang.ClassNotFoundException JavaDoc e) {
131             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
132         } finally {
133             ref.done(call);
134         }
135         return $result;
136         }
137     } catch (java.lang.RuntimeException JavaDoc e) {
138         throw e;
139     } catch (java.rmi.RemoteException JavaDoc e) {
140         throw e;
141     } catch (java.lang.Exception JavaDoc e) {
142         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
143     }
144     }
145     
146     // implementation of getEJBHome()
147
public javax.ejb.EJBHome JavaDoc getEJBHome()
148     throws java.rmi.RemoteException JavaDoc
149     {
150     try {
151         if (useNewInvoke) {
152         Object JavaDoc $result = ref.invoke(this, $method_getEJBHome_2, null, 3163754803894080547L);
153         return ((javax.ejb.EJBHome JavaDoc) $result);
154         } else {
155         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
156         ref.invoke(call);
157         javax.ejb.EJBHome JavaDoc $result;
158         try {
159             java.io.ObjectInput JavaDoc in = call.getInputStream();
160             $result = (javax.ejb.EJBHome JavaDoc) in.readObject();
161         } catch (java.io.IOException JavaDoc e) {
162             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
163         } catch (java.lang.ClassNotFoundException JavaDoc e) {
164             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
165         } finally {
166             ref.done(call);
167         }
168         return $result;
169         }
170     } catch (java.lang.RuntimeException JavaDoc e) {
171         throw e;
172     } catch (java.rmi.RemoteException JavaDoc e) {
173         throw e;
174     } catch (java.lang.Exception JavaDoc e) {
175         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
176     }
177     }
178     
179     // implementation of getHandle()
180
public javax.ejb.Handle JavaDoc getHandle()
181     throws java.rmi.RemoteException JavaDoc
182     {
183     try {
184         if (useNewInvoke) {
185         Object JavaDoc $result = ref.invoke(this, $method_getHandle_3, null, -1299374689989208114L);
186         return ((javax.ejb.Handle JavaDoc) $result);
187         } else {
188         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
189         ref.invoke(call);
190         javax.ejb.Handle JavaDoc $result;
191         try {
192             java.io.ObjectInput JavaDoc in = call.getInputStream();
193             $result = (javax.ejb.Handle JavaDoc) in.readObject();
194         } catch (java.io.IOException JavaDoc e) {
195             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
196         } catch (java.lang.ClassNotFoundException JavaDoc e) {
197             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
198         } finally {
199             ref.done(call);
200         }
201         return $result;
202         }
203     } catch (java.lang.RuntimeException JavaDoc e) {
204         throw e;
205     } catch (java.rmi.RemoteException JavaDoc e) {
206         throw e;
207     } catch (java.lang.Exception JavaDoc e) {
208         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
209     }
210     }
211     
212     // implementation of getName()
213
public java.lang.String JavaDoc getName()
214     throws java.rmi.RemoteException JavaDoc
215     {
216     try {
217         if (useNewInvoke) {
218         Object JavaDoc $result = ref.invoke(this, $method_getName_4, null, 6317137956467216454L);
219         return ((java.lang.String JavaDoc) $result);
220         } else {
221         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
222         ref.invoke(call);
223         java.lang.String JavaDoc $result;
224         try {
225             java.io.ObjectInput JavaDoc in = call.getInputStream();
226             $result = (java.lang.String JavaDoc) in.readObject();
227         } catch (java.io.IOException JavaDoc e) {
228             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
229         } catch (java.lang.ClassNotFoundException 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 getPrimaryKey()
246
public java.lang.Object JavaDoc getPrimaryKey()
247     throws java.rmi.RemoteException JavaDoc
248     {
249     try {
250         if (useNewInvoke) {
251         Object JavaDoc $result = ref.invoke(this, $method_getPrimaryKey_5, null, 4840115071604865751L);
252         return ((java.lang.Object JavaDoc) $result);
253         } else {
254         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
255         ref.invoke(call);
256         java.lang.Object JavaDoc $result;
257         try {
258             java.io.ObjectInput JavaDoc in = call.getInputStream();
259             $result = (java.lang.Object JavaDoc) in.readObject();
260         } catch (java.io.IOException JavaDoc e) {
261             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
262         } catch (java.lang.ClassNotFoundException JavaDoc e) {
263             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
264         } finally {
265             ref.done(call);
266         }
267         return $result;
268         }
269     } catch (java.lang.RuntimeException JavaDoc e) {
270         throw e;
271     } catch (java.rmi.RemoteException JavaDoc e) {
272         throw e;
273     } catch (java.lang.Exception JavaDoc e) {
274         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
275     }
276     }
277     
278     // implementation of getType()
279
public int getType()
280     throws java.rmi.RemoteException JavaDoc
281     {
282     try {
283         if (useNewInvoke) {
284         Object JavaDoc $result = ref.invoke(this, $method_getType_6, null, -7030183335631564859L);
285         return ((java.lang.Integer JavaDoc) $result).intValue();
286         } else {
287         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
288         ref.invoke(call);
289         int $result;
290         try {
291             java.io.ObjectInput JavaDoc in = call.getInputStream();
292             $result = in.readInt();
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 isIdentical(EJBObject)
310
public boolean isIdentical(javax.ejb.EJBObject JavaDoc $param_EJBObject_1)
311     throws java.rmi.RemoteException JavaDoc
312     {
313     try {
314         if (useNewInvoke) {
315         Object JavaDoc $result = ref.invoke(this, $method_isIdentical_7, new java.lang.Object JavaDoc[] {$param_EJBObject_1}, -5909123752501984271L);
316         return ((java.lang.Boolean JavaDoc) $result).booleanValue();
317         } else {
318         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
319         try {
320             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
321             out.writeObject($param_EJBObject_1);
322         } catch (java.io.IOException JavaDoc e) {
323             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
324         }
325         ref.invoke(call);
326         boolean $result;
327         try {
328             java.io.ObjectInput JavaDoc in = call.getInputStream();
329             $result = in.readBoolean();
330         } catch (java.io.IOException JavaDoc e) {
331             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
332         } finally {
333             ref.done(call);
334         }
335         return $result;
336         }
337     } catch (java.lang.RuntimeException JavaDoc e) {
338         throw e;
339     } catch (java.rmi.RemoteException JavaDoc e) {
340         throw e;
341     } catch (java.lang.Exception JavaDoc e) {
342         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
343     }
344     }
345     
346     // implementation of remove()
347
public void remove()
348     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
349     {
350     try {
351         if (useNewInvoke) {
352         ref.invoke(this, $method_remove_8, null, -5013858639939630501L);
353         } else {
354         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 8, interfaceHash);
355         ref.invoke(call);
356         ref.done(call);
357         }
358     } catch (java.lang.RuntimeException JavaDoc e) {
359         throw e;
360     } catch (java.rmi.RemoteException JavaDoc e) {
361         throw e;
362     } catch (javax.ejb.RemoveException JavaDoc e) {
363         throw e;
364     } catch (java.lang.Exception JavaDoc e) {
365         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
366     }
367     }
368     
369     // implementation of setBnRoleMapperValue(BnRoleMapperValue)
370
public void setBnRoleMapperValue(hero.interfaces.BnRoleMapperValue $param_BnRoleMapperValue_1)
371     throws java.rmi.RemoteException JavaDoc
372     {
373     try {
374         if (useNewInvoke) {
375         ref.invoke(this, $method_setBnRoleMapperValue_9, new java.lang.Object JavaDoc[] {$param_BnRoleMapperValue_1}, -3552166846736906816L);
376         } else {
377         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 9, interfaceHash);
378         try {
379             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
380             out.writeObject($param_BnRoleMapperValue_1);
381         } catch (java.io.IOException JavaDoc e) {
382             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
383         }
384         ref.invoke(call);
385         ref.done(call);
386         }
387     } catch (java.lang.RuntimeException JavaDoc e) {
388         throw e;
389     } catch (java.rmi.RemoteException JavaDoc e) {
390         throw e;
391     } catch (java.lang.Exception JavaDoc e) {
392         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
393     }
394     }
395     
396     // implementation of setName(String)
397
public void setName(java.lang.String JavaDoc $param_String_1)
398     throws java.rmi.RemoteException JavaDoc
399     {
400     try {
401         if (useNewInvoke) {
402         ref.invoke(this, $method_setName_10, new java.lang.Object JavaDoc[] {$param_String_1}, 1344297395548290975L);
403         } else {
404         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 10, interfaceHash);
405         try {
406             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
407             out.writeObject($param_String_1);
408         } catch (java.io.IOException JavaDoc e) {
409             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
410         }
411         ref.invoke(call);
412         ref.done(call);
413         }
414     } catch (java.lang.RuntimeException JavaDoc e) {
415         throw e;
416     } catch (java.rmi.RemoteException JavaDoc e) {
417         throw e;
418     } catch (java.lang.Exception JavaDoc e) {
419         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
420     }
421     }
422     
423     // implementation of setType(int)
424
public void setType(int $param_int_1)
425     throws java.rmi.RemoteException JavaDoc
426     {
427     try {
428         if (useNewInvoke) {
429         ref.invoke(this, $method_setType_11, new java.lang.Object JavaDoc[] {new java.lang.Integer JavaDoc($param_int_1)}, -7949851783537712531L);
430         } else {
431         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 11, interfaceHash);
432         try {
433             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
434             out.writeInt($param_int_1);
435         } catch (java.io.IOException JavaDoc e) {
436             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
437         }
438         ref.invoke(call);
439         ref.done(call);
440         }
441     } catch (java.lang.RuntimeException JavaDoc e) {
442         throw e;
443     } catch (java.rmi.RemoteException JavaDoc e) {
444         throw e;
445     } catch (java.lang.Exception JavaDoc e) {
446         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
447     }
448     }
449 }
450
Popular Tags