KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASBnNode_1286725715Home_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 JOnASBnNode_1286725715Home_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.BnNodeHome, 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.BnNode create(hero.interfaces.BnNodeValue)"),
12     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnNode create(java.lang.String, int)"),
13     new java.rmi.server.Operation JavaDoc("java.util.Collection findAll()"),
14     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnNode findByName(java.lang.String, java.lang.String)"),
15     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnNode findByPrimaryKey(hero.interfaces.BnNodePK)"),
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 = -1724239472346480252L;
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.BnNodeHome.class.getMethod("create", new java.lang.Class JavaDoc[] {hero.interfaces.BnNodeValue.class});
48         $method_create_1 = hero.interfaces.BnNodeHome.class.getMethod("create", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, int.class});
49         $method_findAll_2 = hero.interfaces.BnNodeHome.class.getMethod("findAll", new java.lang.Class JavaDoc[] {});
50         $method_findByName_3 = hero.interfaces.BnNodeHome.class.getMethod("findByName", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
51         $method_findByPrimaryKey_4 = hero.interfaces.BnNodeHome.class.getMethod("findByPrimaryKey", new java.lang.Class JavaDoc[] {hero.interfaces.BnNodePK.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 JOnASBnNode_1286725715Home_Stub() {
63     super();
64     }
65     public JOnASBnNode_1286725715Home_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
66     super(ref);
67     }
68     
69     // methods from remote interfaces
70

71     // implementation of create(BnNodeValue)
72
public hero.interfaces.BnNode create(hero.interfaces.BnNodeValue $param_BnNodeValue_1)
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, new java.lang.Object JavaDoc[] {$param_BnNodeValue_1}, -2164528038805668631L);
78         return ((hero.interfaces.BnNode) $result);
79         } else {
80         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 0, interfaceHash);
81         try {
82             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
83             out.writeObject($param_BnNodeValue_1);
84         } catch (java.io.IOException JavaDoc e) {
85             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
86         }
87         ref.invoke(call);
88         hero.interfaces.BnNode $result;
89         try {
90             java.io.ObjectInput JavaDoc in = call.getInputStream();
91             $result = (hero.interfaces.BnNode) 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 (hero.interfaces.InvalidValueException e) {
106         throw e;
107     } catch (javax.ejb.CreateException JavaDoc e) {
108         throw e;
109     } catch (java.lang.Exception JavaDoc e) {
110         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
111     }
112     }
113     
114     // implementation of create(String, int)
115
public hero.interfaces.BnNode create(java.lang.String JavaDoc $param_String_1, int $param_int_2)
116     throws hero.interfaces.InvalidValueException, java.rmi.RemoteException JavaDoc, javax.ejb.CreateException JavaDoc
117     {
118     try {
119         if (useNewInvoke) {
120         Object JavaDoc $result = ref.invoke(this, $method_create_1, new java.lang.Object JavaDoc[] {$param_String_1, new java.lang.Integer JavaDoc($param_int_2)}, 1060046374684199814L);
121         return ((hero.interfaces.BnNode) $result);
122         } else {
123         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 1, interfaceHash);
124         try {
125             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
126             out.writeObject($param_String_1);
127             out.writeInt($param_int_2);
128         } catch (java.io.IOException JavaDoc e) {
129             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
130         }
131         ref.invoke(call);
132         hero.interfaces.BnNode $result;
133         try {
134             java.io.ObjectInput JavaDoc in = call.getInputStream();
135             $result = (hero.interfaces.BnNode) in.readObject();
136         } catch (java.io.IOException JavaDoc e) {
137             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
138         } catch (java.lang.ClassNotFoundException JavaDoc e) {
139             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
140         } finally {
141             ref.done(call);
142         }
143         return $result;
144         }
145     } catch (java.lang.RuntimeException JavaDoc e) {
146         throw e;
147     } catch (java.rmi.RemoteException JavaDoc e) {
148         throw e;
149     } catch (hero.interfaces.InvalidValueException e) {
150         throw e;
151     } catch (javax.ejb.CreateException JavaDoc e) {
152         throw e;
153     } catch (java.lang.Exception JavaDoc e) {
154         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
155     }
156     }
157     
158     // implementation of findAll()
159
public java.util.Collection JavaDoc findAll()
160     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
161     {
162     try {
163         if (useNewInvoke) {
164         Object JavaDoc $result = ref.invoke(this, $method_findAll_2, null, -4609096605735334920L);
165         return ((java.util.Collection JavaDoc) $result);
166         } else {
167         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
168         ref.invoke(call);
169         java.util.Collection JavaDoc $result;
170         try {
171             java.io.ObjectInput JavaDoc in = call.getInputStream();
172             $result = (java.util.Collection JavaDoc) in.readObject();
173         } catch (java.io.IOException JavaDoc e) {
174             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
175         } catch (java.lang.ClassNotFoundException JavaDoc e) {
176             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
177         } finally {
178             ref.done(call);
179         }
180         return $result;
181         }
182     } catch (java.lang.RuntimeException JavaDoc e) {
183         throw e;
184     } catch (java.rmi.RemoteException JavaDoc e) {
185         throw e;
186     } catch (javax.ejb.FinderException JavaDoc e) {
187         throw e;
188     } catch (java.lang.Exception JavaDoc e) {
189         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
190     }
191     }
192     
193     // implementation of findByName(String, String)
194
public hero.interfaces.BnNode findByName(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2)
195     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
196     {
197     try {
198         if (useNewInvoke) {
199         Object JavaDoc $result = ref.invoke(this, $method_findByName_3, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2}, 3787955564541794791L);
200         return ((hero.interfaces.BnNode) $result);
201         } else {
202         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
203         try {
204             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
205             out.writeObject($param_String_1);
206             out.writeObject($param_String_2);
207         } catch (java.io.IOException JavaDoc e) {
208             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
209         }
210         ref.invoke(call);
211         hero.interfaces.BnNode $result;
212         try {
213             java.io.ObjectInput JavaDoc in = call.getInputStream();
214             $result = (hero.interfaces.BnNode) in.readObject();
215         } catch (java.io.IOException JavaDoc e) {
216             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
217         } catch (java.lang.ClassNotFoundException JavaDoc e) {
218             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
219         } finally {
220             ref.done(call);
221         }
222         return $result;
223         }
224     } catch (java.lang.RuntimeException JavaDoc e) {
225         throw e;
226     } catch (java.rmi.RemoteException JavaDoc e) {
227         throw e;
228     } catch (javax.ejb.FinderException JavaDoc e) {
229         throw e;
230     } catch (java.lang.Exception JavaDoc e) {
231         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
232     }
233     }
234     
235     // implementation of findByPrimaryKey(BnNodePK)
236
public hero.interfaces.BnNode findByPrimaryKey(hero.interfaces.BnNodePK $param_BnNodePK_1)
237     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
238     {
239     try {
240         if (useNewInvoke) {
241         Object JavaDoc $result = ref.invoke(this, $method_findByPrimaryKey_4, new java.lang.Object JavaDoc[] {$param_BnNodePK_1}, -1907426636453283062L);
242         return ((hero.interfaces.BnNode) $result);
243         } else {
244         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
245         try {
246             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
247             out.writeObject($param_BnNodePK_1);
248         } catch (java.io.IOException JavaDoc e) {
249             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
250         }
251         ref.invoke(call);
252         hero.interfaces.BnNode $result;
253         try {
254             java.io.ObjectInput JavaDoc in = call.getInputStream();
255             $result = (hero.interfaces.BnNode) in.readObject();
256         } catch (java.io.IOException JavaDoc e) {
257             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
258         } catch (java.lang.ClassNotFoundException JavaDoc e) {
259             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
260         } finally {
261             ref.done(call);
262         }
263         return $result;
264         }
265     } catch (java.lang.RuntimeException JavaDoc e) {
266         throw e;
267     } catch (java.rmi.RemoteException JavaDoc e) {
268         throw e;
269     } catch (javax.ejb.FinderException JavaDoc e) {
270         throw e;
271     } catch (java.lang.Exception JavaDoc e) {
272         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
273     }
274     }
275     
276     // implementation of getEJBMetaData()
277
public javax.ejb.EJBMetaData JavaDoc getEJBMetaData()
278     throws java.rmi.RemoteException JavaDoc
279     {
280     try {
281         if (useNewInvoke) {
282         Object JavaDoc $result = ref.invoke(this, $method_getEJBMetaData_5, null, 6217030353865232067L);
283         return ((javax.ejb.EJBMetaData JavaDoc) $result);
284         } else {
285         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
286         ref.invoke(call);
287         javax.ejb.EJBMetaData JavaDoc $result;
288         try {
289             java.io.ObjectInput JavaDoc in = call.getInputStream();
290             $result = (javax.ejb.EJBMetaData JavaDoc) in.readObject();
291         } catch (java.io.IOException JavaDoc e) {
292             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
293         } catch (java.lang.ClassNotFoundException 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 getHomeHandle()
310
public javax.ejb.HomeHandle JavaDoc getHomeHandle()
311     throws java.rmi.RemoteException JavaDoc
312     {
313     try {
314         if (useNewInvoke) {
315         Object JavaDoc $result = ref.invoke(this, $method_getHomeHandle_6, null, -8748260460775500658L);
316         return ((javax.ejb.HomeHandle JavaDoc) $result);
317         } else {
318         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
319         ref.invoke(call);
320         javax.ejb.HomeHandle JavaDoc $result;
321         try {
322             java.io.ObjectInput JavaDoc in = call.getInputStream();
323             $result = (javax.ejb.HomeHandle JavaDoc) in.readObject();
324         } catch (java.io.IOException JavaDoc e) {
325             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
326         } catch (java.lang.ClassNotFoundException JavaDoc e) {
327             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
328         } finally {
329             ref.done(call);
330         }
331         return $result;
332         }
333     } catch (java.lang.RuntimeException JavaDoc e) {
334         throw e;
335     } catch (java.rmi.RemoteException JavaDoc e) {
336         throw e;
337     } catch (java.lang.Exception JavaDoc e) {
338         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
339     }
340     }
341     
342     // implementation of remove(Object)
343
public void remove(java.lang.Object JavaDoc $param_Object_1)
344     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
345     {
346     try {
347         if (useNewInvoke) {
348         ref.invoke(this, $method_remove_7, new java.lang.Object JavaDoc[] {$param_Object_1}, 4460578865329725433L);
349         } else {
350         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
351         try {
352             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
353             out.writeObject($param_Object_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         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 remove(Handle)
372
public void remove(javax.ejb.Handle JavaDoc $param_Handle_1)
373     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
374     {
375     try {
376         if (useNewInvoke) {
377         ref.invoke(this, $method_remove_8, new java.lang.Object JavaDoc[] {$param_Handle_1}, 1121126102706750000L);
378         } else {
379         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 8, interfaceHash);
380         try {
381             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
382             out.writeObject($param_Handle_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 (javax.ejb.RemoveException JavaDoc e) {
394         throw e;
395     } catch (java.lang.Exception JavaDoc e) {
396         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
397     }
398     }
399 }
400
Popular Tags