001    package org.omg.CosTransactions;
002    
003    
004    /**
005    * org/omg/CosTransactions/_SynchronizationStub.java .
006    * Generated by the IDL-to-Java compiler (portable), version "3.2"
007    * from /builddir/build/BUILD/geronimo-specs-1.6/geronimo-spec-corba/src/main/idl/CosTransactions.idl
008    * Monday, June 18, 2012 10:36:15 AM CEST
009    */
010    
011    
012    // Inheritance from TransactionalObject is for backward compatability //
013    public class _SynchronizationStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CosTransactions.Synchronization
014    {
015    
016      public void before_completion ()
017      {
018                org.omg.CORBA.portable.InputStream $in = null;
019                try {
020                    org.omg.CORBA.portable.OutputStream $out = _request ("before_completion", true);
021                    $in = _invoke ($out);
022                    return;
023                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
024                    $in = $ex.getInputStream ();
025                    String _id = $ex.getId ();
026                    throw new org.omg.CORBA.MARSHAL (_id);
027                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
028                    before_completion (        );
029                } finally {
030                    _releaseReply ($in);
031                }
032      } // before_completion
033    
034      public void after_completion (org.omg.CosTransactions.Status s)
035      {
036                org.omg.CORBA.portable.InputStream $in = null;
037                try {
038                    org.omg.CORBA.portable.OutputStream $out = _request ("after_completion", true);
039                    org.omg.CosTransactions.StatusHelper.write ($out, s);
040                    $in = _invoke ($out);
041                    return;
042                } catch (org.omg.CORBA.portable.ApplicationException $ex) {
043                    $in = $ex.getInputStream ();
044                    String _id = $ex.getId ();
045                    throw new org.omg.CORBA.MARSHAL (_id);
046                } catch (org.omg.CORBA.portable.RemarshalException $rm) {
047                    after_completion (s        );
048                } finally {
049                    _releaseReply ($in);
050                }
051      } // after_completion
052    
053      // Type-specific CORBA::Object operations
054      private static String[] __ids = {
055        "IDL:CosTransactions/Synchronization:1.0", 
056        "IDL:CosTransactions/TransactionalObject:1.0"};
057    
058      public String[] _ids ()
059      {
060        return (String[])__ids.clone ();
061      }
062    
063      private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
064      {
065         String str = s.readUTF ();
066         String[] args = null;
067         java.util.Properties props = null;
068         org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
069         org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
070         _set_delegate (delegate);
071      }
072    
073      private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
074      {
075         String[] args = null;
076         java.util.Properties props = null;
077         String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
078         s.writeUTF (str);
079      }
080    } // class _SynchronizationStub