KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASBnProjectConfig_1564617755Home_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 JOnASBnProjectConfig_1564617755Home_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.BnProjectConfigHome, 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.BnProjectConfig create()"),
12     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnProjectConfig create(hero.interfaces.BnProjectConfigValue)"),
13     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnProjectConfig create(hero.util.values.BonitaConfigValue, java.lang.String)"),
14     new java.rmi.server.Operation JavaDoc("java.util.Collection findAll()"),
15     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnProjectConfig findByPrimaryKey(hero.interfaces.BnProjectConfigPK)"),
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 = -5846908219404972928L;
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_create_2;
30     private static java.lang.reflect.Method JavaDoc $method_findAll_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.BnProjectConfigHome.class.getMethod("create", new java.lang.Class JavaDoc[] {});
48         $method_create_1 = hero.interfaces.BnProjectConfigHome.class.getMethod("create", new java.lang.Class JavaDoc[] {hero.interfaces.BnProjectConfigValue.class});
49         $method_create_2 = hero.interfaces.BnProjectConfigHome.class.getMethod("create", new java.lang.Class JavaDoc[] {hero.util.values.BonitaConfigValue.class, java.lang.String JavaDoc.class});
50         $method_findAll_3 = hero.interfaces.BnProjectConfigHome.class.getMethod("findAll", new java.lang.Class JavaDoc[] {});
51         $method_findByPrimaryKey_4 = hero.interfaces.BnProjectConfigHome.class.getMethod("findByPrimaryKey", new java.lang.Class JavaDoc[] {hero.interfaces.BnProjectConfigPK.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 JOnASBnProjectConfig_1564617755Home_Stub() {
63     super();
64     }
65     public JOnASBnProjectConfig_1564617755Home_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.BnProjectConfig 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, 6745592634172027564L);
78         return ((hero.interfaces.BnProjectConfig) $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.BnProjectConfig $result;
83         try {
84             java.io.ObjectInput JavaDoc in = call.getInputStream();
85             $result = (hero.interfaces.BnProjectConfig) 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(BnProjectConfigValue)
109
public hero.interfaces.BnProjectConfig create(hero.interfaces.BnProjectConfigValue $param_BnProjectConfigValue_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_BnProjectConfigValue_1}, -5126655397851303287L);
115         return ((hero.interfaces.BnProjectConfig) $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_BnProjectConfigValue_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.BnProjectConfig $result;
126         try {
127             java.io.ObjectInput JavaDoc in = call.getInputStream();
128             $result = (hero.interfaces.BnProjectConfig) 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 create(BonitaConfigValue, String)
150
public hero.interfaces.BnProjectConfig create(hero.util.values.BonitaConfigValue $param_BonitaConfigValue_1, java.lang.String JavaDoc $param_String_2)
151     throws hero.interfaces.InvalidValueException, java.rmi.RemoteException JavaDoc, javax.ejb.CreateException JavaDoc
152     {
153     try {
154         if (useNewInvoke) {
155         Object JavaDoc $result = ref.invoke(this, $method_create_2, new java.lang.Object JavaDoc[] {$param_BonitaConfigValue_1, $param_String_2}, 1662849389933230737L);
156         return ((hero.interfaces.BnProjectConfig) $result);
157         } else {
158         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
159         try {
160             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
161             out.writeObject($param_BonitaConfigValue_1);
162             out.writeObject($param_String_2);
163         } catch (java.io.IOException JavaDoc e) {
164             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
165         }
166         ref.invoke(call);
167         hero.interfaces.BnProjectConfig $result;
168         try {
169             java.io.ObjectInput JavaDoc in = call.getInputStream();
170             $result = (hero.interfaces.BnProjectConfig) in.readObject();
171         } catch (java.io.IOException JavaDoc e) {
172             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
173         } catch (java.lang.ClassNotFoundException JavaDoc e) {
174             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
175         } finally {
176             ref.done(call);
177         }
178         return $result;
179         }
180     } catch (java.lang.RuntimeException JavaDoc e) {
181         throw e;
182     } catch (java.rmi.RemoteException JavaDoc e) {
183         throw e;
184     } catch (hero.interfaces.InvalidValueException e) {
185         throw e;
186     } catch (javax.ejb.CreateException 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 findAll()
194
public java.util.Collection JavaDoc findAll()
195     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
196     {
197     try {
198         if (useNewInvoke) {
199         Object JavaDoc $result = ref.invoke(this, $method_findAll_3, null, -4609096605735334920L);
200         return ((java.util.Collection JavaDoc) $result);
201         } else {
202         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
203         ref.invoke(call);
204         java.util.Collection JavaDoc $result;
205         try {
206             java.io.ObjectInput JavaDoc in = call.getInputStream();
207             $result = (java.util.Collection JavaDoc) in.readObject();
208         } catch (java.io.IOException JavaDoc e) {
209             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
210         } catch (java.lang.ClassNotFoundException JavaDoc e) {
211             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
212         } finally {
213             ref.done(call);
214         }
215         return $result;
216         }
217     } catch (java.lang.RuntimeException JavaDoc e) {
218         throw e;
219     } catch (java.rmi.RemoteException JavaDoc e) {
220         throw e;
221     } catch (javax.ejb.FinderException JavaDoc e) {
222         throw e;
223     } catch (java.lang.Exception JavaDoc e) {
224         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
225     }
226     }
227     
228     // implementation of findByPrimaryKey(BnProjectConfigPK)
229
public hero.interfaces.BnProjectConfig findByPrimaryKey(hero.interfaces.BnProjectConfigPK $param_BnProjectConfigPK_1)
230     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
231     {
232     try {
233         if (useNewInvoke) {
234         Object JavaDoc $result = ref.invoke(this, $method_findByPrimaryKey_4, new java.lang.Object JavaDoc[] {$param_BnProjectConfigPK_1}, 2805306739195609046L);
235         return ((hero.interfaces.BnProjectConfig) $result);
236         } else {
237         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
238         try {
239             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
240             out.writeObject($param_BnProjectConfigPK_1);
241         } catch (java.io.IOException JavaDoc e) {
242             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
243         }
244         ref.invoke(call);
245         hero.interfaces.BnProjectConfig $result;
246         try {
247             java.io.ObjectInput JavaDoc in = call.getInputStream();
248             $result = (hero.interfaces.BnProjectConfig) in.readObject();
249         } catch (java.io.IOException JavaDoc e) {
250             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
251         } catch (java.lang.ClassNotFoundException JavaDoc e) {
252             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
253         } finally {
254             ref.done(call);
255         }
256         return $result;
257         }
258     } catch (java.lang.RuntimeException JavaDoc e) {
259         throw e;
260     } catch (java.rmi.RemoteException JavaDoc e) {
261         throw e;
262     } catch (javax.ejb.FinderException JavaDoc e) {
263         throw e;
264     } catch (java.lang.Exception JavaDoc e) {
265         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
266     }
267     }
268     
269     // implementation of getEJBMetaData()
270
public javax.ejb.EJBMetaData JavaDoc getEJBMetaData()
271     throws java.rmi.RemoteException JavaDoc
272     {
273     try {
274         if (useNewInvoke) {
275         Object JavaDoc $result = ref.invoke(this, $method_getEJBMetaData_5, null, 6217030353865232067L);
276         return ((javax.ejb.EJBMetaData JavaDoc) $result);
277         } else {
278         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
279         ref.invoke(call);
280         javax.ejb.EJBMetaData JavaDoc $result;
281         try {
282             java.io.ObjectInput JavaDoc in = call.getInputStream();
283             $result = (javax.ejb.EJBMetaData JavaDoc) in.readObject();
284         } catch (java.io.IOException JavaDoc e) {
285             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
286         } catch (java.lang.ClassNotFoundException JavaDoc e) {
287             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
288         } finally {
289             ref.done(call);
290         }
291         return $result;
292         }
293     } catch (java.lang.RuntimeException JavaDoc e) {
294         throw e;
295     } catch (java.rmi.RemoteException JavaDoc e) {
296         throw e;
297     } catch (java.lang.Exception JavaDoc e) {
298         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
299     }
300     }
301     
302     // implementation of getHomeHandle()
303
public javax.ejb.HomeHandle JavaDoc getHomeHandle()
304     throws java.rmi.RemoteException JavaDoc
305     {
306     try {
307         if (useNewInvoke) {
308         Object JavaDoc $result = ref.invoke(this, $method_getHomeHandle_6, null, -8748260460775500658L);
309         return ((javax.ejb.HomeHandle JavaDoc) $result);
310         } else {
311         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
312         ref.invoke(call);
313         javax.ejb.HomeHandle JavaDoc $result;
314         try {
315             java.io.ObjectInput JavaDoc in = call.getInputStream();
316             $result = (javax.ejb.HomeHandle JavaDoc) in.readObject();
317         } catch (java.io.IOException JavaDoc e) {
318             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
319         } catch (java.lang.ClassNotFoundException JavaDoc e) {
320             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
321         } finally {
322             ref.done(call);
323         }
324         return $result;
325         }
326     } catch (java.lang.RuntimeException JavaDoc e) {
327         throw e;
328     } catch (java.rmi.RemoteException JavaDoc e) {
329         throw e;
330     } catch (java.lang.Exception JavaDoc e) {
331         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
332     }
333     }
334     
335     // implementation of remove(Object)
336
public void remove(java.lang.Object JavaDoc $param_Object_1)
337     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
338     {
339     try {
340         if (useNewInvoke) {
341         ref.invoke(this, $method_remove_7, new java.lang.Object JavaDoc[] {$param_Object_1}, 4460578865329725433L);
342         } else {
343         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
344         try {
345             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
346             out.writeObject($param_Object_1);
347         } catch (java.io.IOException JavaDoc e) {
348             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
349         }
350         ref.invoke(call);
351         ref.done(call);
352         }
353     } catch (java.lang.RuntimeException JavaDoc e) {
354         throw e;
355     } catch (java.rmi.RemoteException JavaDoc e) {
356         throw e;
357     } catch (javax.ejb.RemoveException JavaDoc e) {
358         throw e;
359     } catch (java.lang.Exception JavaDoc e) {
360         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
361     }
362     }
363     
364     // implementation of remove(Handle)
365
public void remove(javax.ejb.Handle JavaDoc $param_Handle_1)
366     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
367     {
368     try {
369         if (useNewInvoke) {
370         ref.invoke(this, $method_remove_8, new java.lang.Object JavaDoc[] {$param_Handle_1}, 1121126102706750000L);
371         } else {
372         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 8, interfaceHash);
373         try {
374             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
375             out.writeObject($param_Handle_1);
376         } catch (java.io.IOException JavaDoc e) {
377             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
378         }
379         ref.invoke(call);
380         ref.done(call);
381         }
382     } catch (java.lang.RuntimeException JavaDoc e) {
383         throw e;
384     } catch (java.rmi.RemoteException JavaDoc e) {
385         throw e;
386     } catch (javax.ejb.RemoveException JavaDoc e) {
387         throw e;
388     } catch (java.lang.Exception JavaDoc e) {
389         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
390     }
391     }
392 }
393
Popular Tags