KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASBnAuthRole317329069Remote_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 JOnASBnAuthRole317329069Remote_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.BnAuthRole, java.rmi.Remote JavaDoc, javax.ejb.EJBObject JavaDoc
9 {
10     private static final java.rmi.server.Operation JavaDoc[] operations = {
11     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnAuthRoleValue getBnAuthRoleValue()"),
12     new java.rmi.server.Operation JavaDoc("javax.ejb.EJBHome getEJBHome()"),
13     new java.rmi.server.Operation JavaDoc("javax.ejb.Handle getHandle()"),
14     new java.rmi.server.Operation JavaDoc("java.lang.String getName()"),
15     new java.rmi.server.Operation JavaDoc("java.lang.Object getPrimaryKey()"),
16     new java.rmi.server.Operation JavaDoc("boolean isIdentical(javax.ejb.EJBObject)"),
17     new java.rmi.server.Operation JavaDoc("void remove()"),
18     new java.rmi.server.Operation JavaDoc("void setBnAuthRoleValue(hero.interfaces.BnAuthRoleValue)")
19     };
20     
21     private static final long interfaceHash = -6332739494317977360L;
22     
23     private static final long serialVersionUID = 2;
24     
25     private static boolean useNewInvoke;
26     private static java.lang.reflect.Method JavaDoc $method_getBnAuthRoleValue_0;
27     private static java.lang.reflect.Method JavaDoc $method_getEJBHome_1;
28     private static java.lang.reflect.Method JavaDoc $method_getHandle_2;
29     private static java.lang.reflect.Method JavaDoc $method_getName_3;
30     private static java.lang.reflect.Method JavaDoc $method_getPrimaryKey_4;
31     private static java.lang.reflect.Method JavaDoc $method_isIdentical_5;
32     private static java.lang.reflect.Method JavaDoc $method_remove_6;
33     private static java.lang.reflect.Method JavaDoc $method_setBnAuthRoleValue_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_getBnAuthRoleValue_0 = hero.interfaces.BnAuthRole.class.getMethod("getBnAuthRoleValue", new java.lang.Class JavaDoc[] {});
46         $method_getEJBHome_1 = javax.ejb.EJBObject JavaDoc.class.getMethod("getEJBHome", new java.lang.Class JavaDoc[] {});
47         $method_getHandle_2 = javax.ejb.EJBObject JavaDoc.class.getMethod("getHandle", new java.lang.Class JavaDoc[] {});
48         $method_getName_3 = hero.interfaces.BnAuthRole.class.getMethod("getName", new java.lang.Class JavaDoc[] {});
49         $method_getPrimaryKey_4 = javax.ejb.EJBObject JavaDoc.class.getMethod("getPrimaryKey", new java.lang.Class JavaDoc[] {});
50         $method_isIdentical_5 = javax.ejb.EJBObject JavaDoc.class.getMethod("isIdentical", new java.lang.Class JavaDoc[] {javax.ejb.EJBObject JavaDoc.class});
51         $method_remove_6 = javax.ejb.EJBObject JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {});
52         $method_setBnAuthRoleValue_7 = hero.interfaces.BnAuthRole.class.getMethod("setBnAuthRoleValue", new java.lang.Class JavaDoc[] {hero.interfaces.BnAuthRoleValue.class});
53     } catch (java.lang.NoSuchMethodException JavaDoc e) {
54         useNewInvoke = false;
55     }
56     }
57     
58     // constructors
59
public JOnASBnAuthRole317329069Remote_Stub() {
60     super();
61     }
62     public JOnASBnAuthRole317329069Remote_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
63     super(ref);
64     }
65     
66     // methods from remote interfaces
67

