KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASBnRole1507592493Remote_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 JOnASBnRole1507592493Remote_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.BnRole, 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.BnRoleMapperLocal getBnRoleMapper()"),
12     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnRoleValue getBnRoleValue()"),
13     new java.rmi.server.Operation JavaDoc("java.lang.String getDescription()"),
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.String getId()"),
17     new java.rmi.server.Operation JavaDoc("java.lang.String getName()"),
18     new java.rmi.server.Operation JavaDoc("java.lang.Object getPrimaryKey()"),
19     new java.rmi.server.Operation JavaDoc("boolean isIdentical(javax.ejb.EJBObject)"),
20     new java.rmi.server.Operation JavaDoc("void remove()"),
21     new java.rmi.server.Operation JavaDoc("void setBnRoleValue(hero.interfaces.BnRoleValue)")
22     };
23     
24     private static final long interfaceHash = 1546162445181514019L;
25     
26     private static final long serialVersionUID = 2;
27     
28     private static boolean useNewInvoke;
29     private static java.lang.reflect.Method JavaDoc $method_getBnRoleMapper_0;
30     private static java.lang.reflect.Method JavaDoc $method_getBnRoleValue_1;
31     private static java.lang.reflect.Method JavaDoc $method_getDescription_2;
32     private static java.lang.reflect.Method JavaDoc $method_getEJBHome_3;
33     private static java.lang.reflect.Method JavaDoc $method_getHandle_4;
34     private static java.lang.reflect.Method JavaDoc $method_getId_5;
35     private static java.lang.reflect.Method JavaDoc $method_getName_6;
36     private static java.lang.reflect.Method JavaDoc $method_getPrimaryKey_7;
37     private static java.lang.reflect.Method JavaDoc $method_isIdentical_8;
38     private static java.lang.reflect.Method JavaDoc $method_remove_9;
39     private static java.lang.reflect.Method JavaDoc $method_setBnRoleValue_10;
40     
41     static {
42     try {
43         java.rmi.server.RemoteRef JavaDoc.class.getMethod("invoke",
44         new java.lang.Class JavaDoc[] {
45             java.rmi.Remote JavaDoc.class,
46             java.lang.reflect.Method JavaDoc.class,
47             java.lang.Object JavaDoc[].class,
48             long.class
49         });
50         useNewInvoke = true;
51         $method_getBnRoleMapper_0 = hero.interfaces.BnRole.class.getMethod("getBnRoleMapper", new java.lang.Class JavaDoc[] {});
52         $method_getBnRoleValue_1 = hero.interfaces.BnRole.class.getMethod("getBnRoleValue", new java.lang.Class JavaDoc[] {});
53         $method_getDescription_2 = hero.interfaces.BnRole.class.getMethod("getDescription", new java.lang.Class JavaDoc[] {});
54         $method_getEJBHome_3 = javax.ejb.EJBObject JavaDoc.class.getMethod("getEJBHome", new java.lang.Class JavaDoc[] {});
55         $method_getHandle_4 = javax.ejb.EJBObject JavaDoc.class.getMethod("getHandle", new java.lang.Class JavaDoc[] {});
56         $method_getId_5 = hero.interfaces.BnRole.class.getMethod("getId", new java.lang.Class JavaDoc[] {});
57         $method_getName_6 = hero.interfaces.BnRole.class.getMethod("getName", new java.lang.Class JavaDoc[] {});
58         $method_getPrimaryKey_7 = javax.ejb.EJBObject JavaDoc.class.getMethod("getPrimaryKey", new java.lang.Class JavaDoc[] {});
59         $method_isIdentical_8 = javax.ejb.EJBObject JavaDoc.class.getMethod("isIdentical", new java.lang.Class JavaDoc[] {javax.ejb.EJBObject JavaDoc.class});
60         $method_remove_9 = javax.ejb.EJBObject JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {});
61         $method_setBnRoleValue_10 = hero.interfaces.BnRole.class.getMethod("setBnRoleValue", new java.lang.Class JavaDoc[] {hero.interfaces.BnRoleValue.class});
62     } catch (java.lang.NoSuchMethodException JavaDoc e) {
63         useNewInvoke = false;
64     }
65     }
66     
67     // constructors
68
public JOnASBnRole1507592493Remote_Stub() {
69     super();
70     }
71     public JOnASBnRole1507592493Remote_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
72     super(ref);
73     }
74     
75     // methods from remote interfaces
76

