KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASBnUserProperty_652281107Remote_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 JOnASBnUserProperty_652281107Remote_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.BnUserProperty, 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 getBnUser()"),
12     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnUserPropertyValue getBnUserPropertyValue()"),
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.Object getPrimaryKey()"),
16     new java.rmi.server.Operation JavaDoc("java.lang.String getTheKey()"),
17     new java.rmi.server.Operation JavaDoc("java.lang.String getTheValue()"),
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 setBnUserPropertyValue(hero.interfaces.BnUserPropertyValue)"),
21     new java.rmi.server.Operation JavaDoc("void setTheKey(java.lang.String)"),
22     new java.rmi.server.Operation JavaDoc("void setTheValue(java.lang.String)")
23     };
24     
25     private static final long interfaceHash = 7510138615684148206L;
26     
27     private static final long serialVersionUID = 2;
28     
29     private static boolean useNewInvoke;
30     private static java.lang.reflect.Method JavaDoc $method_getBnUser_0;
31     private static java.lang.reflect.Method JavaDoc $method_getBnUserPropertyValue_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_getPrimaryKey_4;
35     private static java.lang.reflect.Method JavaDoc $method_getTheKey_5;
36     private static java.lang.reflect.Method JavaDoc $method_getTheValue_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_setBnUserPropertyValue_9;
40     private static java.lang.reflect.Method JavaDoc $method_setTheKey_10;
41     private static java.lang.reflect.Method JavaDoc $method_setTheValue_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_getBnUser_0 = hero.interfaces.BnUserProperty.class.getMethod("getBnUser", new java.lang.Class JavaDoc[] {});
54         $method_getBnUserPropertyValue_1 = hero.interfaces.BnUserProperty.class.getMethod("getBnUserPropertyValue", 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_getPrimaryKey_4 = javax.ejb.EJBObject JavaDoc.class.getMethod("getPrimaryKey", new java.lang.Class JavaDoc[] {});
58         $method_getTheKey_5 = hero.interfaces.BnUserProperty.class.getMethod("getTheKey", new java.lang.Class JavaDoc[] {});
59         $method_getTheValue_6 = hero.interfaces.BnUserProperty.class.getMethod("getTheValue", 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_setBnUserPropertyValue_9 = hero.interfaces.BnUserProperty.class.getMethod("setBnUserPropertyValue", new java.lang.Class JavaDoc[] {hero.interfaces.BnUserPropertyValue.class});
63         $method_setTheKey_10 = hero.interfaces.BnUserProperty.class.getMethod("setTheKey", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class});
64         $method_setTheValue_11 = hero.interfaces.BnUserProperty.class.getMethod("setTheValue", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class});
65     } catch (java.lang.NoSuchMethodException JavaDoc e) {
66         useNewInvoke = false;
67     }
68     }
69     
70     // constructors
71
public JOnASBnUserProperty_652281107Remote_Stub() {
72     super();
73     }
74     public JOnASBnUserProperty_652281107Remote_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
75     super(ref);
76     }
77     
78     // methods from remote interfaces
79

