KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASInsertAuthRoleUser_1576450899Remote_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 JOnASInsertAuthRoleUser_1576450899Remote_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.InsertAuthRoleUser, 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("javax.ejb.Handle getHandle()"),
13     new java.rmi.server.Operation JavaDoc("java.lang.Object getPrimaryKey()"),
14     new java.rmi.server.Operation JavaDoc("void initialize(java.lang.String, java.lang.String)"),
15     new java.rmi.server.Operation JavaDoc("void initializeAuthRole(java.lang.String, java.lang.String)"),
16     new java.rmi.server.Operation JavaDoc("void initializeUser(java.lang.String, java.lang.String, java.lang.String)"),
17     new java.rmi.server.Operation JavaDoc("boolean isIdentical(javax.ejb.EJBObject)"),
18     new java.rmi.server.Operation JavaDoc("void remove()")
19     };
20     
21     private static final long interfaceHash = -3895339871699418586L;
22     
23     private static final long serialVersionUID = 2;
24     
25     private static boolean useNewInvoke;
26     private static java.lang.reflect.Method JavaDoc $method_getEJBHome_0;
27     private static java.lang.reflect.Method JavaDoc $method_getHandle_1;
28     private static java.lang.reflect.Method JavaDoc $method_getPrimaryKey_2;
29     private static java.lang.reflect.Method JavaDoc $method_initialize_3;
30     private static java.lang.reflect.Method JavaDoc $method_initializeAuthRole_4;
31     private static java.lang.reflect.Method JavaDoc $method_initializeUser_5;
32     private static java.lang.reflect.Method JavaDoc $method_isIdentical_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_getEJBHome_0 = javax.ejb.EJBObject JavaDoc.class.getMethod("getEJBHome", new java.lang.Class JavaDoc[] {});
46         $method_getHandle_1 = javax.ejb.EJBObject JavaDoc.class.getMethod("getHandle", new java.lang.Class JavaDoc[] {});
47         $method_getPrimaryKey_2 = javax.ejb.EJBObject JavaDoc.class.getMethod("getPrimaryKey", new java.lang.Class JavaDoc[] {});
48         $method_initialize_3 = hero.interfaces.InsertAuthRoleUser.class.getMethod("initialize", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
49         $method_initializeAuthRole_4 = hero.interfaces.InsertAuthRoleUser.class.getMethod("initializeAuthRole", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
50         $method_initializeUser_5 = hero.interfaces.InsertAuthRoleUser.class.getMethod("initializeUser", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
51         $method_isIdentical_6 = javax.ejb.EJBObject JavaDoc.class.getMethod("isIdentical", new java.lang.Class JavaDoc[] {javax.ejb.EJBObject JavaDoc.class});
52         $method_remove_7 = javax.ejb.EJBObject JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {});
53     } catch (java.lang.NoSuchMethodException JavaDoc e) {
54         useNewInvoke = false;
55     }
56     }
57     
58     // constructors
59
public JOnASInsertAuthRoleUser_1576450899Remote_Stub() {
60     super();
61     }
62     public JOnASInsertAuthRoleUser_1576450899Remote_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
63     super(ref);
64     }
65     
66     // methods from remote interfaces
67

