KickJava   Java API By Example, From Geeks To Geeks.

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

71     // implementation of create(BnAgentValue)
72
public hero.interfaces.BnAgent create(hero.interfaces.BnAgentValue $param_BnAgentValue_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_BnAgentValue_1}, 8874097910614782004L);
78         return ((hero.interfaces.BnAgent) $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_BnAgentValue_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.BnAgent $result;
89         try {
90             java.io.ObjectInput JavaDoc in = call.getInputStream();
91             $result = (hero.interfaces.BnAgent) 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)
115
public hero.interfaces.BnAgent create(java.lang.String JavaDoc $param_String_1)
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}, -2629586938552307123L);
121         return ((hero.interfaces.BnAgent) $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         } catch (java.io.IOException JavaDoc e) {
128             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
129         }
130         ref.invoke(call);
131         hero.interfaces.BnAgent $result;
132         try {
133             java.io.ObjectInput JavaDoc in = call.getInputStream();
134             $result = (hero.interfaces.BnAgent) in.readObject();
135         } catch (java.io.IOException JavaDoc e) {
136             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
137         } catch (java.lang.ClassNotFoundException JavaDoc e) {
138             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
139         } finally {
140             ref.done(call);
141         }
142         return $result;
143         }
144     } catch (java.lang.RuntimeException JavaDoc e) {
145         throw e;
146     } catch (java.rmi.RemoteException JavaDoc e) {
147         throw e;
148     } catch (hero.interfaces.InvalidValueException e) {
149         throw e;
150     } catch (javax.ejb.CreateException JavaDoc e) {
151         throw e;
152     } catch (java.lang.Exception JavaDoc e) {
153         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
154     }
155     }
156     
157     // implementation of findAll()
158
public java.util.Collection JavaDoc findAll()
159     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
160     {
161     try {
162         if (useNewInvoke) {
163         Object JavaDoc $result = ref.invoke(this, $method_findAll_2, null, -4609096605735334920L);
164         return ((java.util.Collection JavaDoc) $result);
165         } else {
166         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
167         ref.invoke(call);
168         java.util.Collection JavaDoc $result;
169         try {
170             java.io.ObjectInput JavaDoc in = call.getInputStream();
171             $result = (java.util.Collection JavaDoc) in.readObject();
172         } catch (java.io.IOException JavaDoc e) {
173             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
174         } catch (java.lang.ClassNotFoundException JavaDoc e) {
175             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
176         } finally {
177             ref.done(call);
178         }
179         return $result;
180         }
181     } catch (java.lang.RuntimeException JavaDoc e) {
182         throw e;
183     } catch (java.rmi.RemoteException JavaDoc e) {
184         throw e;
185     } catch (javax.ejb.FinderException JavaDoc e) {
186         throw e;
187     } catch (java.lang.Exception JavaDoc e) {
188         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
189     }
190     }
191     
192     // implementation of findByName(String, String)
193
public hero.interfaces.BnAgent findByName(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2)
194     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
195     {
196     try {
197         if (useNewInvoke) {
198         Object JavaDoc $result = ref.invoke(this, $method_findByName_3, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2}, -1150722779564494279L);
199         return ((hero.interfaces.BnAgent) $result);
200         } else {
201         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
202         try {
203             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
204             out.writeObject($param_String_1);
205             out.writeObject($param_String_2);
206         } catch (java.io.IOException JavaDoc e) {
207             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
208         }
209         ref.invoke(call);
210         hero.interfaces.BnAgent $result;
211         try {
212             java.io.ObjectInput JavaDoc in = call.getInputStream();
213             $result = (hero.interfaces.BnAgent) in.readObject();
214         } catch (java.io.IOException JavaDoc e) {
215             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
216         } catch (java.lang.ClassNotFoundException JavaDoc e) {
217             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
218         } finally {
219             ref.done(call);
220         }
221         return $result;
222         }
223     } catch (java.lang.RuntimeException JavaDoc e) {
224         throw e;
225     } catch (java.rmi.RemoteException JavaDoc e) {
226         throw e;
227     } catch (javax.ejb.FinderException JavaDoc e) {
228         throw e;
229     } catch (java.lang.Exception JavaDoc e) {
230         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
231     }
232     }
233     
234     // implementation of findByPrimaryKey(BnAgentPK)
235
public hero.interfaces.BnAgent findByPrimaryKey(hero.interfaces.BnAgentPK $param_BnAgentPK_1)
236     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
237     {
238     try {
239         if (useNewInvoke) {
240         Object JavaDoc $result = ref.invoke(this, $method_findByPrimaryKey_4, new java.lang.Object JavaDoc[] {$param_BnAgentPK_1}, 6065819717914162172L);
241         return ((hero.interfaces.BnAgent) $result);
242         } else {
243         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
244         try {
245             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
246             out.writeObject($param_BnAgentPK_1);
247         } catch (java.io.IOException JavaDoc e) {
248             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
249         }
250         ref.invoke(call);
251         hero.interfaces.BnAgent $result;
252         try {
253             java.io.ObjectInput JavaDoc in = call.getInputStream();
254             $result = (hero.interfaces.BnAgent) in.readObject();
255         } catch (java.io.IOException JavaDoc e) {
256             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
257         } catch (java.lang.ClassNotFoundException JavaDoc e) {
258             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
259         } finally {
260             ref.done(call);
261         }
262         return $result;
263         }
264     } catch (java.lang.RuntimeException JavaDoc e) {
265         throw e;
266     } catch (java.rmi.RemoteException JavaDoc e) {
267         throw e;
268     } catch (javax.ejb.FinderException 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 getEJBMetaData()
276
public javax.ejb.EJBMetaData JavaDoc getEJBMetaData()
277     throws java.rmi.RemoteException JavaDoc
278     {
279     try {
280         if (useNewInvoke) {
281         Object JavaDoc $result = ref.invoke(this, $method_getEJBMetaData_5, null, 6217030353865232067L);
282         return ((javax.ejb.EJBMetaData JavaDoc) $result);
283         } else {
284         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
285         ref.invoke(call);
286         javax.ejb.EJBMetaData JavaDoc $result;
287         try {
288             java.io.ObjectInput JavaDoc in = call.getInputStream();
289             $result = (javax.ejb.EJBMetaData 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 getHomeHandle()
309
public javax.ejb.HomeHandle JavaDoc getHomeHandle()
310     throws java.rmi.RemoteException JavaDoc
311     {
312     try {
313         if (useNewInvoke) {
314         Object JavaDoc $result = ref.invoke(this, $method_getHomeHandle_6, null, -8748260460775500658L);
315         return ((javax.ejb.HomeHandle JavaDoc) $result);
316         } else {
317         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
318         ref.invoke(call);
319         javax.ejb.HomeHandle JavaDoc $result;
320         try {
321             java.io.ObjectInput JavaDoc in = call.getInputStream();
322             $result = (javax.ejb.HomeHandle 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 remove(Object)
342
public void remove(java.lang.Object JavaDoc $param_Object_1)
343     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
344     {
345     try {
346         if (useNewInvoke) {
347         ref.invoke(this, $method_remove_7, new java.lang.Object JavaDoc[] {$param_Object_1}, 4460578865329725433L);
348         } else {
349         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
350         try {
351             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
352             out.writeObject($param_Object_1);
353         } catch (java.io.IOException JavaDoc e) {
354             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
355         }
356         ref.invoke(call);
357         ref.done(call);
358         }
359     } catch (java.lang.RuntimeException JavaDoc e) {
360         throw e;
361     } catch (java.rmi.RemoteException JavaDoc e) {
362         throw e;
363     } catch (javax.ejb.RemoveException JavaDoc e) {
364         throw e;
365     } catch (java.lang.Exception JavaDoc e) {
366         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
367     }
368     }
369     
370     // implementation of remove(Handle)
371
public void remove(javax.ejb.Handle JavaDoc $param_Handle_1)
372     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
373     {
374     try {
375         if (useNewInvoke) {
376         ref.invoke(this, $method_remove_8, new java.lang.Object JavaDoc[] {$param_Handle_1}, 1121126102706750000L);
377         } else {
378         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 8, interfaceHash);
379         try {
380             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
381             out.writeObject($param_Handle_1);
382         } catch (java.io.IOException JavaDoc e) {
383             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
384         }
385         ref.invoke(call);
386         ref.done(call);
387         }
388     } catch (java.lang.RuntimeException JavaDoc e) {
389         throw e;
390     } catch (java.rmi.RemoteException JavaDoc e) {
391         throw e;
392     } catch (javax.ejb.RemoveException JavaDoc e) {
393         throw e;
394     } catch (java.lang.Exception JavaDoc e) {
395         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
396     }
397     }
398 }
399
Popular Tags