KickJava   Java API By Example, From Geeks To Geeks.

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

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