KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASBnRole1507592493Home_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 JOnASBnRole1507592493Home_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.BnRoleHome, 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.BnRole create(hero.interfaces.BnRoleValue)"),
12     new java.rmi.server.Operation JavaDoc("java.util.Collection findAll()"),
13     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnRole findByName(java.lang.String, java.lang.String)"),
14     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnRole findByPrimaryKey(hero.interfaces.BnRolePK)"),
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 = -5041871527874195237L;
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.BnRoleHome.class.getMethod("create", new java.lang.Class JavaDoc[] {hero.interfaces.BnRoleValue.class});
46         $method_findAll_1 = hero.interfaces.BnRoleHome.class.getMethod("findAll", new java.lang.Class JavaDoc[] {});
47         $method_findByName_2 = hero.interfaces.BnRoleHome.class.getMethod("findByName", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
48         $method_findByPrimaryKey_3 = hero.interfaces.BnRoleHome.class.getMethod("findByPrimaryKey", new java.lang.Class JavaDoc[] {hero.interfaces.BnRolePK.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 JOnASBnRole1507592493Home_Stub() {
60     super();
61     }
62     public JOnASBnRole1507592493Home_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
63     super(ref);
64     }
65     
66     // methods from remote interfaces
67

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