KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASBnUser2135030925Home_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 JOnASBnUser2135030925Home_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.BnUserHome, 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.BnUser create(hero.interfaces.BnUserValue)"),
12     new java.rmi.server.Operation JavaDoc("java.util.Collection findAll()"),
13     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnUser findByName(java.lang.String)"),
14     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnUser findByPrimaryKey(hero.interfaces.BnUserPK)"),
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 = -6319774747111495722L;
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_findAll_1;
28     private static java.lang.reflect.Method JavaDoc $method_findByName_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.BnUserHome.class.getMethod("create", new java.lang.Class JavaDoc[] {hero.interfaces.BnUserValue.class});
46         $method_findAll_1 = hero.interfaces.BnUserHome.class.getMethod("findAll", new java.lang.Class JavaDoc[] {});
47         $method_findByName_2 = hero.interfaces.BnUserHome.class.getMethod("findByName", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class});
48         $method_findByPrimaryKey_3 = hero.interfaces.BnUserHome.class.getMethod("findByPrimaryKey", new java.lang.Class JavaDoc[] {hero.interfaces.BnUserPK.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 JOnASBnUser2135030925Home_Stub() {
60     super();
61     }
62     public JOnASBnUser2135030925Home_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
63     super(ref);
64     }
65     
66     // methods from remote interfaces
67

68     // implementation of create(BnUserValue)
69
public hero.interfaces.BnUser create(hero.interfaces.BnUserValue $param_BnUserValue_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_BnUserValue_1}, 7058359391255542879L);
75         return ((hero.interfaces.BnUser) $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_BnUserValue_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.BnUser $result;
86         try {
87             java.io.ObjectInput JavaDoc in = call.getInputStream();
88             $result = (hero.interfaces.BnUser) 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 findAll()
112
public java.util.Collection JavaDoc findAll()
113     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
114     {
115     try {
116         if (useNewInvoke) {
117         Object JavaDoc $result = ref.invoke(this, $method_findAll_1, null, -4609096605735334920L);
118         return ((java.util.Collection JavaDoc) $result);
119         } else {
120         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 1, interfaceHash);
121         ref.invoke(call);
122         java.util.Collection JavaDoc $result;
123         try {
124             java.io.ObjectInput JavaDoc in = call.getInputStream();
125             $result = (java.util.Collection JavaDoc) in.readObject();
126         } catch (java.io.IOException JavaDoc e) {
127             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
128         } catch (java.lang.ClassNotFoundException JavaDoc e) {
129             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
130         } finally {
131             ref.done(call);
132         }
133         return $result;
134         }
135     } catch (java.lang.RuntimeException JavaDoc e) {
136         throw e;
137     } catch (java.rmi.RemoteException JavaDoc e) {
138         throw e;
139     } catch (javax.ejb.FinderException JavaDoc e) {
140         throw e;
141     } catch (java.lang.Exception JavaDoc e) {
142         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
143     }
144     }
145     
146     // implementation of findByName(String)
147
public hero.interfaces.BnUser findByName(java.lang.String JavaDoc $param_String_1)
148     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
149     {
150     try {
151         if (useNewInvoke) {
152         Object JavaDoc $result = ref.invoke(this, $method_findByName_2, new java.lang.Object JavaDoc[] {$param_String_1}, 3572674667501305108L);
153         return ((hero.interfaces.BnUser) $result);
154         } else {
155         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
156         try {
157             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
158             out.writeObject($param_String_1);
159         } catch (java.io.IOException JavaDoc e) {
160             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
161         }
162         ref.invoke(call);
163         hero.interfaces.BnUser $result;
164         try {
165             java.io.ObjectInput JavaDoc in = call.getInputStream();
166             $result = (hero.interfaces.BnUser) in.readObject();
167         } catch (java.io.IOException JavaDoc e) {
168             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
169         } catch (java.lang.ClassNotFoundException JavaDoc e) {
170             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
171         } finally {
172             ref.done(call);
173         }
174         return $result;
175         }
176     } catch (java.lang.RuntimeException JavaDoc e) {
177         throw e;
178     } catch (java.rmi.RemoteException JavaDoc e) {
179         throw e;
180     } catch (javax.ejb.FinderException JavaDoc e) {
181         throw e;
182     } catch (java.lang.Exception JavaDoc e) {
183         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
184     }
185     }
186     
187     // implementation of findByPrimaryKey(BnUserPK)
188
public hero.interfaces.BnUser findByPrimaryKey(hero.interfaces.BnUserPK $param_BnUserPK_1)
189     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
190     {
191     try {
192         if (useNewInvoke) {
193         Object JavaDoc $result = ref.invoke(this, $method_findByPrimaryKey_3, new java.lang.Object JavaDoc[] {$param_BnUserPK_1}, 6839385478747754577L);
194         return ((hero.interfaces.BnUser) $result);
195         } else {
196         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
197         try {
198             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
199             out.writeObject($param_BnUserPK_1);
200         } catch (java.io.IOException JavaDoc e) {
201             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
202         }
203         ref.invoke(call);
204         hero.interfaces.BnUser $result;
205         try {
206             java.io.ObjectInput JavaDoc in = call.getInputStream();
207             $result = (hero.interfaces.BnUser) 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 getEJBMetaData()
229
public javax.ejb.EJBMetaData JavaDoc getEJBMetaData()
230     throws java.rmi.RemoteException JavaDoc
231     {
232     try {
233         if (useNewInvoke) {
234         Object JavaDoc $result = ref.invoke(this, $method_getEJBMetaData_4, null, 6217030353865232067L);
235         return ((javax.ejb.EJBMetaData JavaDoc) $result);
236         } else {
237         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
238         ref.invoke(call);
239         javax.ejb.EJBMetaData JavaDoc $result;
240         try {
241             java.io.ObjectInput JavaDoc in = call.getInputStream();
242             $result = (javax.ejb.EJBMetaData JavaDoc) in.readObject();
243         } catch (java.io.IOException JavaDoc e) {
244             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
245         } catch (java.lang.ClassNotFoundException JavaDoc e) {
246             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
247         } finally {
248             ref.done(call);
249         }
250         return $result;
251         }
252     } catch (java.lang.RuntimeException JavaDoc e) {
253         throw e;
254     } catch (java.rmi.RemoteException JavaDoc e) {
255         throw e;
256     } catch (java.lang.Exception JavaDoc e) {
257         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
258     }
259     }
260     
261     // implementation of getHomeHandle()
262
public javax.ejb.HomeHandle JavaDoc getHomeHandle()
263     throws java.rmi.RemoteException JavaDoc
264     {
265     try {
266         if (useNewInvoke) {
267         Object JavaDoc $result = ref.invoke(this, $method_getHomeHandle_5, null, -8748260460775500658L);
268         return ((javax.ejb.HomeHandle JavaDoc) $result);
269         } else {
270         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
271         ref.invoke(call);
272         javax.ejb.HomeHandle JavaDoc $result;
273         try {
274             java.io.ObjectInput JavaDoc in = call.getInputStream();
275             $result = (javax.ejb.HomeHandle JavaDoc) in.readObject();
276         } catch (java.io.IOException JavaDoc e) {
277             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
278         } catch (java.lang.ClassNotFoundException JavaDoc e) {
279             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
280         } finally {
281             ref.done(call);
282         }
283         return $result;
284         }
285     } catch (java.lang.RuntimeException JavaDoc e) {
286         throw e;
287     } catch (java.rmi.RemoteException JavaDoc e) {
288         throw e;
289     } catch (java.lang.Exception JavaDoc e) {
290         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
291     }
292     }
293     
294     // implementation of remove(Object)
295
public void remove(java.lang.Object JavaDoc $param_Object_1)
296     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
297     {
298     try {
299         if (useNewInvoke) {
300         ref.invoke(this, $method_remove_6, new java.lang.Object JavaDoc[] {$param_Object_1}, 4460578865329725433L);
301         } else {
302         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
303         try {
304             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
305             out.writeObject($param_Object_1);
306         } catch (java.io.IOException JavaDoc e) {
307             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
308         }
309         ref.invoke(call);
310         ref.done(call);
311         }
312     } catch (java.lang.RuntimeException JavaDoc e) {
313         throw e;
314     } catch (java.rmi.RemoteException JavaDoc e) {
315         throw e;
316     } catch (javax.ejb.RemoveException JavaDoc e) {
317         throw e;
318     } catch (java.lang.Exception JavaDoc e) {
319         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
320     }
321     }
322     
323     // implementation of remove(Handle)
324
public void remove(javax.ejb.Handle JavaDoc $param_Handle_1)
325     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
326     {
327     try {
328         if (useNewInvoke) {
329         ref.invoke(this, $method_remove_7, new java.lang.Object JavaDoc[] {$param_Handle_1}, 1121126102706750000L);
330         } else {
331         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
332         try {
333             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
334             out.writeObject($param_Handle_1);
335         } catch (java.io.IOException JavaDoc e) {
336             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
337         }
338         ref.invoke(call);
339         ref.done(call);
340         }
341     } catch (java.lang.RuntimeException JavaDoc e) {
342         throw e;
343     } catch (java.rmi.RemoteException JavaDoc e) {
344         throw e;
345     } catch (javax.ejb.RemoveException JavaDoc e) {
346         throw e;
347     } catch (java.lang.Exception JavaDoc e) {
348         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
349     }
350     }
351 }
352
Popular Tags