KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASBnAgentEdge485421875Remote_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 JOnASBnAgentEdge485421875Remote_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.BnAgentEdge, 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.BnAgentEdgeValue getBnAgentEdgeValue()"),
12     new java.rmi.server.Operation JavaDoc("java.util.Date getCreationDate()"),
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("boolean isIdentical(javax.ejb.EJBObject)"),
18     new java.rmi.server.Operation JavaDoc("void remove()"),
19     new java.rmi.server.Operation JavaDoc("void setBnAgentEdgeValue(hero.interfaces.BnAgentEdgeValue)"),
20     new java.rmi.server.Operation JavaDoc("void setCreationDate(java.util.Date)")
21     };
22     
23     private static final long interfaceHash = 184488929605790399L;
24     
25     private static final long serialVersionUID = 2;
26     
27     private static boolean useNewInvoke;
28     private static java.lang.reflect.Method JavaDoc $method_getBnAgentEdgeValue_0;
29     private static java.lang.reflect.Method JavaDoc $method_getCreationDate_1;
30     private static java.lang.reflect.Method JavaDoc $method_getEJBHome_2;
31     private static java.lang.reflect.Method JavaDoc $method_getHandle_3;
32     private static java.lang.reflect.Method JavaDoc $method_getName_4;
33     private static java.lang.reflect.Method JavaDoc $method_getPrimaryKey_5;
34     private static java.lang.reflect.Method JavaDoc $method_isIdentical_6;
35     private static java.lang.reflect.Method JavaDoc $method_remove_7;
36     private static java.lang.reflect.Method JavaDoc $method_setBnAgentEdgeValue_8;
37     private static java.lang.reflect.Method JavaDoc $method_setCreationDate_9;
38     
39     static {
40     try {
41         java.rmi.server.RemoteRef JavaDoc.class.getMethod("invoke",
42         new java.lang.Class JavaDoc[] {
43             java.rmi.Remote JavaDoc.class,
44             java.lang.reflect.Method JavaDoc.class,
45             java.lang.Object JavaDoc[].class,
46             long.class
47         });
48         useNewInvoke = true;
49         $method_getBnAgentEdgeValue_0 = hero.interfaces.BnAgentEdge.class.getMethod("getBnAgentEdgeValue", new java.lang.Class JavaDoc[] {});
50         $method_getCreationDate_1 = hero.interfaces.BnAgentEdge.class.getMethod("getCreationDate", new java.lang.Class JavaDoc[] {});
51         $method_getEJBHome_2 = javax.ejb.EJBObject JavaDoc.class.getMethod("getEJBHome", new java.lang.Class JavaDoc[] {});
52         $method_getHandle_3 = javax.ejb.EJBObject JavaDoc.class.getMethod("getHandle", new java.lang.Class JavaDoc[] {});
53         $method_getName_4 = hero.interfaces.BnAgentEdge.class.getMethod("getName", new java.lang.Class JavaDoc[] {});
54         $method_getPrimaryKey_5 = javax.ejb.EJBObject JavaDoc.class.getMethod("getPrimaryKey", new java.lang.Class JavaDoc[] {});
55         $method_isIdentical_6 = javax.ejb.EJBObject JavaDoc.class.getMethod("isIdentical", new java.lang.Class JavaDoc[] {javax.ejb.EJBObject JavaDoc.class});
56         $method_remove_7 = javax.ejb.EJBObject JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {});
57         $method_setBnAgentEdgeValue_8 = hero.interfaces.BnAgentEdge.class.getMethod("setBnAgentEdgeValue", new java.lang.Class JavaDoc[] {hero.interfaces.BnAgentEdgeValue.class});
58         $method_setCreationDate_9 = hero.interfaces.BnAgentEdge.class.getMethod("setCreationDate", new java.lang.Class JavaDoc[] {java.util.Date JavaDoc.class});
59     } catch (java.lang.NoSuchMethodException JavaDoc e) {
60         useNewInvoke = false;
61     }
62     }
63     
64     // constructors
65
public JOnASBnAgentEdge485421875Remote_Stub() {
66     super();
67     }
68     public JOnASBnAgentEdge485421875Remote_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
69     super(ref);
70     }
71     
72     // methods from remote interfaces
73

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