
org.omg.CosTransactions.StatusHelper Maven / Gradle / Ivy
The newest version!
package org.omg.CosTransactions;
/**
* Generated from IDL enum "Status".
*
* @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 StatusHelper
{
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_enum_tc(org.omg.CosTransactions.StatusHelper.id(),"Status",new String[]{"StatusActive","StatusMarkedRollback","StatusPrepared","StatusCommitted","StatusRolledBack","StatusUnknown","StatusPreparing","StatusCommitting","StatusRollingBack","StatusNoTransaction"});
}
return _type;
}
public static void insert (final org.omg.CORBA.Any any, final org.omg.CosTransactions.Status s)
{
any.type(type());
write( any.create_output_stream(),s);
}
public static org.omg.CosTransactions.Status extract (final org.omg.CORBA.Any any)
{
return read(any.create_input_stream());
}
public static String id()
{
return "IDL:omg.org/CosTransactions/Status:1.0";
}
public static Status read (final org.omg.CORBA.portable.InputStream in)
{
return Status.from_int(in.read_long());
}
public static void write (final org.omg.CORBA.portable.OutputStream out, final Status s)
{
out.write_long(s.value());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy