KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASBnAgentEdge485421875Home_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 JOnASBnAgentEdge485421875Home_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.BnAgentEdgeHome, java.rmi.Remote JavaDoc, javax.ejb.EJBHome JavaDoc
9 {
10     private static final java.rmi.server.Operation JavaDoc[] operations = {
11     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnAgentEdge create()"),
12     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnAgentEdge create(hero.interfaces.BnAgentEdgeValue)"),
13     new java.rmi.server.Operation JavaDoc("java.util.Collection findAll()"),
14     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnAgentEdge findByName(java.lang.String, java.lang.String)"),
15     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnAgentEdge findByPrimaryKey(hero.interfaces.BnAgentEdgePK)"),
16     new java.rmi.server.Operation JavaDoc("javax.ejb.EJBMetaData getEJBMetaData()"),
17     new java.rmi.server.Operation JavaDoc("javax.ejb.HomeHandle getHomeHandle()"),
18     new java.rmi.server.Operation JavaDoc("void remove(java.lang.Object)"),
19     new java.rmi.server.Operation JavaDoc("void remove(javax.ejb.Handle)")
20     };
21     
22     private static final long interfaceHash = -7670434077285557921L;
23     
24     private static final long serialVersionUID = 2;
25     
26     private static boolean useNewInvoke;
27     private static java.lang.reflect.Method JavaDoc $method_create_0;
28     private static java.lang.reflect.Method JavaDoc $method_create_1;
29     private static java.lang.reflect.Method JavaDoc $method_findAll_2;
30     private static java.lang.reflect.Method JavaDoc $method_findByName_3;
31     private static java.lang.reflect.Method JavaDoc $method_findByPrimaryKey_4;
32     private static java.lang.reflect.Method JavaDoc $method_getEJBMetaData_5;
33     private static java.lang.reflect.Method JavaDoc $method_getHomeHandle_6;
34     private static java.lang.reflect.Method JavaDoc $method_remove_7;
35     private static java.lang.reflect.Method JavaDoc $method_remove_8;
36     
37     static {
38     try {
39         java.rmi.server.RemoteRef JavaDoc.class.getMethod("invoke",
40         new java.lang.Class JavaDoc[] {
41             java.rmi.Remote JavaDoc.class,
42             java.lang.reflect.Method JavaDoc.class,
43             java.lang.Object JavaDoc[].class,
44             long.class
45         });
46         useNewInvoke = true;
47         $method_create_0 = hero.interfaces.BnAgentEdgeHome.class.getMethod("create", new java.lang.Class JavaDoc[] {});
48         $method_create_1 = hero.interfaces.BnAgentEdgeHome.class.getMethod("create", new java.lang.Class JavaDoc[] {hero.interfaces.BnAgentEdgeValue.class});
49         $method_findAll_2 = hero.interfaces.BnAgentEdgeHome.class.getMethod("findAll", new java.lang.Class JavaDoc[] {});
50         $method_findByName_3 = hero.interfaces.BnAgentEdgeHome.class.getMethod("findByName", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
51         $method_findByPrimaryKey_4 = hero.interfaces.BnAgentEdgeHome.class.getMethod("findByPrimaryKey", new java.lang.Class JavaDoc[] {hero.interfaces.BnAgentEdgePK.class});
52         $method_getEJBMetaData_5 = javax.ejb.EJBHome JavaDoc.class.getMethod("getEJBMetaData", new java.lang.Class JavaDoc[] {});
53         $method_getHomeHandle_6 = javax.ejb.EJBHome JavaDoc.class.getMethod("getHomeHandle", new java.lang.Class JavaDoc[] {});
54         $method_remove_7 = javax.ejb.EJBHome JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {java.lang.Object JavaDoc.class});
55         $method_remove_8 = javax.ejb.EJBHome JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {javax.ejb.Handle JavaDoc.class});
56     } catch (java.lang.NoSuchMethodException JavaDoc e) {
57         useNewInvoke = false;
58     }
59     }
60     
61     // constructors
62
public JOnASBnAgentEdge485421875Home_Stub() {
63     super();
64     }
65     public JOnASBnAgentEdge485421875Home_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
66     super(ref);
67     }
68     
69     // methods from remote interfaces
70

