001    package org.omg.CosTransactions;
002    
003    
004    /**
005    * org/omg/CosTransactions/_TerminatorStub.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 _TerminatorStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CosTransactions.Terminator
012    {
013    
014      public void commit (boolean report_heuristics) throws org.omg.CosTransactions.HeuristicMixed, org.omg.CosTransactions.HeuristicHazard
015      {
016                org.omg.CORBA.portable.InputStream $in = null;
017                try {
018                    org.omg.CORBA.portable.OutputStream $out = _request ("commit", true);
019                    $out.write_boolean (report_heuristics);
020                    $in = _invoke ($out);
021                    return;
022                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
023                    $in = $ex.getInputStream ();
024                    String _id = $ex.getId ();
025                    if (_id.equals ("IDL:CosTransactions/HeuristicMixed:1.0"))
026                        throw org.omg.CosTransactions.HeuristicMixedHelper.read ($in);
027                    else if (_id.equals ("IDL:CosTransactions/HeuristicHazard:1.0"))
028                        throw org.omg.CosTransactions.HeuristicHazardHelper.read ($in);
029                    else
030                        throw new org.omg.CORBA.MARSHAL (_id);
031                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
032                    commit (report_heuristics        );
033                } finally {
034                    _releaseReply ($in);
035                }
036      } // commit
037    
038      public void rollback ()
039      {
040                org.omg.CORBA.portable.InputStream $in = null;
041                try {
042                    org.omg.CORBA.portable.OutputStream $out = _request ("rollback", true);
043                    $in = _invoke ($out);
044                    return;
045                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
046                    $in = $ex.getInputStream ();
047                    String _id = $ex.getId ();
048                    throw new org.omg.CORBA.MARSHAL (_id);
049                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
050                    rollback (        );
051                } finally {
052                    _releaseReply ($in);
053                }
054      } // rollback
055    
056      // Type-specific CORBA::Object operations
057      private static String[] __ids = {
058        "IDL:CosTransactions/Terminator:1.0"};
059    
060      public String[] _ids ()
061      {
062        return (String[])__ids.clone ();
063      }
064    
065      private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
066      {
067         String str = s.readUTF ();
068         String[] args = null;
069         java.util.Properties props = null;
070         org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
071         org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
072         _set_delegate (delegate);
073      }
074    
075      private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
076      {
077         String[] args = null;
078         java.util.Properties props = null;
079         String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
080         s.writeUTF (str);
081      }
082    } // class _TerminatorStub