68     // implementation of getEJBHome()
69
public javax.ejb.EJBHome JavaDoc getEJBHome()
70     throws java.rmi.RemoteException JavaDoc
71     {
72     try {
73         if (useNewInvoke) {
74         Object JavaDoc $result = ref.invoke(this, $method_getEJBHome_0, null, 3163754803894080547L);
75         return ((javax.ejb.EJBHome JavaDoc) $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         javax.ejb.EJBHome JavaDoc $result;
80         try {
81             java.io.ObjectInput JavaDoc in = call.getInputStream();
82             $result = (javax.ejb.EJBHome JavaDoc) 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 getHandle()
102
public javax.ejb.Handle JavaDoc getHandle()
103     throws java.rmi.RemoteException JavaDoc
104     {
105     try {
106         if (useNewInvoke) {
107         Object JavaDoc $result = ref.invoke(this, $method_getHandle_1, null, -1299374689989208114L);
108         return ((javax.ejb.Handle 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.Handle JavaDoc $result;
113         try {
114             java.io.ObjectInput JavaDoc in = call.getInputStream();
115             $result = (javax.ejb.Handle 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 getPrimaryKey()
135
public java.lang.Object JavaDoc getPrimaryKey()
136     throws java.rmi.RemoteException JavaDoc
137     {
138     try {
139         if (useNewInvoke) {
140         Object JavaDoc $result = ref.invoke(this, $method_getPrimaryKey_2, null, 4840115071604865751L);
141         return ((java.lang.Object 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         java.lang.Object JavaDoc $result;
146         try {
147             java.io.ObjectInput JavaDoc in = call.getInputStream();
148             $result = (java.lang.Object 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 initialize(String, String)
168
public void initialize(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2)
169     throws java.rmi.RemoteException JavaDoc
170     {
171     try {
172         if (useNewInvoke) {
173         ref.invoke(this, $method_initialize_3, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2}, -2017773378903955572L);
174         } else {
175         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
176         try {
177             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
178             out.writeObject($param_String_1);
179             out.writeObject($param_String_2);
180         } catch (java.io.IOException JavaDoc e) {
181             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
182         }
183         ref.invoke(call);
184         ref.done(call);
185         }
186     } catch (java.lang.RuntimeException JavaDoc e) {
187         throw e;
188     } catch (java.rmi.RemoteException JavaDoc e) {
189         throw e;
190     } catch (java.lang.Exception JavaDoc e) {
191         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
192     }
193     }
194     
195     // implementation of initializeAuthRole(String, String)
196
public void initializeAuthRole(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2)
197     throws java.rmi.RemoteException JavaDoc
198     {
199     try {
200         if (useNewInvoke) {
201         ref.invoke(this, $method_initializeAuthRole_4, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2}, 4015391025426260002L);
202         } else {
203         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
204         try {
205             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
206             out.writeObject($param_String_1);
207             out.writeObject($param_String_2);
208         } catch (java.io.IOException JavaDoc e) {
209             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
210         }
211         ref.invoke(call);
212         ref.done(call);
213         }
214     } catch (java.lang.RuntimeException JavaDoc e) {
215         throw e;
216     } catch (java.rmi.RemoteException JavaDoc e) {
217         throw e;
218     } catch (java.lang.Exception JavaDoc e) {
219         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
220     }
221     }
222     
223     // implementation of initializeUser(String, String, String)
224
public void initializeUser(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2, java.lang.String JavaDoc $param_String_3)
225     throws java.rmi.RemoteException JavaDoc
226     {
227     try {
228         if (useNewInvoke) {
229         ref.invoke(this, $method_initializeUser_5, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2, $param_String_3}, 3398727969885706523L);
230         } else {
231         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
232         try {
233             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
234             out.writeObject($param_String_1);
235             out.writeObject($param_String_2);
236             out.writeObject($param_String_3);
237         } catch (java.io.IOException JavaDoc e) {
238             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
239         }
240         ref.invoke(call);
241         ref.done(call);
242         }
243     } catch (java.lang.RuntimeException JavaDoc e) {
244         throw e;
245     } catch (java.rmi.RemoteException JavaDoc e) {
246         throw e;
247     } catch (java.lang.Exception JavaDoc e) {
248         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
249     }
250     }
251     
252     // implementation of isIdentical(EJBObject)
253
public boolean isIdentical(javax.ejb.EJBObject JavaDoc $param_EJBObject_1)
254     throws java.rmi.RemoteException JavaDoc
255     {
256     try {
257         if (useNewInvoke) {
258         Object JavaDoc $result = ref.invoke(this, $method_isIdentical_6, new java.lang.Object JavaDoc[] {$param_EJBObject_1}, -5909123752501984271L);
259         return ((java.lang.Boolean JavaDoc) $result).booleanValue();
260         } else {
261         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
262         try {
263             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
264             out.writeObject($param_EJBObject_1);
265         } catch (java.io.IOException JavaDoc e) {
266             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
267         }
268         ref.invoke(call);
269         boolean $result;
270         try {
271             java.io.ObjectInput JavaDoc in = call.getInputStream();
272             $result = in.readBoolean();
273         } catch (java.io.IOException JavaDoc e) {
274             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
275         } finally {
276             ref.done(call);
277         }
278         return $result;
279         }
280     } catch (java.lang.RuntimeException JavaDoc e) {
281         throw e;
282     } catch (java.rmi.RemoteException JavaDoc e) {
283         throw e;
284     } catch (java.lang.Exception JavaDoc e) {
285         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
286     }
287     }
288     
289     // implementation of remove()
290
public void remove()
291     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
292     {
293     try {
294         if (useNewInvoke) {
295         ref.invoke(this, $method_remove_7, null, -5013858639939630501L);
296         } else {
297         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
298         ref.invoke(call);
299         ref.done(call);
300         }
301     } catch (java.lang.RuntimeException JavaDoc e) {
302         throw e;
303     } catch (java.rmi.RemoteException JavaDoc e) {
304         throw e;
305     } catch (javax.ejb.RemoveException JavaDoc e) {
306         throw e;
307     } catch (java.lang.Exception JavaDoc e) {
308         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
309     }
310     }
311 }
312
Popular Tags