code: public static String getStatusAsString(int status)
     {
        if (status >= Status.STATUS_ACTIVE && status <= Status.STATUS_ROLLING_BACK)
        {
           return TX_STATUS_STRINGS[status];
        }
        else
        {
           return "STATUS_INVALID(" + status + ")";
        }
     }
docs: Converts a transaction status to a text representation
  
  @param status The status index
  @return status as String or "STATUS_INVALID(value)"
  @see javax.transaction.Status