/*
 * Created on Sep 10, 2003
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package JavaBeans;

/**
 * @author student
 *
 * This class is being used as a java bean for storing the coffee preference 
 * relating to a customer.
 * 
 */
public class CoffeePreference_Data {
	private String itemCode;
	private String quantity;
	private String description;
	private String deliveryHour;
	private String deliveryMinute;

	
	/**
	 * This is the constructor for CoffeePreference_Data.java
	 */
	public CoffeePreference_Data() {
	}

	/**
	 * This is the constructor for CoffeePreference_Data.java
	 */
	public CoffeePreference_Data(
		String item,
		String qty,
		String hour,
		String minute) {
		this.itemCode = item;
		this.quantity = qty;
		this.deliveryHour = hour;
		this.deliveryMinute = minute;
	}

	/**
	 * This method is being used for setting the quantity field.
	 * @param qty The preferred quantity.
	 * @return void
	 */
	public void setQuantity(String qty) {
		this.quantity = qty;
	}
	
	/**
	 * This method is being used for getting the quantity field.
	 * @return String The preferred quantity.
	 */
	public String getQuantity() {
		return this.quantity;
	}
	
	/**
	 * This method is being used for setting the delivery time - hour field.
	 * @param time The hour at which coffee is to be delivered.
	 * @return void
	 */
	public void setDeliveryHour(String time) {
		this.deliveryHour = time;
	}
	
	
	/**
	 * Method: getDeliveryHour
	 * This method is being used for getting the delivery time - hour field.
	 * @return String The hour at which coffee is to be delivered.
	 */
	public String getDeliveryHour() {
		return this.deliveryHour;
	}
	
	/**
	 * This method is being used for setting the delivery time - minute field.
	 * @param time The minute at which coffee is to be delivered.
	 * @return void
	 */
	public void setDeliveryMinute(String time) {
		this.deliveryMinute = time;
	}
	
	
	/**
	 * This method is being used for getting the delivery time - minute field.
	 * @return String The minute at which the coffee is to be delivered.
	 */
	public String getDeliveryMinute() {
		return this.deliveryMinute;
	}


	/**
	 * This method is being used for setting the itemcode field.
	 * @param itemCode Coffee item code.
	 * @return void
	 */
	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}
	
	
	/**
	 * This method is being used for getting the itemcode field.
	 * @return String Coffee item code.
	 */
	public String getItemCode() {
		return this.itemCode;
	}
	
	
	/**
	 * This method is being used for setting the description field.
	 * @param desc Coffee description.
	 * @return void
	 */
	public void setDescription(String desc) {
		this.description = desc;
	}
	
	
	/**
	 * This method is being used for getting the description field.
	 * @return String Coffee description.
	 */
	public String getDescription() {
		return this.description;
	}
}
