001    package org.omg.CosTransactions;
002    
003    
004    /**
005    * org/omg/CosTransactions/_TransactionFactoryImplBase.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    public abstract class _TransactionFactoryImplBase extends org.omg.CORBA.portable.ObjectImpl
012                    implements org.omg.CosTransactions.TransactionFactory, org.omg.CORBA.portable.InvokeHandler
013    {
014    
015      // Constructors
016      public _TransactionFactoryImplBase ()
017      {
018      }
019    
020      private static java.util.Hashtable _methods = new java.util.Hashtable ();
021      static
022      {
023        _methods.put ("create", new java.lang.Integer (0));
024        _methods.put ("recreate", new java.lang.Integer (1));
025      }
026    
027      public org.omg.CORBA.portable.OutputStream _invoke (String $method,
028                                    org.omg.CORBA.portable.InputStream in,
029                                    org.omg.CORBA.portable.ResponseHandler $rh)
030      {
031        org.omg.CORBA.portable.OutputStream out = null;
032        java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
033        if (__method == null)
034          throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
035    
036        switch (__method.intValue ())
037        {
038           case 0:  // CosTransactions/TransactionFactory/create
039           {
040             int time_out = in.read_ulong ();
041             org.omg.CosTransactions.Control $result = null;
042             $result = this.create (time_out);
043             out = $rh.createReply();
044             org.omg.CosTransactions.ControlHelper.write (out, $result);
045             break;
046           }
047    
048           case 1:  // CosTransactions/TransactionFactory/recreate
049           {
050             org.omg.CosTransactions.PropagationContext ctx = org.omg.CosTransactions.PropagationContextHelper.read (in);
051             org.omg.CosTransactions.Control $result = null;
052             $result = this.recreate (ctx);
053             out = $rh.createReply();
054             org.omg.CosTransactions.ControlHelper.write (out, $result);
055             break;
056           }
057    
058           default:
059             throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
060        }
061    
062        return out;
063      } // _invoke
064    
065      // Type-specific CORBA::Object operations
066      private static String[] __ids = {
067        "IDL:CosTransactions/TransactionFactory:1.0"};
068    
069      public String[] _ids ()
070      {
071        return (String[])__ids.clone ();
072      }
073    
074    
075    } // class _TransactionFactoryImplBase