KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mark > comps > _AddStub


1 package mark.comps;
2
3
4 /**
5 * mark/comps/_AddStub.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.1"
7 * from W:/Geronimo/corba_container/tests/corba_idl/idl/Add.idl
8 * Monday, December 20, 2004 4:06:00 PM EST
9 */

10
11 public class _AddStub extends org.omg.CORBA.portable.ObjectImpl implements mark.comps.Add
12 {
13
14   public int add (int arg0, int arg1)
15   {
16             org.omg.CORBA.portable.InputStream $in = null;
17             try {
18                 org.omg.CORBA.portable.OutputStream $out = _request ("add", true);
19                 $out.write_long (arg0);
20                 $out.write_long (arg1);
21                 $in = _invoke ($out);
22                 int $result = $in.read_long ();
23                 return $result;
24             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
25                 $in = $ex.getInputStream ();
26                 String _id = $ex.getId ();
27                 throw new org.omg.CORBA.MARSHAL (_id);
28             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
29                 return add (arg0, arg1 );
30             } finally {
31                 _releaseReply ($in);
32             }
33   } // add
34

35   public mark.AddData addData (mark.AddData arg0, mark.AddData arg1)
36   {
37             org.omg.CORBA.portable.InputStream $in = null;
38             try {
39                 org.omg.CORBA.portable.OutputStream $out = _request ("addData", true);
40                 mark.AddDataHelper.write ($out, arg0);
41                 mark.AddDataHelper.write ($out, arg1);
42                 $in = _invoke ($out);
43                 mark.AddData $result = mark.AddDataHelper.read ($in);
44                 return $result;
45             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
46                 $in = $ex.getInputStream ();
47                 String _id = $ex.getId ();
48                 throw new org.omg.CORBA.MARSHAL (_id);
49             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
50                 return addData (arg0, arg1 );
51             } finally {
52                 _releaseReply ($in);
53             }
54   } // addData
55

56   public mark.AddData addDatas (mark.AddData[] arg0)
57   {
58             org.omg.CORBA.portable.InputStream $in = null;
59             try {
60                 org.omg.CORBA.portable.OutputStream $out = _request ("addDatas", true);
61                 org.omg.boxedRMI.mark.seq1_AddDataHelper.write ($out, arg0);
62                 $in = _invoke ($out);
63                 mark.AddData $result = mark.AddDataHelper.read ($in);
64                 return $result;
65             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
66                 $in = $ex.getInputStream ();
67                 String _id = $ex.getId ();
68                 throw new org.omg.CORBA.MARSHAL (_id);
69             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
70                 return addDatas (arg0 );
71             } finally {
72                 _releaseReply ($in);
73             }
74   } // addDatas
75

76   public void mVOID ()
77   {
78             org.omg.CORBA.portable.InputStream $in = null;
79             try {
80                 org.omg.CORBA.portable.OutputStream $out = _request ("mVOID", true);
81                 $in = _invoke ($out);
82                 return;
83             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
84                 $in = $ex.getInputStream ();
85                 String _id = $ex.getId ();
86                 throw new org.omg.CORBA.MARSHAL (_id);
87             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
88                 mVOID ( );
89             } finally {
90                 _releaseReply ($in);
91             }
92   } // mVOID
93

94   public int mINT ()
95   {
96             org.omg.CORBA.portable.InputStream $in = null;
97             try {
98                 org.omg.CORBA.portable.OutputStream $out = _request ("mINT", true);
99                 $in = _invoke ($out);
100                 int $result = $in.read_long ();
101                 return $result;
102             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
103                 $in = $ex.getInputStream ();
104                 String _id = $ex.getId ();
105                 throw new org.omg.CORBA.MARSHAL (_id);
106             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
107                 return mINT ( );
108             } finally {
109                 _releaseReply ($in);
110             }
111   } // mINT
112

113   public double mDOUBLE ()
114   {
115             org.omg.CORBA.portable.InputStream $in = null;
116             try {
117                 org.omg.CORBA.portable.OutputStream $out = _request ("mDOUBLE", true);
118                 $in = _invoke ($out);
119                 double $result = $in.read_double ();
120                 return $result;
121             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
122                 $in = $ex.getInputStream ();
123                 String _id = $ex.getId ();
124                 throw new org.omg.CORBA.MARSHAL (_id);
125             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
126                 return mDOUBLE ( );
127             } finally {
128                 _releaseReply ($in);
129             }
130   } // mDOUBLE
131

132   public float mFLOAT ()
133   {
134             org.omg.CORBA.portable.InputStream $in = null;
135             try {
136                 org.omg.CORBA.portable.OutputStream $out = _request ("mFLOAT", true);
137                 $in = _invoke ($out);
138                 float $result = $in.read_float ();
139                 return $result;
140             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
141                 $in = $ex.getInputStream ();
142                 String _id = $ex.getId ();
143                 throw new org.omg.CORBA.MARSHAL (_id);
144             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
145                 return mFLOAT ( );
146             } finally {
147                 _releaseReply ($in);
148             }
149   } // mFLOAT
150

151   public long mLONG ()
152   {
153             org.omg.CORBA.portable.InputStream $in = null;
154             try {
155                 org.omg.CORBA.portable.OutputStream $out = _request ("mLONG", true);
156                 $in = _invoke ($out);
157                 long $result = $in.read_longlong ();
158                 return $result;
159             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
160                 $in = $ex.getInputStream ();
161                 String _id = $ex.getId ();
162                 throw new org.omg.CORBA.MARSHAL (_id);
163             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
164                 return mLONG ( );
165             } finally {
166                 _releaseReply ($in);
167             }
168   } // mLONG
169

170   public char mCHAR ()
171   {
172             org.omg.CORBA.portable.InputStream $in = null;
173             try {
174                 org.omg.CORBA.portable.OutputStream $out = _request ("mCHAR", true);
175                 $in = _invoke ($out);
176                 char $result = $in.read_wchar ();
177                 return $result;
178             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
179                 $in = $ex.getInputStream ();
180                 String _id = $ex.getId ();
181                 throw new org.omg.CORBA.MARSHAL (_id);
182             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
183                 return mCHAR ( );
184             } finally {
185                 _releaseReply ($in);
186             }
187   } // mCHAR
188

189   public boolean mBOOLEAN ()
190   {
191             org.omg.CORBA.portable.InputStream $in = null;
192             try {
193                 org.omg.CORBA.portable.OutputStream $out = _request ("mBOOLEAN", true);
194                 $in = _invoke ($out);
195                 boolean $result = $in.read_boolean ();
196                 return $result;
197             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
198                 $in = $ex.getInputStream ();
199                 String _id = $ex.getId ();
200                 throw new org.omg.CORBA.MARSHAL (_id);
201             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
202                 return mBOOLEAN ( );
203             } finally {
204                 _releaseReply ($in);
205             }
206   } // mBOOLEAN
207

208   public byte mBYTE ()
209   {
210             org.omg.CORBA.portable.InputStream $in = null;
211             try {
212                 org.omg.CORBA.portable.OutputStream $out = _request ("mBYTE", true);
213                 $in = _invoke ($out);
214                 byte $result = $in.read_octet ();
215                 return $result;
216             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
217                 $in = $ex.getInputStream ();
218                 String _id = $ex.getId ();
219                 throw new org.omg.CORBA.MARSHAL (_id);
220             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
221                 return mBYTE ( );
222             } finally {
223                 _releaseReply ($in);
224             }
225   } // mBYTE
226

227   public String mSTRING ()
228   {
229             org.omg.CORBA.portable.InputStream $in = null;
230             try {
231                 org.omg.CORBA.portable.OutputStream $out = _request ("mSTRING", true);
232                 $in = _invoke ($out);
233                 String $result = org.omg.CORBA.WStringValueHelper.read ($in);
234                 return $result;
235             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
236                 $in = $ex.getInputStream ();
237                 String _id = $ex.getId ();
238                 throw new org.omg.CORBA.MARSHAL (_id);
239             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
240                 return mSTRING ( );
241             } finally {
242                 _releaseReply ($in);
243             }
244   } // mSTRING
245

246   public void mEXCEPTION ()
247   {
248             org.omg.CORBA.portable.InputStream $in = null;
249             try {
250                 org.omg.CORBA.portable.OutputStream $out = _request ("mEXCEPTION", true);
251                 $in = _invoke ($out);
252                 return;
253             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
254                 $in = $ex.getInputStream ();
255                 String _id = $ex.getId ();
256                 throw new org.omg.CORBA.MARSHAL (_id);
257             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
258                 mEXCEPTION ( );
259             } finally {
260                 _releaseReply ($in);
261             }
262   } // mEXCEPTION
263

264   public void mNONE ()
265   {
266             org.omg.CORBA.portable.InputStream $in = null;
267             try {
268                 org.omg.CORBA.portable.OutputStream $out = _request ("mNONE", true);
269                 $in = _invoke ($out);
270                 return;
271             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
272                 $in = $ex.getInputStream ();
273                 String _id = $ex.getId ();
274                 throw new org.omg.CORBA.MARSHAL (_id);
275             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
276                 mNONE ( );
277             } finally {
278                 _releaseReply ($in);
279             }
280   } // mNONE
281

282   public void mONE (int arg0)
283   {
284             org.omg.CORBA.portable.InputStream $in = null;
285             try {
286                 org.omg.CORBA.portable.OutputStream $out = _request ("mONE", true);
287                 $out.write_long (arg0);
288                 $in = _invoke ($out);
289                 return;
290             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
291                 $in = $ex.getInputStream ();
292                 String _id = $ex.getId ();
293                 throw new org.omg.CORBA.MARSHAL (_id);
294             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
295                 mONE (arg0 );
296             } finally {
297                 _releaseReply ($in);
298             }
299   } // mONE
300

301   public void mTWO (int arg0, int arg1)
302   {
303             org.omg.CORBA.portable.InputStream $in = null;
304             try {
305                 org.omg.CORBA.portable.OutputStream $out = _request ("mTWO", true);
306                 $out.write_long (arg0);
307                 $out.write_long (arg1);
308                 $in = _invoke ($out);
309                 return;
310             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
311                 $in = $ex.getInputStream ();
312                 String _id = $ex.getId ();
313                 throw new org.omg.CORBA.MARSHAL (_id);
314             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
315                 mTWO (arg0, arg1 );
316             } finally {
317                 _releaseReply ($in);
318             }
319   } // mTWO
320

321   // Type-specific CORBA::Object operations
322
private static String[] __ids = {
323     "RMI:mark.comps.Add:0000000000000000",
324     "RMI:javax.ejb.EJBObject:0000000000000000"};
325
326   public String[] _ids ()
327   {
328     return (String[])__ids.clone ();
329   }
330
331   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
332   {
333      String str = s.readUTF ();
334      String[] args = null;
335      java.util.Properties props = null;
336      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
337      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
338      _set_delegate (delegate);
339   }
340
341   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
342   {
343      String[] args = null;
344      java.util.Properties props = null;
345      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
346      s.writeUTF (str);
347   }
348 } // class _AddStub
349
Popular Tags