KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASBnProjectProperty570678731Home_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 JOnASBnProjectProperty570678731Home_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.BnProjectPropertyHome, 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.BnProjectProperty create(hero.interfaces.BnProjectPropertyValue)"),
12     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnProjectProperty create(java.lang.String, java.lang.String)"),
13     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnProjectProperty create(java.lang.String, java.util.Collection)"),
14     new java.rmi.server.Operation JavaDoc("java.util.Collection findAll()"),
15     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnProjectProperty findByPrimaryKey(hero.interfaces.BnProjectPropertyPK)"),
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 = -2595915736792655995L;
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.BnProjectPropertyHome.class.getMethod("create", new java.lang.Class JavaDoc[] {hero.interfaces.BnProjectPropertyValue.class});
48         $method_create_1 = hero.interfaces.BnProjectPropertyHome.class.getMethod("create", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
49         $method_create_2 = hero.interfaces.BnProjectPropertyHome.class.getMethod("create", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.util.Collection JavaDoc.class});
50         $method_findAll_3 = hero.interfaces.BnProjectPropertyHome.class.getMethod("findAll", new java.lang.Class JavaDoc[] {});
51         $method_findByPrimaryKey_4 = hero.interfaces.BnProjectPropertyHome.class.getMethod("findByPrimaryKey", new java.lang.Class JavaDoc[] {hero.interfaces.BnProjectPropertyPK.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 JOnASBnProjectProperty570678731Home_Stub() {
63     super();
64     }
65     public JOnASBnProjectProperty570678731Home_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
66     super(ref);
67     }
68     
69     // methods from remote interfaces
70

71     // implementation of create(BnProjectPropertyValue)
72
public hero.interfaces.BnProjectProperty create(hero.interfaces.BnProjectPropertyValue $param_BnProjectPropertyValue_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_BnProjectPropertyValue_1}, 6083241351454732298L);
78         return ((hero.interfaces.BnProjectProperty) $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_BnProjectPropertyValue_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.BnProjectProperty $result;
89         try {
90             java.io.ObjectInput JavaDoc in = call.getInputStream();
91             $result = (hero.interfaces.BnProjectProperty) 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, String)
115
public hero.interfaces.BnProjectProperty create(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_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, $param_String_2}, -5888310234714004021L);
121         return ((hero.interfaces.BnProjectProperty) $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.writeObject($param_String_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.BnProjectProperty $result;
133         try {
134             java.io.ObjectInput JavaDoc in = call.getInputStream();
135             $result = (hero.interfaces.BnProjectProperty) 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 create(String, Collection)
159
public hero.interfaces.BnProjectProperty create(java.lang.String JavaDoc $param_String_1, java.util.Collection JavaDoc $param_Collection_2)
160     throws hero.interfaces.InvalidValueException, java.rmi.RemoteException JavaDoc, javax.ejb.CreateException JavaDoc
161     {
162     try {
163         if (useNewInvoke) {
164         Object JavaDoc $result = ref.invoke(this, $method_create_2, new java.lang.Object JavaDoc[] {$param_String_1, $param_Collection_2}, -3135365927352359532L);
165         return ((hero.interfaces.BnProjectProperty) $result);
166         } else {
167         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
168         try {
169             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
170             out.writeObject($param_String_1);
171             out.writeObject($param_Collection_2);
172         } catch (java.io.IOException JavaDoc e) {
173             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
174         }
175         ref.invoke(call);
176         hero.interfaces.BnProjectProperty $result;
177         try {
178             java.io.ObjectInput JavaDoc in = call.getInputStream();
179             $result = (hero.interfaces.BnProjectProperty) in.readObject();
180         } catch (java.io.IOException JavaDoc e) {
181             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
182         } catch (java.lang.ClassNotFoundException JavaDoc e) {
183             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
184         } finally {
185             ref.done(call);
186         }
187         return $result;
188         }
189     } catch (java.lang.RuntimeException JavaDoc e) {
190         throw e;
191     } catch (java.rmi.RemoteException JavaDoc e) {
192         throw e;
193     } catch (hero.interfaces.InvalidValueException e) {
194         throw e;
195     } catch (javax.ejb.CreateException JavaDoc e) {
196         throw e;
197     } catch (java.lang.Exception JavaDoc e) {
198         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
199     }
200     }
201     
202     // implementation of findAll()
203
public java.util.Collection JavaDoc findAll()
204     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
205     {
206     try {
207         if (useNewInvoke) {
208         Object JavaDoc $result = ref.invoke(this, $method_findAll_3, null, -4609096605735334920L);
209         return ((java.util.Collection JavaDoc) $result);
210         } else {
211         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
212         ref.invoke(call);
213         java.util.Collection JavaDoc $result;
214         try {
215             java.io.ObjectInput JavaDoc in = call.getInputStream();
216             $result = (java.util.Collection JavaDoc) in.readObject();
217         } catch (java.io.IOException JavaDoc e) {
218             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
219         } catch (java.lang.ClassNotFoundException JavaDoc e) {
220             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
221         } finally {
222             ref.done(call);
223         }
224         return $result;
225         }
226     } catch (java.lang.RuntimeException JavaDoc e) {
227         throw e;
228     } catch (java.rmi.RemoteException JavaDoc e) {
229         throw e;
230     } catch (javax.ejb.FinderException JavaDoc e) {
231         throw e;
232     } catch (java.lang.Exception JavaDoc e) {
233         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
234     }
235     }
236     
237     // implementation of findByPrimaryKey(BnProjectPropertyPK)
238
public hero.interfaces.BnProjectProperty findByPrimaryKey(hero.interfaces.BnProjectPropertyPK $param_BnProjectPropertyPK_1)
239     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
240     {
241     try {
242         if (useNewInvoke) {
243         Object JavaDoc $result = ref.invoke(this, $method_findByPrimaryKey_4, new java.lang.Object JavaDoc[] {$param_BnProjectPropertyPK_1}, -2478565484750018586L);
244         return ((hero.interfaces.BnProjectProperty) $result);
245         } else {
246         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
247         try {
248             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
249             out.writeObject($param_BnProjectPropertyPK_1);
250         } catch (java.io.IOException JavaDoc e) {
251             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
252         }
253         ref.invoke(call);
254         hero.interfaces.BnProjectProperty $result;
255         try {
256             java.io.ObjectInput JavaDoc in = call.getInputStream();
257             $result = (hero.interfaces.BnProjectProperty) in.readObject();
258         } catch (java.io.IOException JavaDoc e) {
259             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
260         } catch (java.lang.ClassNotFoundException JavaDoc e) {
261             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
262         } finally {
263             ref.done(call);
264         }
265         return $result;
266         }
267     } catch (java.lang.RuntimeException JavaDoc e) {
268         throw e;
269     } catch (java.rmi.RemoteException JavaDoc e) {
270         throw e;
271     } catch (javax.ejb.FinderException JavaDoc e) {
272         throw e;
273     } catch (java.lang.Exception JavaDoc e) {
274         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
275     }
276     }
277     
278     // implementation of getEJBMetaData()
279
public javax.ejb.EJBMetaData JavaDoc getEJBMetaData()
280     throws java.rmi.RemoteException JavaDoc
281     {
282     try {
283         if (useNewInvoke) {
284         Object JavaDoc $result = ref.invoke(this, $method_getEJBMetaData_5, null, 6217030353865232067L);
285         return ((javax.ejb.EJBMetaData JavaDoc) $result);
286         } else {
287         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
288         ref.invoke(call);
289         javax.ejb.EJBMetaData JavaDoc $result;
290         try {
291             java.io.ObjectInput JavaDoc in = call.getInputStream();
292             $result = (javax.ejb.EJBMetaData JavaDoc) in.readObject();
293         } catch (java.io.IOException JavaDoc e) {
294             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
295         } catch (java.lang.ClassNotFoundException JavaDoc e) {
296             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
297         } finally {
298             ref.done(call);
299         }
300         return $result;
301         }
302     } catch (java.lang.RuntimeException JavaDoc e) {
303         throw e;
304     } catch (java.rmi.RemoteException JavaDoc e) {
305         throw e;
306     } catch (java.lang.Exception JavaDoc e) {
307         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
308     }
309     }
310     
311     // implementation of getHomeHandle()
312
public javax.ejb.HomeHandle JavaDoc getHomeHandle()
313     throws java.rmi.RemoteException JavaDoc
314     {
315     try {
316         if (useNewInvoke) {
317         Object JavaDoc $result = ref.invoke(this, $method_getHomeHandle_6, null, -8748260460775500658L);
318         return ((javax.ejb.HomeHandle JavaDoc) $result);
319         } else {
320         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
321         ref.invoke(call);
322         javax.ejb.HomeHandle JavaDoc $result;
323         try {
324             java.io.ObjectInput JavaDoc in = call.getInputStream();
325             $result = (javax.ejb.HomeHandle JavaDoc) in.readObject();
326         } catch (java.io.IOException JavaDoc e) {
327             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
328         } catch (java.lang.ClassNotFoundException JavaDoc e) {
329             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
330         } finally {
331             ref.done(call);
332         }
333         return $result;
334         }
335     } catch (java.lang.RuntimeException JavaDoc e) {
336         throw e;
337     } catch (java.rmi.RemoteException JavaDoc e) {
338         throw e;
339     } catch (java.lang.Exception JavaDoc e) {
340         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
341     }
342     }
343     
344     // implementation of remove(Object)
345
public void remove(java.lang.Object JavaDoc $param_Object_1)
346     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
347     {
348     try {
349         if (useNewInvoke) {
350         ref.invoke(this, $method_remove_7, new java.lang.Object JavaDoc[] {$param_Object_1}, 4460578865329725433L);
351         } else {
352         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
353         try {
354             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
355             out.writeObject($param_Object_1);
356         } catch (java.io.IOException JavaDoc e) {
357             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
358         }
359         ref.invoke(call);
360         ref.done(call);
361         }
362     } catch (java.lang.RuntimeException JavaDoc e) {
363         throw e;
364     } catch (java.rmi.RemoteException JavaDoc e) {
365         throw e;
366     } catch (javax.ejb.RemoveException JavaDoc e) {
367         throw e;
368     } catch (java.lang.Exception JavaDoc e) {
369         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
370     }
371     }
372     
373     // implementation of remove(Handle)
374
public void remove(javax.ejb.Handle JavaDoc $param_Handle_1)
375     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
376     {
377     try {
378         if (useNewInvoke) {
379         ref.invoke(this, $method_remove_8, new java.lang.Object JavaDoc[] {$param_Handle_1}, 1121126102706750000L);
380         } else {
381         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 8, interfaceHash);
382         try {
383             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
384             out.writeObject($param_Handle_1);
385         } catch (java.io.IOException JavaDoc e) {
386             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
387         }
388         ref.invoke(call);
389         ref.done(call);
390         }
391     } catch (java.lang.RuntimeException JavaDoc e) {
392         throw e;
393     } catch (java.rmi.RemoteException JavaDoc e) {
394         throw e;
395     } catch (javax.ejb.RemoveException JavaDoc e) {
396         throw e;
397     } catch (java.lang.Exception JavaDoc e) {
398         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
399     }
400     }
401 }
402
Popular Tags