80     // implementation of getBnUser()
81
public hero.interfaces.BnUserLocal getBnUser()
82     throws java.rmi.RemoteException JavaDoc
83     {
84     try {
85         if (useNewInvoke) {
86         Object JavaDoc $result = ref.invoke(this, $method_getBnUser_0, null, -963483686680487339L);
87         return ((hero.interfaces.BnUserLocal) $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.BnUserLocal $result;
92         try {
93             java.io.ObjectInput JavaDoc in = call.getInputStream();
94             $result = (hero.interfaces.BnUserLocal) 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 getBnUserPropertyValue()
114
public hero.interfaces.BnUserPropertyValue getBnUserPropertyValue()
115     throws java.rmi.RemoteException JavaDoc
116     {
117     try {
118         if (useNewInvoke) {
119         Object JavaDoc $result = ref.invoke(this, $method_getBnUserPropertyValue_1, null, -3666832732454761856L);
120         return ((hero.interfaces.BnUserPropertyValue) $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.BnUserPropertyValue $result;
125         try {
126             java.io.ObjectInput JavaDoc in = call.getInputStream();
127             $result = (hero.interfaces.BnUserPropertyValue) 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 getPrimaryKey()
213
public java.lang.Object JavaDoc getPrimaryKey()
214     throws java.rmi.RemoteException JavaDoc
215     {
216     try {
217         if (useNewInvoke) {
218         Object JavaDoc $result = ref.invoke(this, $method_getPrimaryKey_4, null, 4840115071604865751L);
219         return ((java.lang.Object 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.Object JavaDoc $result;
224         try {
225             java.io.ObjectInput JavaDoc in = call.getInputStream();
226             $result = (java.lang.Object 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 getTheKey()
246
public java.lang.String JavaDoc getTheKey()
247     throws java.rmi.RemoteException JavaDoc
248     {
249     try {
250         if (useNewInvoke) {
251         Object JavaDoc $result = ref.invoke(this, $method_getTheKey_5, null, -4415983027654962903L);
252         return ((java.lang.String 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.String JavaDoc $result;
257         try {
258             java.io.ObjectInput JavaDoc in = call.getInputStream();
259             $result = (java.lang.String 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 getTheValue()
279
public java.lang.String JavaDoc getTheValue()
280     throws java.rmi.RemoteException JavaDoc
281     {
282     try {
283         if (useNewInvoke) {
284         Object JavaDoc $result = ref.invoke(this, $method_getTheValue_6, null, 1410221645011511387L);
285         return ((java.lang.String JavaDoc) $result);
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         java.lang.String JavaDoc $result;
290         try {
291             java.io.ObjectInput JavaDoc in = call.getInputStream();
292             $result = (java.lang.String JavaDoc) in.readObject();
293         } catch (java.io.IOException JavaDoc e) {
294             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
295         } catch (java.lang.ClassNotFoundException JavaDoc e) {
296             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
297         } finally {
298             ref.done(call);
299         }
300         return $result;
301         }
302     } catch (java.lang.RuntimeException JavaDoc e) {
303         throw e;
304     } catch (java.rmi.RemoteException JavaDoc e) {
305         throw e;
306     } catch (java.lang.Exception JavaDoc e) {
307         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
308     }
309     }
310     
311     // implementation of isIdentical(EJBObject)
312
public boolean isIdentical(javax.ejb.EJBObject JavaDoc $param_EJBObject_1)
313     throws java.rmi.RemoteException JavaDoc
314     {
315     try {
316         if (useNewInvoke) {
317         Object JavaDoc $result = ref.invoke(this, $method_isIdentical_7, new java.lang.Object JavaDoc[] {$param_EJBObject_1}, -5909123752501984271L);
318         return ((java.lang.Boolean JavaDoc) $result).booleanValue();
319         } else {
320         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
321         try {
322             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
323             out.writeObject($param_EJBObject_1);
324         } catch (java.io.IOException JavaDoc e) {
325             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
326         }
327         ref.invoke(call);
328         boolean $result;
329         try {
330             java.io.ObjectInput JavaDoc in = call.getInputStream();
331             $result = in.readBoolean();
332         } catch (java.io.IOException JavaDoc e) {
333             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
334         } finally {
335             ref.done(call);
336         }
337         return $result;
338         }
339     } catch (java.lang.RuntimeException JavaDoc e) {
340         throw e;
341     } catch (java.rmi.RemoteException JavaDoc e) {
342         throw e;
343     } catch (java.lang.Exception JavaDoc e) {
344         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
345     }
346     }
347     
348     // implementation of remove()
349
public void remove()
350     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
351     {
352     try {
353         if (useNewInvoke) {
354         ref.invoke(this, $method_remove_8, null, -5013858639939630501L);
355         } else {
356         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 8, interfaceHash);
357         ref.invoke(call);
358         ref.done(call);
359         }
360     } catch (java.lang.RuntimeException JavaDoc e) {
361         throw e;
362     } catch (java.rmi.RemoteException JavaDoc e) {
363         throw e;
364     } catch (javax.ejb.RemoveException JavaDoc e) {
365         throw e;
366     } catch (java.lang.Exception JavaDoc e) {
367         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
368     }
369     }
370     
371     // implementation of setBnUserPropertyValue(BnUserPropertyValue)
372
public void setBnUserPropertyValue(hero.interfaces.BnUserPropertyValue $param_BnUserPropertyValue_1)
373     throws java.rmi.RemoteException JavaDoc
374     {
375     try {
376         if (useNewInvoke) {
377         ref.invoke(this, $method_setBnUserPropertyValue_9, new java.lang.Object JavaDoc[] {$param_BnUserPropertyValue_1}, 1645401150641895547L);
378         } else {
379         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 9, interfaceHash);
380         try {
381             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
382             out.writeObject($param_BnUserPropertyValue_1);
383         } catch (java.io.IOException JavaDoc e) {
384             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
385         }
386         ref.invoke(call);
387         ref.done(call);
388         }
389     } catch (java.lang.RuntimeException JavaDoc e) {
390         throw e;
391     } catch (java.rmi.RemoteException JavaDoc e) {
392         throw e;
393     } catch (java.lang.Exception JavaDoc e) {
394         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
395     }
396     }
397     
398     // implementation of setTheKey(String)
399
public void setTheKey(java.lang.String JavaDoc $param_String_1)
400     throws java.rmi.RemoteException JavaDoc
401     {
402     try {
403         if (useNewInvoke) {
404         ref.invoke(this, $method_setTheKey_10, new java.lang.Object JavaDoc[] {$param_String_1}, -6910684652834854345L);
405         } else {
406         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 10, interfaceHash);
407         try {
408             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
409             out.writeObject($param_String_1);
410         } catch (java.io.IOException JavaDoc e) {
411             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
412         }
413         ref.invoke(call);
414         ref.done(call);
415         }
416     } catch (java.lang.RuntimeException JavaDoc e) {
417         throw e;
418     } catch (java.rmi.RemoteException JavaDoc e) {
419         throw e;
420     } catch (java.lang.Exception JavaDoc e) {
421         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
422     }
423     }
424     
425     // implementation of setTheValue(String)
426
public void setTheValue(java.lang.String JavaDoc $param_String_1)
427     throws java.rmi.RemoteException JavaDoc
428     {
429     try {
430         if (useNewInvoke) {
431         ref.invoke(this, $method_setTheValue_11, new java.lang.Object JavaDoc[] {$param_String_1}, -5801307261233548463L);
432         } else {
433         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 11, interfaceHash);
434         try {
435             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
436             out.writeObject($param_String_1);
437         } catch (java.io.IOException JavaDoc e) {
438             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
439         }
440         ref.invoke(call);
441         ref.done(call);
442         }
443     } catch (java.lang.RuntimeException JavaDoc e) {
444         throw e;
445     } catch (java.rmi.RemoteException JavaDoc e) {
446         throw e;
447     } catch (java.lang.Exception JavaDoc e) {
448         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
449     }
450     }
451 }
452
Popular Tags