KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASXPDLSession_1956665741Remote_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 JOnASXPDLSession_1956665741Remote_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.XPDLSession, 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 openProject(java.lang.String)"),
16     new java.rmi.server.Operation JavaDoc("void remove()")
17     };
18     
19     private static final long interfaceHash = -4728859866985542879L;
20     
21     private static final long serialVersionUID = 2;
22     
23     private static boolean useNewInvoke;
24     private static java.lang.reflect.Method JavaDoc $method_getEJBHome_0;
25     private static java.lang.reflect.Method JavaDoc $method_getHandle_1;
26     private static java.lang.reflect.Method JavaDoc $method_getPrimaryKey_2;
27     private static java.lang.reflect.Method JavaDoc $method_isIdentical_3;
28     private static java.lang.reflect.Method JavaDoc $method_openProject_4;
29     private static java.lang.reflect.Method JavaDoc $method_remove_5;
30     
31     static {
32     try {
33         java.rmi.server.RemoteRef JavaDoc.class.getMethod("invoke",
34         new java.lang.Class JavaDoc[] {
35             java.rmi.Remote JavaDoc.class,
36             java.lang.reflect.Method JavaDoc.class,
37             java.lang.Object JavaDoc[].class,
38             long.class
39         });
40         useNewInvoke = true;
41         $method_getEJBHome_0 = javax.ejb.EJBObject JavaDoc.class.getMethod("getEJBHome", new java.lang.Class JavaDoc[] {});
42         $method_getHandle_1 = javax.ejb.EJBObject JavaDoc.class.getMethod("getHandle", new java.lang.Class JavaDoc[] {});
43         $method_getPrimaryKey_2 = javax.ejb.EJBObject JavaDoc.class.getMethod("getPrimaryKey", new java.lang.Class JavaDoc[] {});
44         $method_isIdentical_3 = javax.ejb.EJBObject JavaDoc.class.getMethod("isIdentical", new java.lang.Class JavaDoc[] {javax.ejb.EJBObject JavaDoc.class});
45         $method_openProject_4 = hero.interfaces.XPDLSession.class.getMethod("openProject", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class});
46         $method_remove_5 = javax.ejb.EJBObject JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {});
47     } catch (java.lang.NoSuchMethodException JavaDoc e) {
48         useNewInvoke = false;
49     }
50     }
51     
52     // constructors
53
public JOnASXPDLSession_1956665741Remote_Stub() {
54     super();
55     }
56     public JOnASXPDLSession_1956665741Remote_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
57     super(ref);
58     }
59     
60     // methods from remote interfaces
61

