org.jboss.tm.iiop.TransactionDescHelper Maven / Gradle / Ivy
The newest version!
package org.jboss.tm.iiop;
/**
* Generated from IDL struct "TransactionDesc".
*
* @author JacORB IDL compiler V 2.3.0 (JBoss patch 4), 06-Jun-2007
* @version generated at Aug 16, 2011 8:43:25 AM
*/
public final class TransactionDescHelper
{
private static org.omg.CORBA.TypeCode _type = null;
public static org.omg.CORBA.TypeCode type ()
{
if (_type == null)
{
_type = org.omg.CORBA.ORB.init().create_struct_tc(org.jboss.tm.iiop.TransactionDescHelper.id(),"TransactionDesc",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("control", org.omg.CORBA.ORB.init().create_interface_tc("IDL:omg.org/CosTransactions/Control:1.0", "Control"), null),new org.omg.CORBA.StructMember("propagationContext", org.omg.CosTransactions.PropagationContextHelper.type(), null)});
}
return _type;
}
public static void insert (final org.omg.CORBA.Any any, final org.jboss.tm.iiop.TransactionDesc s)
{
any.type(type());
write( any.create_output_stream(),s);
}
public static org.jboss.tm.iiop.TransactionDesc extract (final org.omg.CORBA.Any any)
{
return read(any.create_input_stream());
}
public static String id()
{
return "IDL:org/jboss/tm/iiop/TransactionDesc:1.0";
}
public static org.jboss.tm.iiop.TransactionDesc read (final org.omg.CORBA.portable.InputStream in)
{
org.jboss.tm.iiop.TransactionDesc result = new org.jboss.tm.iiop.TransactionDesc();
result.control=org.omg.CosTransactions.ControlHelper.read(in);
result.propagationContext=org.omg.CosTransactions.PropagationContextHelper.read(in);
return result;
}
public static void write (final org.omg.CORBA.portable.OutputStream out, final org.jboss.tm.iiop.TransactionDesc s)
{
org.omg.CosTransactions.ControlHelper.write(out,s.control);
org.omg.CosTransactions.PropagationContextHelper.write(out,s.propagationContext);
}
}