KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > JOnASBnNodePerformerAssign_366038555Home_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 JOnASBnNodePerformerAssign_366038555Home_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements hero.interfaces.BnNodePerformerAssignHome, java.rmi.Remote JavaDoc, javax.ejb.EJBHome JavaDoc
9 {
10     private static final java.rmi.server.Operation JavaDoc[] operations = {
11     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnNodePerformerAssign create(hero.interfaces.BnNodePerformerAssignValue)"),
12     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnNodePerformerAssign create(java.lang.String, int, java.lang.String)"),
13     new java.rmi.server.Operation JavaDoc("java.util.Collection findAll()"),
14     new java.rmi.server.Operation JavaDoc("hero.interfaces.BnNodePerformerAssign findByPrimaryKey(hero.interfaces.BnNodePerformerAssignPK)"),
15     new java.rmi.server.Operation JavaDoc("javax.ejb.EJBMetaData getEJBMetaData()"),
16     new java.rmi.server.Operation JavaDoc("javax.ejb.HomeHandle getHomeHandle()"),
17     new java.rmi.server.Operation JavaDoc("void remove(java.lang.Object)"),
18     new java.rmi.server.Operation JavaDoc("void remove(javax.ejb.Handle)")
19     };
20     
21     private static final long interfaceHash = -2484439153666340419L;
22     
23     private static final long serialVersionUID = 2;
24     
25     private static boolean useNewInvoke;
26     private static java.lang.reflect.Method JavaDoc $method_create_0;
27     private static java.lang.reflect.Method JavaDoc $method_create_1;
28     private static java.lang.reflect.Method JavaDoc $method_findAll_2;
29     private static java.lang.reflect.Method JavaDoc $method_findByPrimaryKey_3;
30     private static java.lang.reflect.Method JavaDoc $method_getEJBMetaData_4;
31     private static java.lang.reflect.Method JavaDoc $method_getHomeHandle_5;
32     private static java.lang.reflect.Method JavaDoc $method_remove_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_create_0 = hero.interfaces.BnNodePerformerAssignHome.class.getMethod("create", new java.lang.Class JavaDoc[] {hero.interfaces.BnNodePerformerAssignValue.class});
46         $method_create_1 = hero.interfaces.BnNodePerformerAssignHome.class.getMethod("create", new java.lang.Class JavaDoc[] {java.lang.String JavaDoc.class, int.class, java.lang.String JavaDoc.class});
47         $method_findAll_2 = hero.interfaces.BnNodePerformerAssignHome.class.getMethod("findAll", new java.lang.Class JavaDoc[] {});
48         $method_findByPrimaryKey_3 = hero.interfaces.BnNodePerformerAssignHome.class.getMethod("findByPrimaryKey", new java.lang.Class JavaDoc[] {hero.interfaces.BnNodePerformerAssignPK.class});
49         $method_getEJBMetaData_4 = javax.ejb.EJBHome JavaDoc.class.getMethod("getEJBMetaData", new java.lang.Class JavaDoc[] {});
50         $method_getHomeHandle_5 = javax.ejb.EJBHome JavaDoc.class.getMethod("getHomeHandle", new java.lang.Class JavaDoc[] {});
51         $method_remove_6 = javax.ejb.EJBHome JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {java.lang.Object JavaDoc.class});
52         $method_remove_7 = javax.ejb.EJBHome JavaDoc.class.getMethod("remove", new java.lang.Class JavaDoc[] {javax.ejb.Handle JavaDoc.class});
53     } catch (java.lang.NoSuchMethodException JavaDoc e) {
54         useNewInvoke = false;
55     }
56     }
57     
58     // constructors
59
public JOnASBnNodePerformerAssign_366038555Home_Stub() {
60     super();
61     }
62     public JOnASBnNodePerformerAssign_366038555Home_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
63     super(ref);
64     }
65     
66     // methods from remote interfaces
67