71     // implementation of create()
72
public hero.interfaces.BnAgentEdge create()
73     throws hero.interfaces.InvalidValueException, java.rmi.RemoteException JavaDoc, javax.ejb.CreateException JavaDoc
74     {
75     try {
76         if (useNewInvoke) {
77         Object JavaDoc $result = ref.invoke(this, $method_create_0, null, 7560508173808306116L);
78         return ((hero.interfaces.BnAgentEdge) $result);
79         } else {
80         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 0, interfaceHash);
81         ref.invoke(call);
82         hero.interfaces.BnAgentEdge $result;
83         try {
84             java.io.ObjectInput JavaDoc in = call.getInputStream();
85             $result = (hero.interfaces.BnAgentEdge) in.readObject();
86         } catch (java.io.IOException JavaDoc e) {
87             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
88         } catch (java.lang.ClassNotFoundException JavaDoc e) {
89             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
90         } finally {
91             ref.done(call);
92         }
93         return $result;
94         }
95     } catch (java.lang.RuntimeException JavaDoc e) {
96         throw e;
97     } catch (java.rmi.RemoteException JavaDoc e) {
98         throw e;
99     } catch (hero.interfaces.InvalidValueException e) {
100         throw e;
101     } catch (javax.ejb.CreateException JavaDoc e) {
102         throw e;
103     } catch (java.lang.Exception JavaDoc e) {
104         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
105     }
106     }
107     
108     // implementation of create(BnAgentEdgeValue)
109
public hero.interfaces.BnAgentEdge create(hero.interfaces.BnAgentEdgeValue $param_BnAgentEdgeValue_1)
110     throws java.rmi.RemoteException JavaDoc, javax.ejb.CreateException JavaDoc
111     {
112     try {
113         if (useNewInvoke) {
114         Object JavaDoc $result = ref.invoke(this, $method_create_1, new java.lang.Object JavaDoc[] {$param_BnAgentEdgeValue_1}, -260402775370223123L);
115         return ((hero.interfaces.BnAgentEdge) $result);
116         } else {
117         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 1, interfaceHash);
118         try {
119             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
120             out.writeObject($param_BnAgentEdgeValue_1);
121         } catch (java.io.IOException JavaDoc e) {
122             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
123         }
124         ref.invoke(call);
125         hero.interfaces.BnAgentEdge $result;
126         try {
127             java.io.ObjectInput JavaDoc in = call.getInputStream();
128             $result = (hero.interfaces.BnAgentEdge) in.readObject();
129         } catch (java.io.IOException JavaDoc e) {
130             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
131         } catch (java.lang.ClassNotFoundException JavaDoc e) {
132             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
133         } finally {
134             ref.done(call);
135         }
136         return $result;
137         }
138     } catch (java.lang.RuntimeException JavaDoc e) {
139         throw e;
140     } catch (java.rmi.RemoteException JavaDoc e) {
141         throw e;
142     } catch (javax.ejb.CreateException JavaDoc e) {
143         throw e;
144     } catch (java.lang.Exception JavaDoc e) {
145         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
146     }
147     }
148     
149     // implementation of findAll()
150
public java.util.Collection JavaDoc findAll()
151     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
152     {
153     try {
154         if (useNewInvoke) {
155         Object JavaDoc $result = ref.invoke(this, $method_findAll_2, null, -4609096605735334920L);
156         return ((java.util.Collection JavaDoc) $result);
157         } else {
158         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
159         ref.invoke(call);
160         java.util.Collection JavaDoc $result;
161         try {
162             java.io.ObjectInput JavaDoc in = call.getInputStream();
163             $result = (java.util.Collection JavaDoc) in.readObject();
164         } catch (java.io.IOException JavaDoc e) {
165             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
166         } catch (java.lang.ClassNotFoundException JavaDoc e) {
167             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
168         } finally {
169             ref.done(call);
170         }
171         return $result;
172         }
173     } catch (java.lang.RuntimeException JavaDoc e) {
174         throw e;
175     } catch (java.rmi.RemoteException JavaDoc e) {
176         throw e;
177     } catch (javax.ejb.FinderException JavaDoc e) {
178         throw e;
179     } catch (java.lang.Exception JavaDoc e) {
180         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
181     }
182     }
183     
184     // implementation of findByName(String, String)
185
public hero.interfaces.BnAgentEdge findByName(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2)
186     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
187     {
188     try {
189         if (useNewInvoke) {
190         Object JavaDoc $result = ref.invoke(this, $method_findByName_3, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2}, 7450606332693043977L);
191         return ((hero.interfaces.BnAgentEdge) $result);
192         } else {
193         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
194         try {
195             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
196             out.writeObject($param_String_1);
197             out.writeObject($param_String_2);
198         } catch (java.io.IOException JavaDoc e) {
199             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
200         }
201         ref.invoke(call);
202         hero.interfaces.BnAgentEdge $result;
203         try {
204             java.io.ObjectInput JavaDoc in = call.getInputStream();
205             $result = (hero.interfaces.BnAgentEdge) in.readObject();
206         } catch (java.io.IOException JavaDoc e) {
207             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
208         } catch (java.lang.ClassNotFoundException JavaDoc e) {
209             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
210         } finally {
211             ref.done(call);
212         }
213         return $result;
214         }
215     } catch (java.lang.RuntimeException JavaDoc e) {
216         throw e;
217     } catch (java.rmi.RemoteException JavaDoc e) {
218         throw e;
219     } catch (javax.ejb.FinderException JavaDoc e) {
220         throw e;
221     } catch (java.lang.Exception JavaDoc e) {
222         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
223     }
224     }
225     
226     // implementation of findByPrimaryKey(BnAgentEdgePK)
227
public hero.interfaces.BnAgentEdge findByPrimaryKey(hero.interfaces.BnAgentEdgePK $param_BnAgentEdgePK_1)
228     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
229     {
230     try {
231         if (useNewInvoke) {
232         Object JavaDoc $result = ref.invoke(this, $method_findByPrimaryKey_4, new java.lang.Object JavaDoc[] {$param_BnAgentEdgePK_1}, 3546689333739664652L);
233         return ((hero.interfaces.BnAgentEdge) $result);
234         } else {
235         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
236         try {
237             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
238             out.writeObject($param_BnAgentEdgePK_1);
239         } catch (java.io.IOException JavaDoc e) {
240             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
241         }
242         ref.invoke(call);
243         hero.interfaces.BnAgentEdge $result;
244         try {
245             java.io.ObjectInput JavaDoc in = call.getInputStream();
246             $result = (hero.interfaces.BnAgentEdge) in.readObject();
247         } catch (java.io.IOException JavaDoc e) {
248             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
249         } catch (java.lang.ClassNotFoundException JavaDoc e) {
250             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
251         } finally {
252             ref.done(call);
253         }
254         return $result;
255         }
256     } catch (java.lang.RuntimeException JavaDoc e) {
257         throw e;
258     } catch (java.rmi.RemoteException JavaDoc e) {
259         throw e;
260     } catch (javax.ejb.FinderException JavaDoc e) {
261         throw e;
262     } catch (java.lang.Exception JavaDoc e) {
263         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
264     }
265     }
266     
267     // implementation of getEJBMetaData()
268
public javax.ejb.EJBMetaData JavaDoc getEJBMetaData()
269     throws java.rmi.RemoteException JavaDoc
270     {
271     try {
272         if (useNewInvoke) {
273         Object JavaDoc $result = ref.invoke(this, $method_getEJBMetaData_5, null, 6217030353865232067L);
274         return ((javax.ejb.EJBMetaData JavaDoc) $result);
275         } else {
276         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
277         ref.invoke(call);
278         javax.ejb.EJBMetaData JavaDoc $result;
279         try {
280             java.io.ObjectInput JavaDoc in = call.getInputStream();
281             $result = (javax.ejb.EJBMetaData JavaDoc) in.readObject();
282         } catch (java.io.IOException JavaDoc e) {
283             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
284         } catch (java.lang.ClassNotFoundException JavaDoc e) {
285             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
286         } finally {
287             ref.done(call);
288         }
289         return $result;
290         }
291     } catch (java.lang.RuntimeException JavaDoc e) {
292         throw e;
293     } catch (java.rmi.RemoteException JavaDoc e) {
294         throw e;
295     } catch (java.lang.Exception JavaDoc e) {
296         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
297     }
298     }
299     
300     // implementation of getHomeHandle()
301
public javax.ejb.HomeHandle JavaDoc getHomeHandle()
302     throws java.rmi.RemoteException JavaDoc
303     {
304     try {
305         if (useNewInvoke) {
306         Object JavaDoc $result = ref.invoke(this, $method_getHomeHandle_6, null, -8748260460775500658L);
307         return ((javax.ejb.HomeHandle JavaDoc) $result);
308         } else {
309         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
310         ref.invoke(call);
311         javax.ejb.HomeHandle JavaDoc $result;
312         try {
313             java.io.ObjectInput JavaDoc in = call.getInputStream();
314             $result = (javax.ejb.HomeHandle JavaDoc) in.readObject();
315         } catch (java.io.IOException JavaDoc e) {
316             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
317         } catch (java.lang.ClassNotFoundException JavaDoc e) {
318             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
319         } finally {
320             ref.done(call);
321         }
322         return $result;
323         }
324     } catch (java.lang.RuntimeException JavaDoc e) {
325         throw e;
326     } catch (java.rmi.RemoteException JavaDoc e) {
327         throw e;
328     } catch (java.lang.Exception JavaDoc e) {
329         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
330     }
331     }
332     
333     // implementation of remove(Object)
334
public void remove(java.lang.Object JavaDoc $param_Object_1)
335     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
336     {
337     try {
338         if (useNewInvoke) {
339         ref.invoke(this, $method_remove_7, new java.lang.Object JavaDoc[] {$param_Object_1}, 4460578865329725433L);
340         } else {
341         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
342         try {
343             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
344             out.writeObject($param_Object_1);
345         } catch (java.io.IOException JavaDoc e) {
346             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
347         }
348         ref.invoke(call);
349         ref.done(call);
350         }
351     } catch (java.lang.RuntimeException JavaDoc e) {
352         throw e;
353     } catch (java.rmi.RemoteException JavaDoc e) {
354         throw e;
355     } catch (javax.ejb.RemoveException JavaDoc e) {
356         throw e;
357     } catch (java.lang.Exception JavaDoc e) {
358         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
359     }
360     }
361     
362     // implementation of remove(Handle)
363
public void remove(javax.ejb.Handle JavaDoc $param_Handle_1)
364     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
365     {
366     try {
367         if (useNewInvoke) {
368         ref.invoke(this, $method_remove_8, new java.lang.Object JavaDoc[] {$param_Handle_1}, 1121126102706750000L);
369         } else {
370         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 8, interfaceHash);
371         try {
372             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
373             out.writeObject($param_Handle_1);
374         } catch (java.io.IOException JavaDoc e) {
375             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
376         }
377         ref.invoke(call);
378         ref.done(call);
379         }
380     } catch (java.lang.RuntimeException JavaDoc e) {
381         throw e;
382     } catch (java.rmi.RemoteException JavaDoc e) {
383         throw e;
384     } catch (javax.ejb.RemoveException JavaDoc e) {
385         throw e;
386     } catch (java.lang.Exception JavaDoc e) {
387         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
388     }
389     }
390 }
391
Popular Tags