com.arjuna.ArjunaOTS.TransactionInfoHelper Maven / Gradle / Ivy
The newest version!
package com.arjuna.ArjunaOTS;
/**
* Generated from IDL struct "TransactionInfo".
*
* @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 TransactionInfoHelper
{
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(com.arjuna.ArjunaOTS.TransactionInfoHelper.id(),"TransactionInfo",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("currentDepth", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("timeout", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("numberOfThreads", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null)});
}
return _type;
}
public static void insert (final org.omg.CORBA.Any any, final com.arjuna.ArjunaOTS.TransactionInfo s)
{
any.type(type());
write( any.create_output_stream(),s);
}
public static com.arjuna.ArjunaOTS.TransactionInfo extract (final org.omg.CORBA.Any any)
{
return read(any.create_input_stream());
}
public static String id()
{
return "IDL:arjuna.com/ArjunaOTS/TransactionInfo:1.0";
}
public static com.arjuna.ArjunaOTS.TransactionInfo read (final org.omg.CORBA.portable.InputStream in)
{
com.arjuna.ArjunaOTS.TransactionInfo result = new com.arjuna.ArjunaOTS.TransactionInfo();
result.currentDepth=in.read_long();
result.timeout=in.read_long();
result.numberOfThreads=in.read_long();
return result;
}
public static void write (final org.omg.CORBA.portable.OutputStream out, final com.arjuna.ArjunaOTS.TransactionInfo s)
{
out.write_long(s.currentDepth);
out.write_long(s.timeout);
out.write_long(s.numberOfThreads);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy