001    package org.omg.CosTransactions;
002    
003    
004    /**
005    * org/omg/CosTransactions/_CoordinatorStub.java .
006    * Generated by the IDL-to-Java compiler (portable), version "3.2"
007    * from /home/iurt/rpm/BUILD/geronimo-spec-corba/src/main/idl/CosTransactions.idl
008    * Saturday, November 26, 2011 9:53:36 PM UTC
009    */
010    
011    public class _CoordinatorStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CosTransactions.Coordinator
012    {
013    
014      public org.omg.CosTransactions.Status get_status ()
015      {
016                org.omg.CORBA.portable.InputStream $in = null;
017                try {
018                    org.omg.CORBA.portable.OutputStream $out = _request ("get_status", true);
019                    $in = _invoke ($out);
020                    org.omg.CosTransactions.Status $result = org.omg.CosTransactions.StatusHelper.read ($in);
021                    return $result;
022                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
023                    $in = $ex.getInputStream ();
024                    String _id = $ex.getId ();
025                    throw new org.omg.CORBA.MARSHAL (_id);
026                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
027                    return get_status (        );
028                } finally {
029                    _releaseReply ($in);
030                }
031      } // get_status
032    
033      public org.omg.CosTransactions.Status get_parent_status ()
034      {
035                org.omg.CORBA.portable.InputStream $in = null;
036                try {
037                    org.omg.CORBA.portable.OutputStream $out = _request ("get_parent_status", true);
038                    $in = _invoke ($out);
039                    org.omg.CosTransactions.Status $result = org.omg.CosTransactions.StatusHelper.read ($in);
040                    return $result;
041                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
042                    $in = $ex.getInputStream ();
043                    String _id = $ex.getId ();
044                    throw new org.omg.CORBA.MARSHAL (_id);
045                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
046                    return get_parent_status (        );
047                } finally {
048                    _releaseReply ($in);
049                }
050      } // get_parent_status
051    
052      public org.omg.CosTransactions.Status get_top_level_status ()
053      {
054                org.omg.CORBA.portable.InputStream $in = null;
055                try {
056                    org.omg.CORBA.portable.OutputStream $out = _request ("get_top_level_status", true);
057                    $in = _invoke ($out);
058                    org.omg.CosTransactions.Status $result = org.omg.CosTransactions.StatusHelper.read ($in);
059                    return $result;
060                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
061                    $in = $ex.getInputStream ();
062                    String _id = $ex.getId ();
063                    throw new org.omg.CORBA.MARSHAL (_id);
064                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
065                    return get_top_level_status (        );
066                } finally {
067                    _releaseReply ($in);
068                }
069      } // get_top_level_status
070    
071      public boolean is_same_transaction (org.omg.CosTransactions.Coordinator tc)
072      {
073                org.omg.CORBA.portable.InputStream $in = null;
074                try {
075                    org.omg.CORBA.portable.OutputStream $out = _request ("is_same_transaction", true);
076                    org.omg.CosTransactions.CoordinatorHelper.write ($out, tc);
077                    $in = _invoke ($out);
078                    boolean $result = $in.read_boolean ();
079                    return $result;
080                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
081                    $in = $ex.getInputStream ();
082                    String _id = $ex.getId ();
083                    throw new org.omg.CORBA.MARSHAL (_id);
084                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
085                    return is_same_transaction (tc        );
086                } finally {
087                    _releaseReply ($in);
088                }
089      } // is_same_transaction
090    
091      public boolean is_related_transaction (org.omg.CosTransactions.Coordinator tc)
092      {
093                org.omg.CORBA.portable.InputStream $in = null;
094                try {
095                    org.omg.CORBA.portable.OutputStream $out = _request ("is_related_transaction", true);
096                    org.omg.CosTransactions.CoordinatorHelper.write ($out, tc);
097                    $in = _invoke ($out);
098                    boolean $result = $in.read_boolean ();
099                    return $result;
100                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
101                    $in = $ex.getInputStream ();
102                    String _id = $ex.getId ();
103                    throw new org.omg.CORBA.MARSHAL (_id);
104                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
105                    return is_related_transaction (tc        );
106                } finally {
107                    _releaseReply ($in);
108                }
109      } // is_related_transaction
110    
111      public boolean is_ancestor_transaction (org.omg.CosTransactions.Coordinator tc)
112      {
113                org.omg.CORBA.portable.InputStream $in = null;
114                try {
115                    org.omg.CORBA.portable.OutputStream $out = _request ("is_ancestor_transaction", true);
116                    org.omg.CosTransactions.CoordinatorHelper.write ($out, tc);
117                    $in = _invoke ($out);
118                    boolean $result = $in.read_boolean ();
119                    return $result;
120                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
121                    $in = $ex.getInputStream ();
122                    String _id = $ex.getId ();
123                    throw new org.omg.CORBA.MARSHAL (_id);
124                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
125                    return is_ancestor_transaction (tc        );
126                } finally {
127                    _releaseReply ($in);
128                }
129      } // is_ancestor_transaction
130    
131      public boolean is_descendant_transaction (org.omg.CosTransactions.Coordinator tc)
132      {
133                org.omg.CORBA.portable.InputStream $in = null;
134                try {
135                    org.omg.CORBA.portable.OutputStream $out = _request ("is_descendant_transaction", true);
136                    org.omg.CosTransactions.CoordinatorHelper.write ($out, tc);
137                    $in = _invoke ($out);
138                    boolean $result = $in.read_boolean ();
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 is_descendant_transaction (tc        );
146                } finally {
147                    _releaseReply ($in);
148                }
149      } // is_descendant_transaction
150    
151      public boolean is_top_level_transaction ()
152      {
153                org.omg.CORBA.portable.InputStream $in = null;
154                try {
155                    org.omg.CORBA.portable.OutputStream $out = _request ("is_top_level_transaction", true);
156                    $in = _invoke ($out);
157                    boolean $result = $in.read_boolean ();
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 is_top_level_transaction (        );
165                } finally {
166                    _releaseReply ($in);
167                }
168      } // is_top_level_transaction
169    
170      public int hash_transaction ()
171      {
172                org.omg.CORBA.portable.InputStream $in = null;
173                try {
174                    org.omg.CORBA.portable.OutputStream $out = _request ("hash_transaction", true);
175                    $in = _invoke ($out);
176                    int $result = $in.read_ulong ();
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 hash_transaction (        );
184                } finally {
185                    _releaseReply ($in);
186                }
187      } // hash_transaction
188    
189      public int hash_top_level_tran ()
190      {
191                org.omg.CORBA.portable.InputStream $in = null;
192                try {
193                    org.omg.CORBA.portable.OutputStream $out = _request ("hash_top_level_tran", true);
194                    $in = _invoke ($out);
195                    int $result = $in.read_ulong ();
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 hash_top_level_tran (        );
203                } finally {
204                    _releaseReply ($in);
205                }
206      } // hash_top_level_tran
207    
208      public org.omg.CosTransactions.RecoveryCoordinator register_resource (org.omg.CosTransactions.Resource r) throws org.omg.CosTransactions.Inactive
209      {
210                org.omg.CORBA.portable.InputStream $in = null;
211                try {
212                    org.omg.CORBA.portable.OutputStream $out = _request ("register_resource", true);
213                    org.omg.CosTransactions.ResourceHelper.write ($out, r);
214                    $in = _invoke ($out);
215                    org.omg.CosTransactions.RecoveryCoordinator $result = org.omg.CosTransactions.RecoveryCoordinatorHelper.read ($in);
216                    return $result;
217                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
218                    $in = $ex.getInputStream ();
219                    String _id = $ex.getId ();
220                    if (_id.equals ("IDL:CosTransactions/Inactive:1.0"))
221                        throw org.omg.CosTransactions.InactiveHelper.read ($in);
222                    else
223                        throw new org.omg.CORBA.MARSHAL (_id);
224                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
225                    return register_resource (r        );
226                } finally {
227                    _releaseReply ($in);
228                }
229      } // register_resource
230    
231      public void register_synchronization (org.omg.CosTransactions.Synchronization sync) throws org.omg.CosTransactions.Inactive, org.omg.CosTransactions.SynchronizationUnavailable
232      {
233                org.omg.CORBA.portable.InputStream $in = null;
234                try {
235                    org.omg.CORBA.portable.OutputStream $out = _request ("register_synchronization", true);
236                    org.omg.CosTransactions.SynchronizationHelper.write ($out, sync);
237                    $in = _invoke ($out);
238                    return;
239                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
240                    $in = $ex.getInputStream ();
241                    String _id = $ex.getId ();
242                    if (_id.equals ("IDL:CosTransactions/Inactive:1.0"))
243                        throw org.omg.CosTransactions.InactiveHelper.read ($in);
244                    else if (_id.equals ("IDL:CosTransactions/SynchronizationUnavailable:1.0"))
245                        throw org.omg.CosTransactions.SynchronizationUnavailableHelper.read ($in);
246                    else
247                        throw new org.omg.CORBA.MARSHAL (_id);
248                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
249                    register_synchronization (sync        );
250                } finally {
251                    _releaseReply ($in);
252                }
253      } // register_synchronization
254    
255      public void register_subtran_aware (org.omg.CosTransactions.SubtransactionAwareResource r) throws org.omg.CosTransactions.Inactive, org.omg.CosTransactions.NotSubtransaction
256      {
257                org.omg.CORBA.portable.InputStream $in = null;
258                try {
259                    org.omg.CORBA.portable.OutputStream $out = _request ("register_subtran_aware", true);
260                    org.omg.CosTransactions.SubtransactionAwareResourceHelper.write ($out, r);
261                    $in = _invoke ($out);
262                    return;
263                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
264                    $in = $ex.getInputStream ();
265                    String _id = $ex.getId ();
266                    if (_id.equals ("IDL:CosTransactions/Inactive:1.0"))
267                        throw org.omg.CosTransactions.InactiveHelper.read ($in);
268                    else if (_id.equals ("IDL:CosTransactions/NotSubtransaction:1.0"))
269                        throw org.omg.CosTransactions.NotSubtransactionHelper.read ($in);
270                    else
271                        throw new org.omg.CORBA.MARSHAL (_id);
272                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
273                    register_subtran_aware (r        );
274                } finally {
275                    _releaseReply ($in);
276                }
277      } // register_subtran_aware
278    
279      public void rollback_only () throws org.omg.CosTransactions.Inactive
280      {
281                org.omg.CORBA.portable.InputStream $in = null;
282                try {
283                    org.omg.CORBA.portable.OutputStream $out = _request ("rollback_only", true);
284                    $in = _invoke ($out);
285                    return;
286                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
287                    $in = $ex.getInputStream ();
288                    String _id = $ex.getId ();
289                    if (_id.equals ("IDL:CosTransactions/Inactive:1.0"))
290                        throw org.omg.CosTransactions.InactiveHelper.read ($in);
291                    else
292                        throw new org.omg.CORBA.MARSHAL (_id);
293                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
294                    rollback_only (        );
295                } finally {
296                    _releaseReply ($in);
297                }
298      } // rollback_only
299    
300      public String get_transaction_name ()
301      {
302                org.omg.CORBA.portable.InputStream $in = null;
303                try {
304                    org.omg.CORBA.portable.OutputStream $out = _request ("get_transaction_name", true);
305                    $in = _invoke ($out);
306                    String $result = $in.read_string ();
307                    return $result;
308                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
309                    $in = $ex.getInputStream ();
310                    String _id = $ex.getId ();
311                    throw new org.omg.CORBA.MARSHAL (_id);
312                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
313                    return get_transaction_name (        );
314                } finally {
315                    _releaseReply ($in);
316                }
317      } // get_transaction_name
318    
319      public org.omg.CosTransactions.Control create_subtransaction () throws org.omg.CosTransactions.SubtransactionsUnavailable, org.omg.CosTransactions.Inactive
320      {
321                org.omg.CORBA.portable.InputStream $in = null;
322                try {
323                    org.omg.CORBA.portable.OutputStream $out = _request ("create_subtransaction", true);
324                    $in = _invoke ($out);
325                    org.omg.CosTransactions.Control $result = org.omg.CosTransactions.ControlHelper.read ($in);
326                    return $result;
327                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
328                    $in = $ex.getInputStream ();
329                    String _id = $ex.getId ();
330                    if (_id.equals ("IDL:CosTransactions/SubtransactionsUnavailable:1.0"))
331                        throw org.omg.CosTransactions.SubtransactionsUnavailableHelper.read ($in);
332                    else if (_id.equals ("IDL:CosTransactions/Inactive:1.0"))
333                        throw org.omg.CosTransactions.InactiveHelper.read ($in);
334                    else
335                        throw new org.omg.CORBA.MARSHAL (_id);
336                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
337                    return create_subtransaction (        );
338                } finally {
339                    _releaseReply ($in);
340                }
341      } // create_subtransaction
342    
343      public org.omg.CosTransactions.PropagationContext get_txcontext () throws org.omg.CosTransactions.Unavailable
344      {
345                org.omg.CORBA.portable.InputStream $in = null;
346                try {
347                    org.omg.CORBA.portable.OutputStream $out = _request ("get_txcontext", true);
348                    $in = _invoke ($out);
349                    org.omg.CosTransactions.PropagationContext $result = org.omg.CosTransactions.PropagationContextHelper.read ($in);
350                    return $result;
351                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
352                    $in = $ex.getInputStream ();
353                    String _id = $ex.getId ();
354                    if (_id.equals ("IDL:CosTransactions/Unavailable:1.0"))
355                        throw org.omg.CosTransactions.UnavailableHelper.read ($in);
356                    else
357                        throw new org.omg.CORBA.MARSHAL (_id);
358                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
359                    return get_txcontext (        );
360                } finally {
361                    _releaseReply ($in);
362                }
363      } // get_txcontext
364    
365      // Type-specific CORBA::Object operations
366      private static String[] __ids = {
367        "IDL:CosTransactions/Coordinator:1.0"};
368    
369      public String[] _ids ()
370      {
371        return (String[])__ids.clone ();
372      }
373    
374      private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
375      {
376         String str = s.readUTF ();
377         String[] args = null;
378         java.util.Properties props = null;
379         org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
380         org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
381         _set_delegate (delegate);
382      }
383    
384      private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
385      {
386         String[] args = null;
387         java.util.Properties props = null;
388         String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
389         s.writeUTF (str);
390      }
391    } // class _CoordinatorStub