77     // implementation of getBnRoleMapper()
78
public hero.interfaces.BnRoleMapperLocal getBnRoleMapper()
79     throws java.rmi.RemoteException JavaDoc
80     {
81     try {
82         if (useNewInvoke) {
83         Object JavaDoc $result = ref.invoke(this, $method_getBnRoleMapper_0, null, -7905094465762913729L);
84         return ((hero.interfaces.BnRoleMapperLocal) $result);
85         } else {
86         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 0, interfaceHash);
87         ref.invoke(call);
88         hero.interfaces.BnRoleMapperLocal $result;
89         try {
90             java.io.ObjectInput JavaDoc in = call.getInputStream();
91             $result = (hero.interfaces.BnRoleMapperLocal) 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 (java.lang.Exception JavaDoc e) {
106         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
107     }
108     }
109     
110     // implementation of getBnRoleValue()
111
public hero.interfaces.BnRoleValue getBnRoleValue()
112     throws java.rmi.RemoteException JavaDoc
113     {
114     try {
115         if (useNewInvoke) {
116         Object JavaDoc $result = ref.invoke(this, $method_getBnRoleValue_1, null, 6798023338934532364L);
117         return ((hero.interfaces.BnRoleValue) $result);
118         } else {
119         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 1, interfaceHash);
120         ref.invoke(call);
121         hero.interfaces.BnRoleValue $result;
122         try {
123             java.io.ObjectInput JavaDoc in = call.getInputStream();
124             $result = (hero.interfaces.BnRoleValue) in.readObject();
125         } catch (java.io.IOException JavaDoc e) {
126             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
127         } catch (java.lang.ClassNotFoundException JavaDoc e) {
128             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
129         } finally {
130             ref.done(call);
131         }
132         return $result;
133         }
134     } catch (java.lang.RuntimeException JavaDoc e) {
135         throw e;
136     } catch (java.rmi.RemoteException JavaDoc e) {
137         throw e;
138     } catch (java.lang.Exception JavaDoc e) {
139         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
140     }
141     }
142     
143     // implementation of getDescription()
144
public java.lang.String JavaDoc getDescription()
145     throws java.rmi.RemoteException JavaDoc
146     {
147     try {
148         if (useNewInvoke) {
149         Object JavaDoc $result = ref.invoke(this, $method_getDescription_2, null, 6422245352532609268L);
150         return ((java.lang.String JavaDoc) $result);
151         } else {
152         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
153         ref.invoke(call);
154         java.lang.String JavaDoc $result;
155         try {
156             java.io.ObjectInput JavaDoc in = call.getInputStream();
157             $result = (java.lang.String JavaDoc) in.readObject();
158         } catch (java.io.IOException JavaDoc e) {
159             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
160         } catch (java.lang.ClassNotFoundException JavaDoc e) {
161             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
162         } finally {
163             ref.done(call);
164         }
165         return $result;
166         }
167     } catch (java.lang.RuntimeException JavaDoc e) {
168         throw e;
169     } catch (java.rmi.RemoteException JavaDoc e) {
170         throw e;
171     } catch (java.lang.Exception JavaDoc e) {
172         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
173     }
174     }
175     
176     // implementation of getEJBHome()
177
public javax.ejb.EJBHome JavaDoc getEJBHome()
178     throws java.rmi.RemoteException JavaDoc
179     {
180     try {
181         if (useNewInvoke) {
182         Object JavaDoc $result = ref.invoke(this, $method_getEJBHome_3, null, 3163754803894080547L);
183         return ((javax.ejb.EJBHome JavaDoc) $result);
184         } else {
185         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
186         ref.invoke(call);
187         javax.ejb.EJBHome JavaDoc $result;
188         try {
189             java.io.ObjectInput JavaDoc in = call.getInputStream();
190             $result = (javax.ejb.EJBHome JavaDoc) in.readObject();
191         } catch (java.io.IOException JavaDoc e) {
192             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
193         } catch (java.lang.ClassNotFoundException JavaDoc e) {
194             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
195         } finally {
196             ref.done(call);
197         }
198         return $result;
199         }
200     } catch (java.lang.RuntimeException JavaDoc e) {
201         throw e;
202     } catch (java.rmi.RemoteException JavaDoc e) {
203         throw e;
204     } catch (java.lang.Exception JavaDoc e) {
205         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
206     }
207     }
208     
209     // implementation of getHandle()
210
public javax.ejb.Handle JavaDoc getHandle()
211     throws java.rmi.RemoteException JavaDoc
212     {
213     try {
214         if (useNewInvoke) {
215         Object JavaDoc $result = ref.invoke(this, $method_getHandle_4, null, -1299374689989208114L);
216         return ((javax.ejb.Handle JavaDoc) $result);
217         } else {
218         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
219         ref.invoke(call);
220         javax.ejb.Handle JavaDoc $result;
221         try {
222             java.io.ObjectInput JavaDoc in = call.getInputStream();
223             $result = (javax.ejb.Handle JavaDoc) in.readObject();
224         } catch (java.io.IOException JavaDoc e) {
225             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
226         } catch (java.lang.ClassNotFoundException JavaDoc e) {
227             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
228         } finally {
229             ref.done(call);
230         }
231         return $result;
232         }
233     } catch (java.lang.RuntimeException JavaDoc e) {
234         throw e;
235     } catch (java.rmi.RemoteException JavaDoc e) {
236         throw e;
237     } catch (java.lang.Exception JavaDoc e) {
238         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
239     }
240     }
241     
242     // implementation of getId()
243
public java.lang.String JavaDoc getId()
244     throws java.rmi.RemoteException JavaDoc
245     {
246     try {
247         if (useNewInvoke) {
248         Object JavaDoc $result = ref.invoke(this, $method_getId_5, null, -2624672516422252640L);
249         return ((java.lang.String JavaDoc) $result);
250         } else {
251         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
252         ref.invoke(call);
253         java.lang.String JavaDoc $result;
254         try {
255             java.io.ObjectInput JavaDoc in = call.getInputStream();
256             $result = (java.lang.String JavaDoc) in.readObject();
257         } catch (java.io.IOException JavaDoc e) {
258             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
259         } catch (java.lang.ClassNotFoundException JavaDoc e) {
260             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
261         } finally {
262             ref.done(call);
263         }
264         return $result;
265         }
266     } catch (java.lang.RuntimeException JavaDoc e) {
267         throw e;
268     } catch (java.rmi.RemoteException JavaDoc e) {
269         throw e;
270     } catch (java.lang.Exception JavaDoc e) {
271         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
272     }
273     }
274     
275     // implementation of getName()
276
public java.lang.String JavaDoc getName()
277     throws java.rmi.RemoteException JavaDoc
278     {
279     try {
280         if (useNewInvoke) {
281         Object JavaDoc $result = ref.invoke(this, $method_getName_6, null, 6317137956467216454L);
282         return ((java.lang.String JavaDoc) $result);
283         } else {
284         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
285         ref.invoke(call);
286         java.lang.String JavaDoc $result;
287         try {
288             java.io.ObjectInput JavaDoc in = call.getInputStream();
289             $result = (java.lang.String JavaDoc) in.readObject();
290         } catch (java.io.IOException JavaDoc e) {
291             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
292         } catch (java.lang.ClassNotFoundException JavaDoc e) {
293             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
294         } finally {
295             ref.done(call);
296         }
297         return $result;
298         }
299     } catch (java.lang.RuntimeException JavaDoc e) {
300         throw e;
301     } catch (java.rmi.RemoteException JavaDoc e) {
302         throw e;
303     } catch (java.lang.Exception JavaDoc e) {
304         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
305     }
306     }
307     
308     // implementation of getPrimaryKey()
309
public java.lang.Object JavaDoc getPrimaryKey()
310     throws java.rmi.RemoteException JavaDoc
311     {
312     try {
313         if (useNewInvoke) {
314         Object JavaDoc $result = ref.invoke(this, $method_getPrimaryKey_7, null, 4840115071604865751L);
315         return ((java.lang.Object JavaDoc) $result);
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         java.lang.Object JavaDoc $result;
320         try {
321             java.io.ObjectInput JavaDoc in = call.getInputStream();
322             $result = (java.lang.Object JavaDoc) in.readObject();
323         } catch (java.io.IOException JavaDoc e) {
324             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
325         } catch (java.lang.ClassNotFoundException JavaDoc e) {
326             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
327         } finally {
328             ref.done(call);
329         }
330         return $result;
331         }
332     } catch (java.lang.RuntimeException JavaDoc e) {
333         throw e;
334     } catch (java.rmi.RemoteException JavaDoc e) {
335         throw e;
336     } catch (java.lang.Exception JavaDoc e) {
337         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
338     }
339     }
340     
341     // implementation of isIdentical(EJBObject)
342
public boolean isIdentical(javax.ejb.EJBObject JavaDoc $param_EJBObject_1)
343     throws java.rmi.RemoteException JavaDoc
344     {
345     try {
346         if (useNewInvoke) {
347         Object JavaDoc $result = ref.invoke(this, $method_isIdentical_8, new java.lang.Object JavaDoc[] {$param_EJBObject_1}, -5909123752501984271L);
348         return ((java.lang.Boolean JavaDoc) $result).booleanValue();
349         } else {
350         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 8, interfaceHash);
351         try {
352             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
353             out.writeObject($param_EJBObject_1);
354         } catch (java.io.IOException JavaDoc e) {
355             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
356         }
357         ref.invoke(call);
358         boolean $result;
359         try {
360             java.io.ObjectInput JavaDoc in = call.getInputStream();
361             $result = in.readBoolean();
362         } catch (java.io.IOException JavaDoc e) {
363             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
364         } finally {
365             ref.done(call);
366         }
367         return $result;
368         }
369     } catch (java.lang.RuntimeException JavaDoc e) {
370         throw e;
371     } catch (java.rmi.RemoteException JavaDoc e) {
372         throw e;
373     } catch (java.lang.Exception JavaDoc e) {
374         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
375     }
376     }
377     
378     // implementation of remove()
379
public void remove()
380     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
381     {
382     try {
383         if (useNewInvoke) {
384         ref.invoke(this, $method_remove_9, null, -5013858639939630501L);
385         } else {
386         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 9, interfaceHash);
387         ref.invoke(call);
388         ref.done(call);
389         }
390     } catch (java.lang.RuntimeException JavaDoc e) {
391         throw e;
392     } catch (java.rmi.RemoteException JavaDoc e) {
393         throw e;
394     } catch (javax.ejb.RemoveException JavaDoc e) {
395         throw e;
396     } catch (java.lang.Exception JavaDoc e) {
397         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
398     }
399     }
400     
401     // implementation of setBnRoleValue(BnRoleValue)
402
public void setBnRoleValue(hero.interfaces.BnRoleValue $param_BnRoleValue_1)
403     throws java.rmi.RemoteException JavaDoc
404     {
405     try {
406         if (useNewInvoke) {
407         ref.invoke(this, $method_setBnRoleValue_10, new java.lang.Object JavaDoc[] {$param_BnRoleValue_1}, -1956312129036439790L);
408         } else {
409         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 10, interfaceHash);
410         try {
411             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
412             out.writeObject($param_BnRoleValue_1);
413         } catch (java.io.IOException JavaDoc e) {
414             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
415         }
416         ref.invoke(call);
417         ref.done(call);
418         }
419     } catch (java.lang.RuntimeException JavaDoc e) {
420         throw e;
421     } catch (java.rmi.RemoteException JavaDoc e) {
422         throw e;
423     } catch (java.lang.Exception JavaDoc e) {
424         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
425     }
426     }
427 }
428
Popular Tags