KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASBnLdap_1419269875Remote_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 JOnASBnLdap_1419269875Remote_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.BnLdap, 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("javax.ejb.EJBHome getEJBHome()"),
12     new java.rmi.server.Operation JavaDoc("java.util.Collection getGroupMembers(java.lang.String)"),
13     new java.rmi.server.Operation JavaDoc("javax.ejb.Handle getHandle()"),
14     new java.rmi.server.Operation JavaDoc("java.lang.Object getPrimaryKey()"),
15     new java.rmi.server.Operation JavaDoc("void importLdapUsers()"),
16     new java.rmi.server.Operation JavaDoc("boolean isIdentical(javax.ejb.EJBObject)"),
17     new java.rmi.server.Operation JavaDoc("void remove()")
18     };
19     
20     private static final long interfaceHash = -7519548330411534243L;
21     
22     private static final long serialVersionUID = 2;
23     
24     private static boolean useNewInvoke;
25     private static java.lang.reflect.Method JavaDoc $method_getEJBHome_0;
26     private static java.lang.reflect.Method JavaDoc $method_getGroupMembers_1;
27     private static java.lang.reflect.Method JavaDoc $method_getHandle_2;
28     private static java.lang.reflect.Method JavaDoc $method_getPrimaryKey_3;
29     private static java.lang.reflect.Method JavaDoc $method_importLdapUsers_4;
30     private static java.lang.reflect.Method JavaDoc $method_isIdentical_5;
31     private static java.lang.reflect.Method JavaDoc $method_remove_6;
32     
33     static {
34     try {
35         java.rmi.server.RemoteRef JavaDoc.class.getMethod("invoke",
36         new java.lang.Class JavaDoc[] {
37             java.rmi.Remote JavaDoc.class,
38             java.lang.reflect.Method JavaDoc.class,
39             java.lang.Object JavaDoc[].class,
40             long.class
41         });
42         useNewInvoke = true;
43         $method_getEJBHome_0 = javax.ejb.EJBObject JavaDoc.class.getMethod("getEJBHome", new java.lang.Class JavaDoc[] {});
44         $method_getGroupMembers_1 = hero.interfaces.BnLdap.class.getMethod("getGroupMembers", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class});
45         $method_getHandle_2 = javax.ejb.EJBObject JavaDoc.class.getMethod("getHandle", new java.lang.Class JavaDoc[] {});
46         $method_getPrimaryKey_3 = javax.ejb.EJBObject JavaDoc.class.getMethod("getPrimaryKey", new java.lang.Class JavaDoc[] {});
47         $method_importLdapUsers_4 = hero.interfaces.BnLdap.class.getMethod("importLdapUsers", new java.lang.Class JavaDoc[] {});
48         $method_isIdentical_5 = javax.ejb.EJBObject JavaDoc.class.getMethod("isIdentical", new java.lang.Class JavaDoc[] {javax.ejb.EJBObject JavaDoc.class});
49         $method_remove_6 = javax.ejb.EJBObject JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {});
50     } catch (java.lang.NoSuchMethodException JavaDoc e) {
51         useNewInvoke = false;
52     }
53     }
54     
55     // constructors
56
public JOnASBnLdap_1419269875Remote_Stub() {
57     super();
58     }
59     public JOnASBnLdap_1419269875Remote_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
60     super(ref);
61     }
62     
63     // methods from remote interfaces
64

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