KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASAllProjectsSession_1322664691Remote_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 JOnASAllProjectsSession_1322664691Remote_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.AllProjectsSession, 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("java.util.Collection getProjects()"),
15     new java.rmi.server.Operation JavaDoc("boolean isIdentical(javax.ejb.EJBObject)"),
16     new java.rmi.server.Operation JavaDoc("void remove()")
17     };
18     
19     private static final long interfaceHash = -7062559620836054377L;
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_getProjects_3;
28     private static java.lang.reflect.Method JavaDoc $method_isIdentical_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_getProjects_3 = hero.interfaces.AllProjectsSession.class.getMethod("getProjects", new java.lang.Class JavaDoc[] {});
45         $method_isIdentical_4 = javax.ejb.EJBObject JavaDoc.class.getMethod("isIdentical", new java.lang.Class JavaDoc[] {javax.ejb.EJBObject 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 JOnASAllProjectsSession_1322664691Remote_Stub() {
54     super();
55     }
56     public JOnASAllProjectsSession_1322664691Remote_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 getProjects()
162
public java.util.Collection JavaDoc getProjects()
163     throws hero.util.HeroException, java.rmi.RemoteException JavaDoc
164     {
165     try {
166         if (useNewInvoke) {
167         Object JavaDoc $result = ref.invoke(this, $method_getProjects_3, null, 5734329594701103897L);
168         return ((java.util.Collection JavaDoc) $result);
169         } else {
170         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
171         ref.invoke(call);
172         java.util.Collection JavaDoc $result;
173         try {
174             java.io.ObjectInput JavaDoc in = call.getInputStream();
175             $result = (java.util.Collection JavaDoc) in.readObject();
176         } catch (java.io.IOException JavaDoc e) {
177             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
178         } catch (java.lang.ClassNotFoundException JavaDoc e) {
179             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
180         } finally {
181             ref.done(call);
182         }
183         return $result;
184         }
185     } catch (java.lang.RuntimeException JavaDoc e) {
186         throw e;
187     } catch (java.rmi.RemoteException JavaDoc e) {
188         throw e;
189     } catch (hero.util.HeroException e) {
190         throw e;
191     } catch (java.lang.Exception JavaDoc e) {
192         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
193     }
194     }
195     
196     // implementation of isIdentical(EJBObject)
197
public boolean isIdentical(javax.ejb.EJBObject JavaDoc $param_EJBObject_1)
198     throws java.rmi.RemoteException JavaDoc
199     {
200     try {
201         if (useNewInvoke) {
202         Object JavaDoc $result = ref.invoke(this, $method_isIdentical_4, new java.lang.Object JavaDoc[] {$param_EJBObject_1}, -5909123752501984271L);
203         return ((java.lang.Boolean JavaDoc) $result).booleanValue();
204         } else {
205         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
206         try {
207             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
208             out.writeObject($param_EJBObject_1);
209         } catch (java.io.IOException JavaDoc e) {
210             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
211         }
212         ref.invoke(call);
213         boolean $result;
214         try {
215             java.io.ObjectInput JavaDoc in = call.getInputStream();
216             $result = in.readBoolean();
217         } catch (java.io.IOException 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 remove()
234
public void remove()
235     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
236     {
237     try {
238         if (useNewInvoke) {
239         ref.invoke(this, $method_remove_5, null, -5013858639939630501L);
240         } else {
241         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
242         ref.invoke(call);
243         ref.done(call);
244         }
245     } catch (java.lang.RuntimeException JavaDoc e) {
246         throw e;
247     } catch (java.rmi.RemoteException JavaDoc e) {
248         throw e;
249     } catch (javax.ejb.RemoveException JavaDoc e) {
250         throw e;
251     } catch (java.lang.Exception JavaDoc e) {
252         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
253     }
254     }
255 }
256
Popular Tags