68     // implementation of create(BnNodePerformerAssignValue)
69
public hero.interfaces.BnNodePerformerAssign create(hero.interfaces.BnNodePerformerAssignValue $param_BnNodePerformerAssignValue_1)
70     throws hero.interfaces.InvalidValueException, java.rmi.RemoteException JavaDoc, javax.ejb.CreateException JavaDoc
71     {
72     try {
73         if (useNewInvoke) {
74         Object JavaDoc $result = ref.invoke(this, $method_create_0, new java.lang.Object JavaDoc[] {$param_BnNodePerformerAssignValue_1}, 3681700882712869653L);
75         return ((hero.interfaces.BnNodePerformerAssign) $result);
76         } else {
77         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 0, interfaceHash);
78         try {
79             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
80             out.writeObject($param_BnNodePerformerAssignValue_1);
81         } catch (java.io.IOException JavaDoc e) {
82             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
83         }
84         ref.invoke(call);
85         hero.interfaces.BnNodePerformerAssign $result;
86         try {
87             java.io.ObjectInput JavaDoc in = call.getInputStream();
88             $result = (hero.interfaces.BnNodePerformerAssign) in.readObject();
89         } catch (java.io.IOException JavaDoc e) {
90             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
91         } catch (java.lang.ClassNotFoundException JavaDoc e) {
92             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
93         } finally {
94             ref.done(call);
95         }
96         return $result;
97         }
98     } catch (java.lang.RuntimeException JavaDoc e) {
99         throw e;
100     } catch (java.rmi.RemoteException JavaDoc e) {
101         throw e;
102     } catch (hero.interfaces.InvalidValueException e) {
103         throw e;
104     } catch (javax.ejb.CreateException JavaDoc e) {
105         throw e;
106     } catch (java.lang.Exception JavaDoc e) {
107         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
108     }
109     }
110     
111     // implementation of create(String, int, String)
112
public hero.interfaces.BnNodePerformerAssign create(java.lang.String JavaDoc $param_String_1, int $param_int_2, java.lang.String JavaDoc $param_String_3)
113     throws hero.interfaces.InvalidValueException, java.rmi.RemoteException JavaDoc, javax.ejb.CreateException JavaDoc
114     {
115     try {
116         if (useNewInvoke) {
117         Object JavaDoc $result = ref.invoke(this, $method_create_1, new java.lang.Object JavaDoc[] {$param_String_1, new java.lang.Integer JavaDoc($param_int_2), $param_String_3}, -5530063001713947450L);
118         return ((hero.interfaces.BnNodePerformerAssign) $result);
119         } else {
120         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 1, interfaceHash);
121         try {
122             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
123             out.writeObject($param_String_1);
124             out.writeInt($param_int_2);
125             out.writeObject($param_String_3);
126         } catch (java.io.IOException JavaDoc e) {
127             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
128         }
129         ref.invoke(call);
130         hero.interfaces.BnNodePerformerAssign $result;
131         try {
132             java.io.ObjectInput JavaDoc in = call.getInputStream();
133             $result = (hero.interfaces.BnNodePerformerAssign) in.readObject();
134         } catch (java.io.IOException JavaDoc e) {
135             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
136         } catch (java.lang.ClassNotFoundException JavaDoc e) {
137             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
138         } finally {
139             ref.done(call);
140         }
141         return $result;
142         }
143     } catch (java.lang.RuntimeException JavaDoc e) {
144         throw e;
145     } catch (java.rmi.RemoteException JavaDoc e) {
146         throw e;
147     } catch (hero.interfaces.InvalidValueException e) {
148         throw e;
149     } catch (javax.ejb.CreateException JavaDoc e) {
150         throw e;
151     } catch (java.lang.Exception JavaDoc e) {
152         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
153     }
154     }
155     
156     // implementation of findAll()
157
public java.util.Collection JavaDoc findAll()
158     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
159     {
160     try {
161         if (useNewInvoke) {
162         Object JavaDoc $result = ref.invoke(this, $method_findAll_2, null, -4609096605735334920L);
163         return ((java.util.Collection JavaDoc) $result);
164         } else {
165         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 2, interfaceHash);
166         ref.invoke(call);
167         java.util.Collection JavaDoc $result;
168         try {
169             java.io.ObjectInput JavaDoc in = call.getInputStream();
170             $result = (java.util.Collection JavaDoc) in.readObject();
171         } catch (java.io.IOException JavaDoc e) {
172             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
173         } catch (java.lang.ClassNotFoundException JavaDoc e) {
174             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
175         } finally {
176             ref.done(call);
177         }
178         return $result;
179         }
180     } catch (java.lang.RuntimeException JavaDoc e) {
181         throw e;
182     } catch (java.rmi.RemoteException JavaDoc e) {
183         throw e;
184     } catch (javax.ejb.FinderException JavaDoc e) {
185         throw e;
186     } catch (java.lang.Exception JavaDoc e) {
187         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
188     }
189     }
190     
191     // implementation of findByPrimaryKey(BnNodePerformerAssignPK)
192
public hero.interfaces.BnNodePerformerAssign findByPrimaryKey(hero.interfaces.BnNodePerformerAssignPK $param_BnNodePerformerAssignPK_1)
193     throws java.rmi.RemoteException JavaDoc, javax.ejb.FinderException JavaDoc
194     {
195     try {
196         if (useNewInvoke) {
197         Object JavaDoc $result = ref.invoke(this, $method_findByPrimaryKey_3, new java.lang.Object JavaDoc[] {$param_BnNodePerformerAssignPK_1}, 3186368077407015686L);
198         return ((hero.interfaces.BnNodePerformerAssign) $result);
199         } else {
200         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 3, interfaceHash);
201         try {
202             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
203             out.writeObject($param_BnNodePerformerAssignPK_1);
204         } catch (java.io.IOException JavaDoc e) {
205             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
206         }
207         ref.invoke(call);
208         hero.interfaces.BnNodePerformerAssign $result;
209         try {
210             java.io.ObjectInput JavaDoc in = call.getInputStream();
211             $result = (hero.interfaces.BnNodePerformerAssign) in.readObject();
212         } catch (java.io.IOException JavaDoc e) {
213             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
214         } catch (java.lang.ClassNotFoundException JavaDoc e) {
215             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
216         } finally {
217             ref.done(call);
218         }
219         return $result;
220         }
221     } catch (java.lang.RuntimeException JavaDoc e) {
222         throw e;
223     } catch (java.rmi.RemoteException JavaDoc e) {
224         throw e;
225     } catch (javax.ejb.FinderException JavaDoc 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 getEJBMetaData()
233
public javax.ejb.EJBMetaData JavaDoc getEJBMetaData()
234     throws java.rmi.RemoteException JavaDoc
235     {
236     try {
237         if (useNewInvoke) {
238         Object JavaDoc $result = ref.invoke(this, $method_getEJBMetaData_4, null, 6217030353865232067L);
239         return ((javax.ejb.EJBMetaData JavaDoc) $result);
240         } else {
241         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 4, interfaceHash);
242         ref.invoke(call);
243         javax.ejb.EJBMetaData JavaDoc $result;
244         try {
245             java.io.ObjectInput JavaDoc in = call.getInputStream();
246             $result = (javax.ejb.EJBMetaData JavaDoc) in.readObject();
247         } catch (java.io.IOException JavaDoc e) {
248             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
249         } catch (java.lang.ClassNotFoundException 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 getHomeHandle()
266
public javax.ejb.HomeHandle JavaDoc getHomeHandle()
267     throws java.rmi.RemoteException JavaDoc
268     {
269     try {
270         if (useNewInvoke) {
271         Object JavaDoc $result = ref.invoke(this, $method_getHomeHandle_5, null, -8748260460775500658L);
272         return ((javax.ejb.HomeHandle JavaDoc) $result);
273         } else {
274         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 5, interfaceHash);
275         ref.invoke(call);
276         javax.ejb.HomeHandle JavaDoc $result;
277         try {
278             java.io.ObjectInput JavaDoc in = call.getInputStream();
279             $result = (javax.ejb.HomeHandle JavaDoc) in.readObject();
280         } catch (java.io.IOException JavaDoc e) {
281             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
282         } catch (java.lang.ClassNotFoundException JavaDoc e) {
283             throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling return", e);
284         } finally {
285             ref.done(call);
286         }
287         return $result;
288         }
289     } catch (java.lang.RuntimeException JavaDoc e) {
290         throw e;
291     } catch (java.rmi.RemoteException JavaDoc e) {
292         throw e;
293     } catch (java.lang.Exception JavaDoc e) {
294         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
295     }
296     }
297     
298     // implementation of remove(Object)
299
public void remove(java.lang.Object JavaDoc $param_Object_1)
300     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
301     {
302     try {
303         if (useNewInvoke) {
304         ref.invoke(this, $method_remove_6, new java.lang.Object JavaDoc[] {$param_Object_1}, 4460578865329725433L);
305         } else {
306         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 6, interfaceHash);
307         try {
308             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
309             out.writeObject($param_Object_1);
310         } catch (java.io.IOException JavaDoc e) {
311             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
312         }
313         ref.invoke(call);
314         ref.done(call);
315         }
316     } catch (java.lang.RuntimeException JavaDoc e) {
317         throw e;
318     } catch (java.rmi.RemoteException JavaDoc e) {
319         throw e;
320     } catch (javax.ejb.RemoveException JavaDoc e) {
321         throw e;
322     } catch (java.lang.Exception JavaDoc e) {
323         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
324     }
325     }
326     
327     // implementation of remove(Handle)
328
public void remove(javax.ejb.Handle JavaDoc $param_Handle_1)
329     throws java.rmi.RemoteException JavaDoc, javax.ejb.RemoveException JavaDoc
330     {
331     try {
332         if (useNewInvoke) {
333         ref.invoke(this, $method_remove_7, new java.lang.Object JavaDoc[] {$param_Handle_1}, 1121126102706750000L);
334         } else {
335         java.rmi.server.RemoteCall JavaDoc call = ref.newCall((java.rmi.server.RemoteObject JavaDoc) this, operations, 7, interfaceHash);
336         try {
337             java.io.ObjectOutput JavaDoc out = call.getOutputStream();
338             out.writeObject($param_Handle_1);
339         } catch (java.io.IOException JavaDoc e) {
340             throw new java.rmi.MarshalException JavaDoc("error marshalling arguments", e);
341         }
342         ref.invoke(call);
343         ref.done(call);
344         }
345     } catch (java.lang.RuntimeException JavaDoc e) {
346         throw e;
347     } catch (java.rmi.RemoteException JavaDoc e) {
348         throw e;
349     } catch (javax.ejb.RemoveException JavaDoc e) {
350         throw e;
351     } catch (java.lang.Exception JavaDoc e) {
352         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
353     }
354     }
355 }
356
Popular Tags