62     // implementation of getEJBHome()
63
public javax.ejb.EJBHome JavaDoc getEJBHome()
64     throws java.rmi.RemoteException JavaDoc
65     {
66     try {
67         if (useNewInvoke) {
68         Object JavaDoc $result = ref.invoke(this, $method_getEJBHome_0, null, 3163754803894080547L);
69         return ((javax.ejb.EJBHome JavaDoc) $result);
70         } else {
71         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 0, interfaceHash);
72         ref.invoke(call);
73         javax.ejb.EJBHome JavaDoc $result;
74         try {
75             java.io.ObjectInput JavaDoc in = call.getInputStream();
76             $result = (javax.ejb.EJBHome JavaDoc) in.readObject();
77         } catch (java.io.IOException JavaDoc e) {
78             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
79         } catch (java.lang.ClassNotFoundException JavaDoc e) {
80             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
81         } finally {
82             ref.done(call);
83         }
84         return $result;
85         }
86     } catch (java.lang.RuntimeException JavaDoc e) {
87         throw e;
88     } catch (java.rmi.RemoteException JavaDoc e) {
89         throw e;
90     } catch (java.lang.Exception JavaDoc e) {
91         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
92     }
93     }
94     
95     // implementation of getHandle()
96
public javax.ejb.Handle JavaDoc getHandle()
97     throws java.rmi.RemoteException JavaDoc
98     {
99     try {
100         if (useNewInvoke) {
101         Object JavaDoc $result = ref.invoke(this, $method_getHandle_1, null, -1299374689989208114L);
102         return ((javax.ejb.Handle JavaDoc) $result);
103         } else {
104         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 1, interfaceHash);
105         ref.invoke(call);
106         javax.ejb.Handle JavaDoc $result;
107         try {
108             java.io.ObjectInput JavaDoc in = call.getInputStream();
109             $result = (javax.ejb.Handle JavaDoc) in.readObject();
110         } catch (java.io.IOException JavaDoc e) {
111             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
112         } catch (java.lang.ClassNotFoundException JavaDoc e) {
113             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
114         } finally {
115             ref.done(call);
116         }
117         return $result;
118         }
119     } catch (java.lang.RuntimeException JavaDoc e) {
120         throw e;
121     } catch (java.rmi.RemoteException JavaDoc e) {
122         throw e;
123     } catch (java.lang.Exception JavaDoc e) {
124         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
125     }
126     }
127     
128     // implementation of getPrimaryKey()
129
public java.lang.Object JavaDoc getPrimaryKey()
130     throws java.rmi.RemoteException JavaDoc
131     {
132     try {
133         if (useNewInvoke) {
134         Object JavaDoc $result = ref.invoke(this, $method_getPrimaryKey_2, null, 4840115071604865751L);
135         return ((java.lang.Object JavaDoc) $result);
136         } else {
137         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
138         ref.invoke(call);
139         java.lang.Object JavaDoc $result;
140         try {
141             java.io.ObjectInput JavaDoc in = call.getInputStream();
142             $result = (java.lang.Object JavaDoc) in.readObject();
143         } catch (java.io.IOException JavaDoc e) {
144             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
145         } catch (java.lang.ClassNotFoundException JavaDoc e) {
146             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
147         } finally {
148             ref.done(call);
149         }
150         return $result;
151         }
152     } catch (java.lang.RuntimeException JavaDoc e) {
153         throw e;
154     } catch (java.rmi.RemoteException JavaDoc e) {
155         throw e;
156     } catch (java.lang.Exception JavaDoc e) {
157         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
158     }
159     }
160     
161     // implementation of isIdentical(EJBObject)
162
public boolean isIdentical(javax.ejb.EJBObject JavaDoc $param_EJBObject_1)
163     throws java.rmi.RemoteException JavaDoc
164     {
165     try {
166         if (useNewInvoke) {
167         Object JavaDoc $result = ref.invoke(this, $method_isIdentical_3, new java.lang.Object JavaDoc[] {$param_EJBObject_1}, -5909123752501984271L);
168         return ((java.lang.Boolean JavaDoc) $result).booleanValue();
169         } else {
170         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
171         try {
172             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
173             out.writeObject($param_EJBObject_1);
174         } catch (java.io.IOException JavaDoc e) {
175             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
176         }
177         ref.invoke(call);
178         boolean $result;
179         try {
180             java.io.ObjectInput JavaDoc in = call.getInputStream();
181             $result = in.readBoolean();
182         } catch (java.io.IOException JavaDoc e) {
183             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
184         } finally {
185             ref.done(call);
186         }
187         return $result;
188         }
189     } catch (java.lang.RuntimeException JavaDoc e) {
190         throw e;
191     } catch (java.rmi.RemoteException JavaDoc e) {
192         throw e;
193     } catch (java.lang.Exception JavaDoc e) {
194         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
195     }
196     }
197     
198     // implementation of openProject(String)
199
public void openProject(java.lang.String JavaDoc $param_String_1)
200     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
201     {
202     try {
203         if (useNewInvoke) {
204         ref.invoke(this, $method_openProject_4, new java.lang.Object JavaDoc[] {$param_String_1}, -8322366800133868165L);
205         } else {
206         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
207         try {
208             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
209             out.writeObject($param_String_1);
210         } catch (java.io.IOException JavaDoc e) {
211             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
212         }
213         ref.invoke(call);
214         ref.done(call);
215         }
216     } catch (java.lang.RuntimeException JavaDoc e) {
217         throw e;
218     } catch (java.rmi.RemoteException JavaDoc e) {
219         throw e;
220     } catch (hero.util.HeroException e) {
221         throw e;
222     } catch (java.lang.Exception JavaDoc e) {
223         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
224     }
225     }
226     
227     // implementation of remove()
228
public void remove()
229     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
230     {
231     try {
232         if (useNewInvoke) {
233         ref.invoke(this, $method_remove_5, null, -5013858639939630501L);
234         } else {
235         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
236         ref.invoke(call);
237         ref.done(call);
238         }
239     } catch (java.lang.RuntimeException JavaDoc e) {
240         throw e;
241     } catch (java.rmi.RemoteException JavaDoc e) {
242         throw e;
243     } catch (javax.ejb.RemoveException JavaDoc e) {
244         throw e;
245     } catch (java.lang.Exception JavaDoc e) {
246         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
247     }
248     }
249 }
250
Popular Tags