KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASXPDLSessionImport683589757Remote_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 JOnASXPDLSessionImport683589757Remote_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.XPDLSessionImport, 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("boolean isIdentical(javax.ejb.EJBObject)"),
15     new java.rmi.server.Operation JavaDoc("void openMainDocument(java.lang.String, java.lang.String, java.lang.String)"),
16     new java.rmi.server.Operation JavaDoc("void printHashTables()"),
17     new java.rmi.server.Operation JavaDoc("void remove()")
18     };
19     
20     private static final long interfaceHash = 479376388057879167L;
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_getHandle_1;
27     private static java.lang.reflect.Method JavaDoc $method_getPrimaryKey_2;
28     private static java.lang.reflect.Method JavaDoc $method_isIdentical_3;
29     private static java.lang.reflect.Method JavaDoc $method_openMainDocument_4;
30     private static java.lang.reflect.Method JavaDoc $method_printHashTables_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_getHandle_1 = javax.ejb.EJBObject JavaDoc.class.getMethod("getHandle", new java.lang.Class JavaDoc[] {});
45         $method_getPrimaryKey_2 = javax.ejb.EJBObject JavaDoc.class.getMethod("getPrimaryKey", new java.lang.Class JavaDoc[] {});
46         $method_isIdentical_3 = javax.ejb.EJBObject JavaDoc.class.getMethod("isIdentical", new java.lang.Class JavaDoc[] {javax.ejb.EJBObject JavaDoc.class});
47         $method_openMainDocument_4 = hero.interfaces.XPDLSessionImport.class.getMethod("openMainDocument", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, java.lang.String JavaDoc.class, java.lang.String JavaDoc.class});
48         $method_printHashTables_5 = hero.interfaces.XPDLSessionImport.class.getMethod("printHashTables", new java.lang.Class JavaDoc[] {});
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 JOnASXPDLSessionImport683589757Remote_Stub() {
57     super();
58     }
59     public JOnASXPDLSessionImport683589757Remote_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 getHandle()
99
public javax.ejb.Handle JavaDoc getHandle()
100     throws java.rmi.RemoteException JavaDoc
101     {
102     try {
103         if (useNewInvoke) {
104         Object JavaDoc $result = ref.invoke(this, $method_getHandle_1, null, -1299374689989208114L);
105         return ((javax.ejb.Handle JavaDoc) $result);
106         } else {
107         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 1, interfaceHash);
108         ref.invoke(call);
109         javax.ejb.Handle JavaDoc $result;
110         try {
111             java.io.ObjectInput JavaDoc in = call.getInputStream();
112             $result = (javax.ejb.Handle JavaDoc) in.readObject();
113         } catch (java.io.IOException JavaDoc e) {
114             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
115         } catch (java.lang.ClassNotFoundException JavaDoc e) {
116             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
117         } finally {
118             ref.done(call);
119         }
120         return $result;
121         }
122     } catch (java.lang.RuntimeException JavaDoc e) {
123         throw e;
124     } catch (java.rmi.RemoteException JavaDoc e) {
125         throw e;
126     } catch (java.lang.Exception JavaDoc e) {
127         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
128     }
129     }
130     
131     // implementation of getPrimaryKey()
132
public java.lang.Object JavaDoc getPrimaryKey()
133     throws java.rmi.RemoteException JavaDoc
134     {
135     try {
136         if (useNewInvoke) {
137         Object JavaDoc $result = ref.invoke(this, $method_getPrimaryKey_2, null, 4840115071604865751L);
138         return ((java.lang.Object JavaDoc) $result);
139         } else {
140         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
141         ref.invoke(call);
142         java.lang.Object JavaDoc $result;
143         try {
144             java.io.ObjectInput JavaDoc in = call.getInputStream();
145             $result = (java.lang.Object JavaDoc) in.readObject();
146         } catch (java.io.IOException JavaDoc e) {
147             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
148         } catch (java.lang.ClassNotFoundException JavaDoc e) {
149             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
150         } finally {
151             ref.done(call);
152         }
153         return $result;
154         }
155     } catch (java.lang.RuntimeException JavaDoc e) {
156         throw e;
157     } catch (java.rmi.RemoteException JavaDoc e) {
158         throw e;
159     } catch (java.lang.Exception JavaDoc e) {
160         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
161     }
162     }
163     
164     // implementation of isIdentical(EJBObject)
165
public boolean isIdentical(javax.ejb.EJBObject JavaDoc $param_EJBObject_1)
166     throws java.rmi.RemoteException JavaDoc
167     {
168     try {
169         if (useNewInvoke) {
170         Object JavaDoc $result = ref.invoke(this, $method_isIdentical_3, new java.lang.Object JavaDoc[] {$param_EJBObject_1}, -5909123752501984271L);
171         return ((java.lang.Boolean JavaDoc) $result).booleanValue();
172         } else {
173         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
174         try {
175             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
176             out.writeObject($param_EJBObject_1);
177         } catch (java.io.IOException JavaDoc e) {
178             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
179         }
180         ref.invoke(call);
181         boolean $result;
182         try {
183             java.io.ObjectInput JavaDoc in = call.getInputStream();
184             $result = in.readBoolean();
185         } catch (java.io.IOException JavaDoc e) {
186             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
187         } finally {
188             ref.done(call);
189         }
190         return $result;
191         }
192     } catch (java.lang.RuntimeException JavaDoc e) {
193         throw e;
194     } catch (java.rmi.RemoteException JavaDoc e) {
195         throw e;
196     } catch (java.lang.Exception JavaDoc e) {
197         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
198     }
199     }
200     
201     // implementation of openMainDocument(String, String, String)
202
public void openMainDocument(java.lang.String JavaDoc $param_String_1, java.lang.String JavaDoc $param_String_2, java.lang.String JavaDoc $param_String_3)
203     throws hero.util.XPDLException, java.rmi.RemoteException JavaDoc
204     {
205     try {
206         if (useNewInvoke) {
207         ref.invoke(this, $method_openMainDocument_4, new java.lang.Object JavaDoc[] {$param_String_1, $param_String_2, $param_String_3}, -437246532571870980L);
208         } else {
209         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
210         try {
211             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
212             out.writeObject($param_String_1);
213             out.writeObject($param_String_2);
214             out.writeObject($param_String_3);
215         } catch (java.io.IOException JavaDoc e) {
216             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
217         }
218         ref.invoke(call);
219         ref.done(call);
220         }
221     } catch (java.lang.RuntimeException JavaDoc e) {
222         throw e;
223     } catch (java.rmi.RemoteException JavaDoc e) {
224         throw e;
225     } catch (hero.util.XPDLException e) {
226         throw e;
227     } catch (java.lang.Exception JavaDoc e) {
228         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
229     }
230     }
231     
232     // implementation of printHashTables()
233
public void printHashTables()
234     throws hero.util.XPDLException, java.rmi.RemoteException JavaDoc
235     {
236     try {
237         if (useNewInvoke) {
238         ref.invoke(this, $method_printHashTables_5, null, -6393882392638953581L);
239         } else {
240         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
241         ref.invoke(call);
242         ref.done(call);
243         }
244     } catch (java.lang.RuntimeException JavaDoc e) {
245         throw e;
246     } catch (java.rmi.RemoteException JavaDoc e) {
247         throw e;
248     } catch (hero.util.XPDLException e) {
249         throw e;
250     } catch (java.lang.Exception JavaDoc e) {
251         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
252     }
253     }
254     
255     // implementation of remove()
256
public void remove()
257     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
258     {
259     try {
260         if (useNewInvoke) {
261         ref.invoke(this, $method_remove_6, null, -5013858639939630501L);
262         } else {
263         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
264         ref.invoke(call);
265         ref.done(call);
266         }
267     } catch (java.lang.RuntimeException JavaDoc e) {
268         throw e;
269     } catch (java.rmi.RemoteException JavaDoc e) {
270         throw e;
271     } catch (javax.ejb.RemoveException JavaDoc e) {
272         throw e;
273     } catch (java.lang.Exception JavaDoc e) {
274         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
275     }
276     }
277 }
278
Popular Tags