All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.omg.CosTransactions.PropagationContextHelper Maven / Gradle / Ivy

package org.omg.CosTransactions;


/**
 * Generated from IDL struct "PropagationContext".
 *
 * @author JacORB IDL compiler V 2.3.1 (JBoss patch01), 29-Jul-2009
 * @version generated at Oct 2, 2012 3:07:46 PM
 */

public final class PropagationContextHelper
{
	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.omg.CosTransactions.PropagationContextHelper.id(),"PropagationContext",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("timeout", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(5)), null),new org.omg.CORBA.StructMember("current", org.omg.CosTransactions.TransIdentityHelper.type(), null),new org.omg.CORBA.StructMember("parents", org.omg.CORBA.ORB.init().create_sequence_tc(0, org.omg.CosTransactions.TransIdentityHelper.type()), null),new org.omg.CORBA.StructMember("implementation_specific_data", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(11)), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final org.omg.CosTransactions.PropagationContext s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static org.omg.CosTransactions.PropagationContext extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:omg.org/CosTransactions/PropagationContext:1.0";
	}
	public static org.omg.CosTransactions.PropagationContext read (final org.omg.CORBA.portable.InputStream in)
	{
		org.omg.CosTransactions.PropagationContext result = new org.omg.CosTransactions.PropagationContext();
		result.timeout=in.read_ulong();
		result.current=org.omg.CosTransactions.TransIdentityHelper.read(in);
		int _lresult_parents1 = in.read_long();
		try
		{
			 int x = in.available();
			 if ( x > 0 && _lresult_parents1 > x )
				{
					throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _lresult_parents1);
				}
		}
		catch (java.io.IOException e)
		{
		}
		result.parents = new org.omg.CosTransactions.TransIdentity[_lresult_parents1];
		for (int i=0;i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy