KickJava   Java API By Example, From Geeks To Geeks.

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

68     // implementation of create(BnProjectInterHookValue)
69
public hero.interfaces.BnProjectInterHook create(hero.interfaces.BnProjectInterHookValue $param_BnProjectInterHookValue_1)
70     throws hero.interfaces.InvalidValueException, java.rmi.RemoteException JavaDoc, javax.ejb.CreateException JavaDoc
71     {
72     try {
73         if (useNewInvoke) {
74         Object JavaDoc $result = ref.invoke(this, $method_create_0, new java.lang.Object JavaDoc[] {$param_BnProjectInterHookValue_1}, -4955708211155997206L);
75         return ((hero.interfaces.BnProjectInterHook) $result);
76         } else {
77         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 0, interfaceHash);
78         try {
79             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
80             out.writeObject($param_BnProjectInterHookValue_1);
81         } catch (java.io.IOException JavaDoc e) {
82             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
83         }
84         ref.invoke(call);
85         hero.interfaces.BnProjectInterHook $result;
86         try {
87             java.io.ObjectInput JavaDoc in = call.getInputStream();
88             $result = (hero.interfaces.BnProjectInterHook) in.readObject();
89         } catch (java.io.IOException JavaDoc e) {
90             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
91         } catch (java.lang.ClassNotFoundException JavaDoc e) {
92             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
93         } finally {
94             ref.done(call);
95         }
96         return $result;
97         }
98     } catch (java.lang.RuntimeException JavaDoc e) {
99         throw e;
100     } catch (java.rmi.RemoteException JavaDoc e) {
101         throw e;
102     } catch (hero.interfaces.InvalidValueException e) {
103         throw e;
104     } catch (javax.ejb.CreateException JavaDoc e) {
105         throw e;
106     } catch (java.lang.Exception JavaDoc e) {
107         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
108     }
109     }
110     
111     // implementation of create(String, String, int, String)
112
public hero.interfaces.BnProjectInterHook create(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2, int $param_int_3, java.lang.String JavaDoc $param_String_4)
113     throws hero.interfaces.InvalidValueException, java.rmi.RemoteException JavaDoc, javax.ejb.CreateException JavaDoc
114     {
115     try {
116         if (useNewInvoke) {
117         Object JavaDoc $result = ref.invoke(this, $method_create_1, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2, new java.lang.Integer JavaDoc($param_int_3), $param_String_4}, -7649593118832842361L);
118         return ((hero.interfaces.BnProjectInterHook) $result);
119         } else {
120         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 1, interfaceHash);
121         try {
122             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
123             out.writeObject($param_String_1);
124             out.writeObject($param_String_2);
125             out.writeInt($param_int_3);
126             out.writeObject($param_String_4);
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.BnProjectInterHook $result;
132         try {
133             java.io.ObjectInput JavaDoc in = call.getInputStream();
134             $result = (hero.interfaces.BnProjectInterHook) 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 findByPrimaryKey(BnProjectInterHookPK)
193
public hero.interfaces.BnProjectInterHook findByPrimaryKey(hero.interfaces.BnProjectInterHookPK $param_BnProjectInterHookPK_1)
194     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
195     {
196     try {
197         if (useNewInvoke) {
198         Object JavaDoc $result = ref.invoke(this, $method_findByPrimaryKey_3, new java.lang.Object JavaDoc[] {$param_BnProjectInterHookPK_1}, -8826865394255788890L);
199         return ((hero.interfaces.BnProjectInterHook) $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_BnProjectInterHookPK_1);
205         } catch (java.io.IOException JavaDoc e) {
206             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
207         }
208         ref.invoke(call);
209         hero.interfaces.BnProjectInterHook $result;
210         try {
211             java.io.ObjectInput JavaDoc in = call.getInputStream();
212             $result = (hero.interfaces.BnProjectInterHook) in.readObject();
213         } catch (java.io.IOException JavaDoc e) {
214             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
215         } catch (java.lang.ClassNotFoundException JavaDoc e) {
216             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
217         } finally {
218             ref.done(call);
219         }
220         return $result;
221         }
222     } catch (java.lang.RuntimeException JavaDoc e) {
223         throw e;
224     } catch (java.rmi.RemoteException JavaDoc e) {
225         throw e;
226     } catch (javax.ejb.FinderException JavaDoc e) {
227         throw e;
228     } catch (java.lang.Exception JavaDoc e) {
229         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
230     }
231     }
232     
233     // implementation of getEJBMetaData()
234
public javax.ejb.EJBMetaData JavaDoc getEJBMetaData()
235     throws java.rmi.RemoteException JavaDoc
236     {
237     try {
238         if (useNewInvoke) {
239         Object JavaDoc $result = ref.invoke(this, $method_getEJBMetaData_4, null, 6217030353865232067L);
240         return ((javax.ejb.EJBMetaData JavaDoc) $result);
241         } else {
242         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
243         ref.invoke(call);
244         javax.ejb.EJBMetaData JavaDoc $result;
245         try {
246             java.io.ObjectInput JavaDoc in = call.getInputStream();
247             $result = (javax.ejb.EJBMetaData JavaDoc) in.readObject();
248         } catch (java.io.IOException JavaDoc e) {
249             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
250         } catch (java.lang.ClassNotFoundException JavaDoc e) {
251             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
252         } finally {
253             ref.done(call);
254         }
255         return $result;
256         }
257     } catch (java.lang.RuntimeException JavaDoc e) {
258         throw e;
259     } catch (java.rmi.RemoteException JavaDoc e) {
260         throw e;
261     } catch (java.lang.Exception JavaDoc e) {
262         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
263     }
264     }
265     
266     // implementation of getHomeHandle()
267
public javax.ejb.HomeHandle JavaDoc getHomeHandle()
268     throws java.rmi.RemoteException JavaDoc
269     {
270     try {
271         if (useNewInvoke) {
272         Object JavaDoc $result = ref.invoke(this, $method_getHomeHandle_5, null, -8748260460775500658L);
273         return ((javax.ejb.HomeHandle JavaDoc) $result);
274         } else {
275         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
276         ref.invoke(call);
277         javax.ejb.HomeHandle JavaDoc $result;
278         try {
279             java.io.ObjectInput JavaDoc in = call.getInputStream();
280             $result = (javax.ejb.HomeHandle JavaDoc) in.readObject();
281         } catch (java.io.IOException JavaDoc e) {
282             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
283         } catch (java.lang.ClassNotFoundException JavaDoc e) {
284             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
285         } finally {
286             ref.done(call);
287         }
288         return $result;
289         }
290     } catch (java.lang.RuntimeException JavaDoc e) {
291         throw e;
292     } catch (java.rmi.RemoteException JavaDoc e) {
293         throw e;
294     } catch (java.lang.Exception JavaDoc e) {
295         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
296     }
297     }
298     
299     // implementation of remove(Object)
300
public void remove(java.lang.Object JavaDoc $param_Object_1)
301     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
302     {
303     try {
304         if (useNewInvoke) {
305         ref.invoke(this, $method_remove_6, new java.lang.Object JavaDoc[] {$param_Object_1}, 4460578865329725433L);
306         } else {
307         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
308         try {
309             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
310             out.writeObject($param_Object_1);
311         } catch (java.io.IOException JavaDoc e) {
312             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
313         }
314         ref.invoke(call);
315         ref.done(call);
316         }
317     } catch (java.lang.RuntimeException JavaDoc e) {
318         throw e;
319     } catch (java.rmi.RemoteException JavaDoc e) {
320         throw e;
321     } catch (javax.ejb.RemoveException JavaDoc e) {
322         throw e;
323     } catch (java.lang.Exception JavaDoc e) {
324         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
325     }
326     }
327     
328     // implementation of remove(Handle)
329
public void remove(javax.ejb.Handle JavaDoc $param_Handle_1)
330     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
331     {
332     try {
333         if (useNewInvoke) {
334         ref.invoke(this, $method_remove_7, new java.lang.Object JavaDoc[] {$param_Handle_1}, 1121126102706750000L);
335         } else {
336         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
337         try {
338             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
339             out.writeObject($param_Handle_1);
340         } catch (java.io.IOException JavaDoc e) {
341             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
342         }
343         ref.invoke(call);
344         ref.done(call);
345         }
346     } catch (java.lang.RuntimeException JavaDoc e) {
347         throw e;
348     } catch (java.rmi.RemoteException JavaDoc e) {
349         throw e;
350     } catch (javax.ejb.RemoveException JavaDoc e) {
351         throw e;
352     } catch (java.lang.Exception JavaDoc e) {
353         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
354     }
355     }
356 }
357
Popular Tags