package Dataset;

import java.io.Serializable;

/**
 * @author alexis
 * dataset de la table chambre
 */
public class chambre implements Serializable {
	private int chambre_p_id;
	private int chambre_etage;
	private boolean chambre_fumeur;
	private int chambre_nombredelits;
	private boolean chambre_devantlhotel;
	private int chambre_numero;
	private String chambre_description;

	/**************************************************************************
	 * constructeur
	 *************************************************************************/
	
	public chambre(int chambre_p_id, int chambre_etage, boolean chambre_fumeur,
				   int chambre_nombredelits, boolean chambre_devantlhotel,
				   String chambre_description, int chambre_numero) {
		this.chambre_p_id = chambre_p_id;
		this.chambre_etage = chambre_etage;
		this.chambre_fumeur = chambre_fumeur;
		this.chambre_nombredelits = chambre_nombredelits;
		this.chambre_devantlhotel = chambre_devantlhotel;
		this.chambre_description = chambre_description;
		this.chambre_numero = chambre_numero;
	}

	/**************************************************************************
	 * getter
	 *************************************************************************/
	
	/**
	 * @return the chambre_p_id
	 */
	public int getchambre_p_id() {
		return chambre_p_id;
	}

	/**
	 * @return the chambre_etage
	 */
	public int getChambre_etage() {
		return chambre_etage;
	}

	/**
	 * @return the chambre_fumeur
	 */
	public boolean isChambre_fumeur() {
		return chambre_fumeur;
	}

	/**
	 * @return the chambre_nombredelits
	 */
	public int getchambre_nombredelits() {
		return chambre_nombredelits;
	}

	/**
	 * @return the chambre_devantlhotel
	 */
	public boolean ischambre_devantlhotel() {
		return chambre_devantlhotel;
	}

	/**
	 * @return the chambre_description
	 */
	public String getChambre_description() {
		return chambre_description;
	}

	/**
	 * @return the chambre_numero
	 */
	public int getchambre_numero() {
		return chambre_numero;
	}

	/**************************************************************************
	 * setter
	 *************************************************************************/
	
	/**
	 * @param chambre_p_id the chambre_p_id to set
	 */
	public void setchambre_p_id(int chambre_p_id) {
		this.chambre_p_id = chambre_p_id;
	}

	/**
	 * @param chambre_etage the chambre_etage to set
	 */
	public void setChambre_etage(int chambre_etage) {
		this.chambre_etage = chambre_etage;
	}

	/**
	 * @param chambre_fumeur the chambre_fumeur to set
	 */
	public void setChambre_fumeur(boolean chambre_fumeur) {
		this.chambre_fumeur = chambre_fumeur;
	}

	/**
	 * @param chambre_nombredelits the chambre_nombredelits to set
	 */
	public void setchambre_nombredelits(int chambre_nombredelits) {
		this.chambre_nombredelits = chambre_nombredelits;
	}

	/**
	 * @param chambre_devantlhotel the chambre_devantlhotel to set
	 */
	public void setchambre_devantlhotel(boolean chambre_devantlhotel) {
		this.chambre_devantlhotel = chambre_devantlhotel;
	}

	/**
	 * @param chambre_description the chambre_description to set
	 */
	public void setChambre_description(String chambre_description) {
		this.chambre_description = chambre_description;
	}

	/**
	 * @param chambre_numero the chambre_numero to set
	 */
	public void setchambre_numero(int chambre_numero) {
		this.chambre_numero = chambre_numero;
	}

	/**************************************************************************
	 * object
	 *************************************************************************/
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "chambre [chambre_p_id=" + chambre_p_id + ", chambre_etage="
				+ chambre_etage + ", chambre_fumeur=" + chambre_fumeur
				+ ", chambre_nombredelits=" + chambre_nombredelits
				+ ", chambre_devantlhotel=" + chambre_devantlhotel
				+ ", chambre_numero=" + chambre_numero
				+ ", chambre_description=" + chambre_description + "]";
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime
				* result
				+ ((chambre_description == null) ? 0 : chambre_description
						.hashCode());
		result = prime * result + (chambre_devantlhotel ? 1231 : 1237);
		result = prime * result + chambre_etage;
		result = prime * result + (chambre_fumeur ? 1231 : 1237);
		result = prime * result + chambre_nombredelits;
		result = prime * result + chambre_numero;
		result = prime * result + chambre_p_id;
		return result;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (!(obj instanceof chambre))
			return false;
		chambre other = (chambre) obj;
		if (chambre_description == null) {
			if (other.chambre_description != null)
				return false;
		} else if (!chambre_description.equals(other.chambre_description))
			return false;
		if (chambre_devantlhotel != other.chambre_devantlhotel)
			return false;
		if (chambre_etage != other.chambre_etage)
			return false;
		if (chambre_fumeur != other.chambre_fumeur)
			return false;
		if (chambre_nombredelits != other.chambre_nombredelits)
			return false;
		if (chambre_numero != other.chambre_numero)
			return false;
		if (chambre_p_id != other.chambre_p_id)
			return false;
		return true;
	}
	

}