68     // implementation of getBnAuthRoleValue()
69
public hero.interfaces.BnAuthRoleValue getBnAuthRoleValue()
70     throws java.rmi.RemoteException JavaDoc
71     {
72     try {
73         if (useNewInvoke) {
74         Object JavaDoc $result = ref.invoke(this, $method_getBnAuthRoleValue_0, null, -2877736519175621111L);
75         return ((hero.interfaces.BnAuthRoleValue) $result);
76         } else {
77         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 0, interfaceHash);
78         ref.invoke(call);
79         hero.interfaces.BnAuthRoleValue $result;
80         try {
81             java.io.ObjectInput JavaDoc in = call.getInputStream();
82             $result = (hero.interfaces.BnAuthRoleValue) in.readObject();
83         } catch (java.io.IOException JavaDoc e) {
84             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
85         } catch (java.lang.ClassNotFoundException JavaDoc e) {
86             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
87         } finally {
88             ref.done(call);
89         }
90         return $result;
91         }
92     } catch (java.lang.RuntimeException JavaDoc e) {
93         throw e;
94     } catch (java.rmi.RemoteException JavaDoc e) {
95         throw e;
96     } catch (java.lang.Exception JavaDoc e) {
97         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
98     }
99     }
100     
101     // implementation of getEJBHome()
102
public javax.ejb.EJBHome JavaDoc getEJBHome()
103     throws java.rmi.RemoteException JavaDoc
104     {
105     try {
106         if (useNewInvoke) {
107         Object JavaDoc $result = ref.invoke(this, $method_getEJBHome_1, null, 3163754803894080547L);
108         return ((javax.ejb.EJBHome JavaDoc) $result);
109         } else {
110         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 1, interfaceHash);
111         ref.invoke(call);
112         javax.ejb.EJBHome JavaDoc $result;
113         try {
114             java.io.ObjectInput JavaDoc in = call.getInputStream();
115             $result = (javax.ejb.EJBHome JavaDoc) in.readObject();
116         } catch (java.io.IOException JavaDoc e) {
117             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
118         } catch (java.lang.ClassNotFoundException JavaDoc e) {
119             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
120         } finally {
121             ref.done(call);
122         }
123         return $result;
124         }
125     } catch (java.lang.RuntimeException JavaDoc e) {
126         throw e;
127     } catch (java.rmi.RemoteException JavaDoc e) {
128         throw e;
129     } catch (java.lang.Exception JavaDoc e) {
130         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
131     }
132     }
133     
134     // implementation of getHandle()
135
public javax.ejb.Handle JavaDoc getHandle()
136     throws java.rmi.RemoteException JavaDoc
137     {
138     try {
139         if (useNewInvoke) {
140         Object JavaDoc $result = ref.invoke(this, $method_getHandle_2, null, -1299374689989208114L);
141         return ((javax.ejb.Handle JavaDoc) $result);
142         } else {
143         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
144         ref.invoke(call);
145         javax.ejb.Handle JavaDoc $result;
146         try {
147             java.io.ObjectInput JavaDoc in = call.getInputStream();
148             $result = (javax.ejb.Handle JavaDoc) in.readObject();
149         } catch (java.io.IOException JavaDoc e) {
150             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
151         } catch (java.lang.ClassNotFoundException JavaDoc e) {
152             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
153         } finally {
154             ref.done(call);
155         }
156         return $result;
157         }
158     } catch (java.lang.RuntimeException JavaDoc e) {
159         throw e;
160     } catch (java.rmi.RemoteException JavaDoc e) {
161         throw e;
162     } catch (java.lang.Exception JavaDoc e) {
163         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
164     }
165     }
166     
167     // implementation of getName()
168
public java.lang.String JavaDoc getName()
169     throws java.rmi.RemoteException JavaDoc
170     {
171     try {
172         if (useNewInvoke) {
173         Object JavaDoc $result = ref.invoke(this, $method_getName_3, null, 6317137956467216454L);
174         return ((java.lang.String JavaDoc) $result);
175         } else {
176         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
177         ref.invoke(call);
178         java.lang.String JavaDoc $result;
179         try {
180             java.io.ObjectInput JavaDoc in = call.getInputStream();
181             $result = (java.lang.String JavaDoc) in.readObject();
182         } catch (java.io.IOException JavaDoc e) {
183             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
184         } catch (java.lang.ClassNotFoundException JavaDoc e) {
185             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
186         } finally {
187             ref.done(call);
188         }
189         return $result;
190         }
191     } catch (java.lang.RuntimeException JavaDoc e) {
192         throw e;
193     } catch (java.rmi.RemoteException JavaDoc e) {
194         throw e;
195     } catch (java.lang.Exception JavaDoc e) {
196         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
197     }
198     }
199     
200     // implementation of getPrimaryKey()
201
public java.lang.Object JavaDoc getPrimaryKey()
202     throws java.rmi.RemoteException JavaDoc
203     {
204     try {
205         if (useNewInvoke) {
206         Object JavaDoc $result = ref.invoke(this, $method_getPrimaryKey_4, null, 4840115071604865751L);
207         return ((java.lang.Object JavaDoc) $result);
208         } else {
209         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
210         ref.invoke(call);
211         java.lang.Object JavaDoc $result;
212         try {
213             java.io.ObjectInput JavaDoc in = call.getInputStream();
214             $result = (java.lang.Object JavaDoc) in.readObject();
215         } catch (java.io.IOException JavaDoc e) {
216             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
217         } catch (java.lang.ClassNotFoundException JavaDoc e) {
218             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
219         } finally {
220             ref.done(call);
221         }
222         return $result;
223         }
224     } catch (java.lang.RuntimeException JavaDoc e) {
225         throw e;
226     } catch (java.rmi.RemoteException 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 isIdentical(EJBObject)
234
public boolean isIdentical(javax.ejb.EJBObject JavaDoc $param_EJBObject_1)
235     throws java.rmi.RemoteException JavaDoc
236     {
237     try {
238         if (useNewInvoke) {
239         Object JavaDoc $result = ref.invoke(this, $method_isIdentical_5, new java.lang.Object JavaDoc[] {$param_EJBObject_1}, -5909123752501984271L);
240         return ((java.lang.Boolean JavaDoc) $result).booleanValue();
241         } else {
242         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
243         try {
244             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
245             out.writeObject($param_EJBObject_1);
246         } catch (java.io.IOException JavaDoc e) {
247             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
248         }
249         ref.invoke(call);
250         boolean $result;
251         try {
252             java.io.ObjectInput JavaDoc in = call.getInputStream();
253             $result = in.readBoolean();
254         } catch (java.io.IOException JavaDoc e) {
255             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
256         } finally {
257             ref.done(call);
258         }
259         return $result;
260         }
261     } catch (java.lang.RuntimeException JavaDoc e) {
262         throw e;
263     } catch (java.rmi.RemoteException JavaDoc e) {
264         throw e;
265     } catch (java.lang.Exception JavaDoc e) {
266         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
267     }
268     }
269     
270     // implementation of remove()
271
public void remove()
272     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
273     {
274     try {
275         if (useNewInvoke) {
276         ref.invoke(this, $method_remove_6, null, -5013858639939630501L);
277         } else {
278         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
279         ref.invoke(call);
280         ref.done(call);
281         }
282     } catch (java.lang.RuntimeException JavaDoc e) {
283         throw e;
284     } catch (java.rmi.RemoteException JavaDoc e) {
285         throw e;
286     } catch (javax.ejb.RemoveException 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 setBnAuthRoleValue(BnAuthRoleValue)
294
public void setBnAuthRoleValue(hero.interfaces.BnAuthRoleValue $param_BnAuthRoleValue_1)
295     throws java.rmi.RemoteException JavaDoc
296     {
297     try {
298         if (useNewInvoke) {
299         ref.invoke(this, $method_setBnAuthRoleValue_7, new java.lang.Object JavaDoc[] {$param_BnAuthRoleValue_1}, 6206454496964013724L);
300         } else {
301         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
302         try {
303             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
304             out.writeObject($param_BnAuthRoleValue_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 (java.lang.Exception JavaDoc e) {
316         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
317     }
318     }
319 }
320
Popular Tags