djencks     2005/03/15 00:27:04

  Added:       modules/core/src/java/org/openejb/corba/idl/CosTSInteroperation
                        TAG_INV_POLICY.java TAG_OTS_POLICY.java
                        TAG_TRANSACTION_POLICY.java
                        TransactionPolicyComponent.java
                        TransactionPolicyComponentHelper.java
                        TransactionPolicyComponentHolder.java
  Log:

  Make transaction policy mapping more generic and implement the 
no-distributed-transactions corba tx propagation polices.  CORBA operation name 
to method signature mapping is not yet really implemented
  
  Revision  Changes    Path
  1.1                  
openejb/modules/core/src/java/org/openejb/corba/idl/CosTSInteroperation/TAG_INV_POLICY.java
  
  Index: TAG_INV_POLICY.java
  ===================================================================
  package org.openejb.corba.idl.CosTSInteroperation;

  

  

  /**

  * org/apache/geronimo/interop/CosTSInteroperation/TAG_INV_POLICY.java .

  * Generated by the IDL-to-Java compiler (portable), version "3.1"

  * from 
C:/dev/corba/geronimo/trunk/modules/interop/src/idl/CosTSInteroperation.idl

  * Saturday, March 12, 2005 1:30:02 PM EST

  */

  

  public interface TAG_INV_POLICY

  {

    public static final int value = (int)(32);

  }

  
  
  
  1.1                  
openejb/modules/core/src/java/org/openejb/corba/idl/CosTSInteroperation/TAG_OTS_POLICY.java
  
  Index: TAG_OTS_POLICY.java
  ===================================================================
  package org.openejb.corba.idl.CosTSInteroperation;

  

  

  /**

  * org/apache/geronimo/interop/CosTSInteroperation/TAG_OTS_POLICY.java .

  * Generated by the IDL-to-Java compiler (portable), version "3.1"

  * from 
C:/dev/corba/geronimo/trunk/modules/interop/src/idl/CosTSInteroperation.idl

  * Saturday, March 12, 2005 1:30:02 PM EST

  */

  

  public interface TAG_OTS_POLICY

  {

    public static final int value = (int)(31);

  }

  
  
  
  1.1                  
openejb/modules/core/src/java/org/openejb/corba/idl/CosTSInteroperation/TAG_TRANSACTION_POLICY.java
  
  Index: TAG_TRANSACTION_POLICY.java
  ===================================================================
  package org.openejb.corba.idl.CosTSInteroperation;

  

  

  /**

  * org/apache/geronimo/interop/CosTSInteroperation/TAG_TRANSACTION_POLICY.java 
.

  * Generated by the IDL-to-Java compiler (portable), version "3.1"

  * from 
C:/dev/corba/geronimo/trunk/modules/interop/src/idl/CosTSInteroperation.idl

  * Saturday, March 12, 2005 1:30:02 PM EST

  */

  

  public interface TAG_TRANSACTION_POLICY

  {

    public static final int value = (int)(26);

  }

  
  
  
  1.1                  
openejb/modules/core/src/java/org/openejb/corba/idl/CosTSInteroperation/TransactionPolicyComponent.java
  
  Index: TransactionPolicyComponent.java
  ===================================================================
  package org.openejb.corba.idl.CosTSInteroperation;

  

  

  /**

  * 
org/apache/geronimo/interop/CosTSInteroperation/TransactionPolicyComponent.java 
.

  * Generated by the IDL-to-Java compiler (portable), version "3.1"

  * from 
C:/dev/corba/geronimo/trunk/modules/interop/src/idl/CosTSInteroperation.idl

  * Saturday, March 12, 2005 1:30:02 PM EST

  */

  

  public final class TransactionPolicyComponent implements 
org.omg.CORBA.portable.IDLEntity

  {

    public short tpv = (short)0;

  

    public TransactionPolicyComponent ()

    {

    } // ctor

  

    public TransactionPolicyComponent (short _tpv)

    {

      tpv = _tpv;

    } // ctor

  

  } // class TransactionPolicyComponent

  
  
  
  1.1                  
