import java.io.Serializable;

/*
    This class represents a single category from
    the database.  It implements the minimum requirements
    to be a bean.
*/
public class Category implements Serializable {

  // Unique Id from database
  private int id = 0;
  // Name of Category
  private String name = new String("");

  // Method Name: Category()
  // Purpose: deafult constructor
  public Category() {

  }

  // Method Name: setId()
  // Purpose: Access used to set the category id
  public void setId(int value) {

    id = value;
  }

  // Method Name: getId()
  // Purpose: Access used to get the category id
  public int getId() {

    return id;
  }

  // Method Name: setName()
  // Purpose: Access used to set the category name
  public void setName(String value) {

    if ( value != null ) {

      name = value;
    }
  }

  // Method Name: getName()
  // Purpose: Access used to get the category name
  public String getName() {

    return name;
  }
}