KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASBnRoleMapper_1983914099Home_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 JOnASBnRoleMapper_1983914099Home_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.BnRoleMapperHome, 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.BnRoleMapper create(hero.interfaces.BnRoleMapperValue)"),
12     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnRoleMapper create(java.lang.String, int)"),
13     new java.rmi.server.Operation JavaDoc("java.util.Collection findAll()"),
14     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnRoleMapper findByPrimaryKey(hero.interfaces.BnRoleMapperPK)"),
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 = -4169039736815245870L;
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.BnRoleMapperHome.class.getMethod("create", new java.lang.Class JavaDoc[] {hero.interfaces.BnRoleMapperValue.class});
46         $method_create_1 = hero.interfaces.BnRoleMapperHome.class.getMethod("create", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, int.class});
47         $method_findAll_2 = hero.interfaces.BnRoleMapperHome.class.getMethod("findAll", new java.lang.Class JavaDoc[] {});
48         $method_findByPrimaryKey_3 = hero.interfaces.BnRoleMapperHome.class.getMethod("findByPrimaryKey", new java.lang.Class JavaDoc[] {hero.interfaces.BnRoleMapperPK.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 JOnASBnRoleMapper_1983914099Home_Stub() {
60     super();
61     }
62     public JOnASBnRoleMapper_1983914099Home_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
63     super(ref);
64     }
65     
66     // methods from remote interfaces
67

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