package database.dataview;

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Time;

public class view_facture extends view_client{
	private final int facture_p_id;
	private final Date facture_jour;
	private final Time facture_heure;
	private final BigDecimal facture_depense;
	private final String facture_commentaire;
    private final int fermeture_fk_id;
    private final int taxe_p_id;
    private final BigDecimal taxe_tps;
    private final BigDecimal taxe_tvq;
    private final BigDecimal taxe_hebergement;
	/**
	 * @param client_p_id
	 * @param client_nom
	 * @param client_prenom
	 * @param client_commentaire
	 * @param adresse_p_id
	 * @param adresse_no_rue_app
	 * @param adresse_codepostal
	 * @param ville_p_id
	 * @param ville_nom
	 * @param province
	 * @param pays
	 * @param facture_p_id
	 * @param facture_jour
	 * @param facture_heure
	 * @param facture_depense
	 * @param facture_commentaire
	 * @param fermeture_fk_id
	 * @param taxe_p_id
	 * @param taxe_tps
	 * @param taxe_tvq
	 * @param taxe_hebergement
	 */
	public view_facture(int client_p_id, String client_nom,
			String client_prenom, String client_commentaire, int adresse_p_id,
			String adresse_no_rue_app, String adresse_codepostal,
			int ville_p_id, String ville_nom, String province, String pays,
			int facture_p_id, Date facture_jour, Time facture_heure,
			BigDecimal facture_depense, String facture_commentaire,
			int fermeture_fk_id, int taxe_p_id, BigDecimal taxe_tps,
			BigDecimal taxe_tvq, BigDecimal taxe_hebergement) {
		super(client_p_id, client_nom, client_prenom, client_commentaire,
				adresse_p_id, adresse_no_rue_app, adresse_codepostal,
				ville_p_id, ville_nom, province, pays);
		this.facture_p_id = facture_p_id;
		this.facture_jour = facture_jour;
		this.facture_heure = facture_heure;
		this.facture_depense = facture_depense;
		this.facture_commentaire = facture_commentaire;
		this.fermeture_fk_id = fermeture_fk_id;
		this.taxe_p_id = taxe_p_id;
		this.taxe_tps = taxe_tps;
		this.taxe_tvq = taxe_tvq;
		this.taxe_hebergement = taxe_hebergement;
	}
	/**
	 * @return the facture_p_id
	 */
	public int getFacture_p_id() {
		return facture_p_id;
	}
	/**
	 * @return the facture_jour
	 */
	public Date getFacture_jour() {
		return facture_jour;
	}
	/**
	 * @return the facture_heure
	 */
	public Time getFacture_heure() {
		return facture_heure;
	}
	/**
	 * @return the facture_depense
	 */
	public BigDecimal getFacture_depense() {
		return facture_depense;
	}
	/**
	 * @return the facture_commentaire
	 */
	public String getFacture_commentaire() {
		return facture_commentaire;
	}
	/**
	 * @return the fermeture_fk_id
	 */
	public int getFermeture_fk_id() {
		return fermeture_fk_id;
	}
	/**
	 * @return the taxe_p_id
	 */
	public int getTaxe_p_id() {
		return taxe_p_id;
	}
	/**
	 * @return the taxe_tps
	 */
	public BigDecimal getTaxe_tps() {
		return taxe_tps;
	}
	/**
	 * @return the taxe_tvq
	 */
	public BigDecimal getTaxe_tvq() {
		return taxe_tvq;
	}
	/**
	 * @return the taxe_hebergement
	 */
	public BigDecimal getTaxe_hebergement() {
		return taxe_hebergement;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime
				* result
				+ ((facture_commentaire == null) ? 0 : facture_commentaire
						.hashCode());
		result = prime * result
				+ ((facture_depense == null) ? 0 : facture_depense.hashCode());
		result = prime * result
				+ ((facture_heure == null) ? 0 : facture_heure.hashCode());
		result = prime * result
				+ ((facture_jour == null) ? 0 : facture_jour.hashCode());
		result = prime * result + facture_p_id;
		result = prime * result + fermeture_fk_id;
		result = prime
				* result
				+ ((taxe_hebergement == null) ? 0 : taxe_hebergement.hashCode());
		result = prime * result + taxe_p_id;
		result = prime * result
				+ ((taxe_tps == null) ? 0 : taxe_tps.hashCode());
		result = prime * result
				+ ((taxe_tvq == null) ? 0 : taxe_tvq.hashCode());
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		view_facture other = (view_facture) obj;
		if (facture_commentaire == null) {
			if (other.facture_commentaire != null)
				return false;
		} else if (!facture_commentaire.equals(other.facture_commentaire))
			return false;
		if (facture_depense == null) {
			if (other.facture_depense != null)
				return false;
		} else if (!facture_depense.equals(other.facture_depense))
			return false;
		if (facture_heure == null) {
			if (other.facture_heure != null)
				return false;
		} else if (!facture_heure.equals(other.facture_heure))
			return false;
		if (facture_jour == null) {
			if (other.facture_jour != null)
				return false;
		} else if (!facture_jour.equals(other.facture_jour))
			return false;
		if (facture_p_id != other.facture_p_id)
			return false;
		if (fermeture_fk_id != other.fermeture_fk_id)
			return false;
		if (taxe_hebergement == null) {
			if (other.taxe_hebergement != null)
				return false;
		} else if (!taxe_hebergement.equals(other.taxe_hebergement))
			return false;
		if (taxe_p_id != other.taxe_p_id)
			return false;
		if (taxe_tps == null) {
			if (other.taxe_tps != null)
				return false;
		} else if (!taxe_tps.equals(other.taxe_tps))
			return false;
		if (taxe_tvq == null) {
			if (other.taxe_tvq != null)
				return false;
		} else if (!taxe_tvq.equals(other.taxe_tvq))
			return false;
		return true;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "view_facture [facture_p_id=" + facture_p_id + ", facture_jour="
				+ facture_jour + ", facture_heure=" + facture_heure
				+ ", facture_depense=" + facture_depense
				+ ", facture_commentaire=" + facture_commentaire
				+ ", fermeture_fk_id=" + fermeture_fk_id + ", taxe_p_id="
				+ taxe_p_id + ", taxe_tps=" + taxe_tps + ", taxe_tvq="
				+ taxe_tvq + ", taxe_hebergement=" + taxe_hebergement + "]";
	}
    
}