openejb/modules/core/src/java/org/openejb/corba/idl/CosTSInteroperation/TransactionPolicyComponentHelper.java
  
  Index: TransactionPolicyComponentHelper.java
  ===================================================================
  package org.openejb.corba.idl.CosTSInteroperation;

  

  

  /**

  * 
org/apache/geronimo/interop/CosTSInteroperation/TransactionPolicyComponentHelper.java
 .

  * Generated by the IDL-to-Java compiler (portable), version "3.1"

  * from 
C:/dev/corba/geronimo/trunk/modules/interop/src/idl/CosTSInteroperation.idl

  * Saturday, March 12, 2005 1:30:02 PM EST

  */

  

  abstract public class TransactionPolicyComponentHelper

  {

    private static String  _id = 
"IDL:omg.org/CosTSInteroperation/TransactionPolicyComponent:1.0";

  

    public static void insert (org.omg.CORBA.Any a, 
org.openejb.corba.idl.CosTSInteroperation.TransactionPolicyComponent that)

    {

      org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();

      a.type (type ());

      write (out, that);

      a.read_value (out.create_input_stream (), type ());

    }

  

    public static 
org.openejb.corba.idl.CosTSInteroperation.TransactionPolicyComponent extract 
(org.omg.CORBA.Any a)

    {

      return read (a.create_input_stream ());

    }

  

    private static org.omg.CORBA.TypeCode __typeCode = null;

    private static boolean __active = false;

    synchronized public static org.omg.CORBA.TypeCode type ()

    {

      if (__typeCode == null)

      {

        synchronized (org.omg.CORBA.TypeCode.class)

        {

          if (__typeCode == null)

          {

            if (__active)

            {

              return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );

            }

            __active = true;

            org.omg.CORBA.StructMember[] _members0 = new 
org.omg.CORBA.StructMember [1];

            org.omg.CORBA.TypeCode _tcOf_members0 = null;

            _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc 
(org.omg.CORBA.TCKind.tk_ushort);

            _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc 
(org.openejb.corba.idl.CosTransactions.TransactionPolicyValueHelper.id (), 
"TransactionPolicyValue", _tcOf_members0);

            _members0[0] = new org.omg.CORBA.StructMember (

              "tpv",

              _tcOf_members0,

              null);

            __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc 
(org.openejb.corba.idl.CosTSInteroperation.TransactionPolicyComponentHelper.id 
(), "TransactionPolicyComponent", _members0);

            __active = false;

          }

        }

      }

      return __typeCode;

    }

  

    public static String id ()

    {

      return _id;

    }

  

    public static 
org.openejb.corba.idl.CosTSInteroperation.TransactionPolicyComponent read 
(org.omg.CORBA.portable.InputStream istream)

    {

      org.openejb.corba.idl.CosTSInteroperation.TransactionPolicyComponent 
value = new 
org.openejb.corba.idl.CosTSInteroperation.TransactionPolicyComponent ();

      value.tpv = istream.read_ushort ();

      return value;

    }

  

    public static void write (org.omg.CORBA.portable.OutputStream ostream, 
org.openejb.corba.idl.CosTSInteroperation.TransactionPolicyComponent value)

    {

      ostream.write_ushort (value.tpv);

    }

  

  }

  
  
  
  1.1                  
openejb/modules/core/src/java/org/openejb/corba/idl/CosTSInteroperation/TransactionPolicyComponentHolder.java
  
  Index: TransactionPolicyComponentHolder.java
  ===================================================================
  package org.openejb.corba.idl.CosTSInteroperation;

  

  /**

  * 
org/apache/geronimo/interop/CosTSInteroperation/TransactionPolicyComponentHolder.java
 .

  * Generated by the IDL-to-Java compiler (portable), version "3.1"

  * from 
C:/dev/corba/geronimo/trunk/modules/interop/src/idl/CosTSInteroperation.idl

  * Saturday, March 12, 2005 1:30:02 PM EST

  */

  

  public final class TransactionPolicyComponentHolder implements 
org.omg.CORBA.portable.Streamable

  {

    public org.openejb.corba.idl.CosTSInteroperation.TransactionPolicyComponent 
value = null;

  

    public TransactionPolicyComponentHolder ()

    {

    }

  

    public TransactionPolicyComponentHolder 
(org.openejb.corba.idl.CosTSInteroperation.TransactionPolicyComponent 
initialValue)

    {

      value = initialValue;

    }

  

    public void _read (org.omg.CORBA.portable.InputStream i)

    {

      value = 
org.openejb.corba.idl.CosTSInteroperation.TransactionPolicyComponentHelper.read 
(i);

    }

  

    public void _write (org.omg.CORBA.portable.OutputStream o)

    {

      
org.openejb.corba.idl.CosTSInteroperation.TransactionPolicyComponentHelper.write
 (o, value);

    }

  

    public org.omg.CORBA.TypeCode _type ()

    {

      return 
org.openejb.corba.idl.CosTSInteroperation.TransactionPolicyComponentHelper.type 
();

    }

  

  }

  
  
  

Reply via email to