package Dataset;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Time;

/**
 * @author alexis
 * dataset de la table depot
 */
public class depot implements Serializable {
	private int depot_p_id;
	private Time depot_heure;
	private int employe_fk_id;
	private BigDecimal depot_montant;
	private int fermeture_fk_id;

	/**************************************************************************
	 * constructeur
	 *************************************************************************/
	
	public depot(int depot_p_id, Time depot_heure, int employe_fk_id,
				 BigDecimal depot_montant, int fermeture_fk_id) {
		this.depot_p_id = depot_p_id;
		this.depot_heure = depot_heure;
		this.employe_fk_id = employe_fk_id;
		this.depot_montant = depot_montant;
		this.fermeture_fk_id = fermeture_fk_id;
	}

	/**************************************************************************
	 * getter
	 *************************************************************************/
	
	/**
	 * @return the depot_p_id
	 */
	public int getdepot_p_id() {
		return depot_p_id;
	}

	/**
	 * @return the depot_heure
	 */
	public Time getDepot_heure() {
		return depot_heure;
	}

	/**
	 * @return the employe_fk_id
	 */
	public int getEmploye_fk_id() {
		return employe_fk_id;
	}

	/**
	 * @return the depot_montant
	 */
	public BigDecimal getDepot_montant() {
		return depot_montant;
	}

	/**
	 * @return the fermeture_fk_id
	 */
	public int getFermeture_fk_id() {
		return fermeture_fk_id;
	}

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

	/**
	 * @param depot_heure the depot_heure to set
	 */
	public void setDepot_heure(Time depot_heure) {
		this.depot_heure = depot_heure;
	}

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

	/**
	 * @param depot_montant the depot_montant to set
	 */
	public void setDepot_montant(BigDecimal depot_montant) {
		this.depot_montant = depot_montant;
	}

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

	/**************************************************************************
	 * object
	 *************************************************************************/
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "depot [depot_p_id=" + depot_p_id + ", depot_heure="
				+ depot_heure + ", employe_fk_id=" + employe_fk_id
				+ ", depot_montant=" + depot_montant + ", fermeture_fk_id="
				+ fermeture_fk_id + "]";
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((depot_heure == null) ? 0 : depot_heure.hashCode());
		result = prime * result
				+ ((depot_montant == null) ? 0 : depot_montant.hashCode());
		result = prime * result + depot_p_id;
		result = prime * result + employe_fk_id;
		result = prime * result + fermeture_fk_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 depot))
			return false;
		depot other = (depot) obj;
		if (depot_heure == null) {
			if (other.depot_heure != null)
				return false;
		} else if (!depot_heure.equals(other.depot_heure))
			return false;
		if (depot_montant == null) {
			if (other.depot_montant != null)
				return false;
		} else if (!depot_montant.equals(other.depot_montant))
			return false;
		if (depot_p_id != other.depot_p_id)
			return false;
		if (employe_fk_id != other.employe_fk_id)
			return false;
		if (fermeture_fk_id != other.fermeture_fk_id)
			return false;
		return true;
	}
	
	
}
