001    package org.omg.CosTransactions;
002    
003    
004    /**
005    * org/omg/CosTransactions/Vote.java .
006    * Generated by the IDL-to-Java compiler (portable), version "3.2"
007    * from /home/iurt/rpm/BUILD/geronimo-spec-corba/src/main/idl/CosTransactions.idl
008    * Saturday, November 26, 2011 9:53:36 PM UTC
009    */
010    
011    public class Vote implements org.omg.CORBA.portable.IDLEntity
012    {
013      private        int __value;
014      private static int __size = 3;
015      private static org.omg.CosTransactions.Vote[] __array = new org.omg.CosTransactions.Vote [__size];
016    
017      public static final int _VoteCommit = 0;
018      public static final org.omg.CosTransactions.Vote VoteCommit = new org.omg.CosTransactions.Vote(_VoteCommit);
019      public static final int _VoteRollback = 1;
020      public static final org.omg.CosTransactions.Vote VoteRollback = new org.omg.CosTransactions.Vote(_VoteRollback);
021      public static final int _VoteReadOnly = 2;
022      public static final org.omg.CosTransactions.Vote VoteReadOnly = new org.omg.CosTransactions.Vote(_VoteReadOnly);
023    
024      public int value ()
025      {
026        return __value;
027      }
028    
029      public static org.omg.CosTransactions.Vote from_int (int value)
030      {
031        if (value >= 0 && value < __size)
032          return __array[value];
033        else
034          throw new org.omg.CORBA.BAD_PARAM ();
035      }
036    
037      protected Vote (int value)
038      {
039        __value = value;
040        __array[__value] = this;
041      }
042    } // class Vote