package org.omg.CosTransactions;

/**
 * Status Type Class generated by the Idl2Java Compiler 3.1 of Jonathan
 */




public final class Status implements org.omg.CORBA.portable.IDLEntity {
	private static int ENUMSIZE= 10;
	private static Status[] element = new Status[ENUMSIZE];
	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  _StatusNoTransaction = 6;
	public static final Status  StatusNoTransaction = new Status(_StatusNoTransaction);
	public static final int  _StatusPreparing = 7;
	public static final Status  StatusPreparing = new Status(_StatusPreparing);
	public static final int  _StatusCommitting = 8;
	public static final Status  StatusCommitting = new Status(_StatusCommitting);
	public static final int  _StatusRollingBack = 9;
	public static final Status  StatusRollingBack = new Status(_StatusRollingBack);

	private int _value;
	private Status(int val) { _value=val; element[_value]=this; }
	public int value() { return _value; }
	public static Status from_int(int val) {
		if (val>=0 && val<ENUMSIZE)
			return element[val];
		else return null;
	}
}
