org.omg.CosTransactions.Status Maven / Gradle / Ivy
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 Status
implements org.omg.CORBA.portable.IDLEntity
{
private int value = -1;
public static final int _StatusActive = 0;
public static final Status StatusActive = new Status(_StatusActive);
public static final int _StatusMarkedRollback = 1;
public static final Status StatusMarkedRollback = new Status(_StatusMarkedRollback);
public static final int _StatusPrepared = 2;
public static final Status StatusPrepared = new Status(_StatusPrepared);
public static final int _StatusCommitted = 3;
public static final Status StatusCommitted = new Status(_StatusCommitted);
public static final int _StatusRolledBack = 4;
public static final Status StatusRolledBack = new Status(_StatusRolledBack);
public static final int _StatusUnknown = 5;
public static final Status StatusUnknown = new Status(_StatusUnknown);
public static final int _StatusPreparing = 6;
public static final Status StatusPreparing = new Status(_StatusPreparing);
public static final int _StatusCommitting = 7;
public static final Status StatusCommitting = new Status(_StatusCommitting);
public static final int _StatusRollingBack = 8;
public static final Status StatusRollingBack = new Status(_StatusRollingBack);
public static final int _StatusNoTransaction = 9;
public static final Status StatusNoTransaction = new Status(_StatusNoTransaction);
public int value()
{
return value;
}
public static Status from_int(int value)
{
switch (value) {
case _StatusActive: return StatusActive;
case _StatusMarkedRollback: return StatusMarkedRollback;
case _StatusPrepared: return StatusPrepared;
case _StatusCommitted: return StatusCommitted;
case _StatusRolledBack: return StatusRolledBack;
case _StatusUnknown: return StatusUnknown;
case _StatusPreparing: return StatusPreparing;
case _StatusCommitting: return StatusCommitting;
case _StatusRollingBack: return StatusRollingBack;
case _StatusNoTransaction: return StatusNoTransaction;
default: throw new org.omg.CORBA.BAD_PARAM();
}
}
public String toString()
{
switch (value) {
case _StatusActive: return "StatusActive";
case _StatusMarkedRollback: return "StatusMarkedRollback";
case _StatusPrepared: return "StatusPrepared";
case _StatusCommitted: return "StatusCommitted";
case _StatusRolledBack: return "StatusRolledBack";
case _StatusUnknown: return "StatusUnknown";
case _StatusPreparing: return "StatusPreparing";
case _StatusCommitting: return "StatusCommitting";
case _StatusRollingBack: return "StatusRollingBack";
case _StatusNoTransaction: return "StatusNoTransaction";
default: throw new org.omg.CORBA.BAD_PARAM();
}
}
protected Status(int i)
{
value = i;
}
java.lang.Object readResolve()
throws java.io.ObjectStreamException
{
return from_int(value());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy