org.omg.CosTransactions.Vote Maven / Gradle / Ivy
The newest version!
package org.omg.CosTransactions;
/**
* Generated from IDL enum "Vote".
*
* @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 Vote
implements org.omg.CORBA.portable.IDLEntity
{
private int value = -1;
public static final int _VoteCommit = 0;
public static final Vote VoteCommit = new Vote(_VoteCommit);
public static final int _VoteRollback = 1;
public static final Vote VoteRollback = new Vote(_VoteRollback);
public static final int _VoteReadOnly = 2;
public static final Vote VoteReadOnly = new Vote(_VoteReadOnly);
public int value()
{
return value;
}
public static Vote from_int(int value)
{
switch (value) {
case _VoteCommit: return VoteCommit;
case _VoteRollback: return VoteRollback;
case _VoteReadOnly: return VoteReadOnly;
default: throw new org.omg.CORBA.BAD_PARAM();
}
}
public String toString()
{
switch (value) {
case _VoteCommit: return "VoteCommit";
case _VoteRollback: return "VoteRollback";
case _VoteReadOnly: return "VoteReadOnly";
default: throw new org.omg.CORBA.BAD_PARAM();
}
}
protected Vote(int i)
{
value = i;
}
java.lang.Object readResolve()
throws java.io.ObjectStreamException
{
return from_int(value());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy