/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Fri Sep 17 13:49:59 CDT 2004 by MyEclipse Hibernate Tool.
 */
package gov.va.med.esr.common.model.comms;


import java.math.BigDecimal;

/**
 * A class that represents a row in the COMMS_EXPORT_SNAPSHOTS table. 
 * You can customize the behavior of this class by editing the class, {@link CommsExportSnapshots()}.
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized * by MyEclipse Hibernate tool integration.
 */

import gov.va.med.fw.model.AbstractKeyedEntity;

public class ExportSnapshot 
    extends AbstractKeyedEntity
{
    private static final long serialVersionUID = 8810810250163364441L;

    /** The cached hash code value for this instance.  Settting to 0 triggers re-calculation. */
    private int hashValue = 0;

    /** The value of the commsLog association. */
    private BigDecimal commsLogId;

    /** The value of the commsPrintRequest association. */
    private BigDecimal printRequestId;

    /** The value of the commsPrCancel association. */
    private BigDecimal cancelledPrintRequestId;

    /**
     * Simple constructor of AbstractCommsExportSnapshots instances.
     */
    public ExportSnapshot()
    {
    }


 
	/**
	 * @return Returns the cancelledPrintRequestId.
	 */
	public BigDecimal getCancelledPrintRequestId() {
		return cancelledPrintRequestId;
	}
	/**
	 * @param cancelledPrintRequestId The cancelledPrintRequestId to set.
	 */
	public void setCancelledPrintRequestId(BigDecimal cancelledPrintRequestId) {
		this.cancelledPrintRequestId = cancelledPrintRequestId;
	}
	/**
	 * @return Returns the commsLogId.
	 */
	public BigDecimal getCommsLogId() {
		return commsLogId;
	}
	/**
	 * @param commsLogId The commsLogId to set.
	 */
	public void setCommsLogId(BigDecimal commsLogId) {
		this.commsLogId = commsLogId;
	}
	/**
	 * @return Returns the commsPrintRequestId.
	 */
	public BigDecimal getPrintRequestId() {
		return printRequestId;
	}
	/**
	 * @param commsPrintRequestId The commsPrintRequestId to set.
	 */
	public void setPrintRequestId(BigDecimal printRequestId) {
		this.printRequestId = printRequestId;
	}


    /**
     * Implementation of the equals comparison on the basis of equality of the primary key values.
     * @param rhs
     * @return boolean
     */
    public boolean equals(Object rhs)
    {
        if (rhs == null)
            return false;
        if (! (rhs instanceof ExportSnapshot))
            return false;
        ExportSnapshot that = (ExportSnapshot) rhs;
        if (this.getIdentifier() != null && that.getIdentifier() != null)
        {
            if (! this.getIdentifier().equals(that.getIdentifier()))
            {
                return false;
            }
        }
        return true;
    }

    /**
     * Implementation of the hashCode method conforming to the Bloch pattern with
     * the exception of array properties (these are very unlikely primary key types).
     * @return int
     */
    public int hashCode()
    {
        if (this.hashValue == 0)
        {
            int result = 17;
            int commsExportSnapshotsIdValue = this.getIdentifier() == null ? 0 : this.getIdentifier().hashCode();
            result = result * 37 + commsExportSnapshotsIdValue;
            this.hashValue = result;
        }
        return this.hashValue;
    }
}
