package net.sourceforge.fenixedu.dataTransferObject.transactions;
import net.sourceforge.fenixedu.dataTransferObject.InfoExecutionYear;
import net.sourceforge.fenixedu.dataTransferObject.InfoObject;
/**
* @author Shezad Anavarali
* @author Nadir Tarmahomed
*
*/
public class InsuranceSituationDTO extends InfoObject {
private Double payedValue;
private Double anualValue;
private Integer insuranceTransactionID;
private InfoExecutionYear infoExecutionYear;
private Integer executionYearID;
/**
*
*/
public InsuranceSituationDTO() {
}
/**
* @param idInternal
*/
public InsuranceSituationDTO(Integer idInternal) {
super(idInternal);
}
public Double getAnualValue() {
return anualValue;
}
public void setAnualValue(Double anualValue) {
this.anualValue = anualValue;
}
public InfoExecutionYear getInfoExecutionYear() {
return infoExecutionYear;
}
public void setInfoExecutionYear(InfoExecutionYear infoExecutionYear) {
this.infoExecutionYear = infoExecutionYear;
}
public Integer getInsuranceTransactionID() {
return insuranceTransactionID;
}
public void setInsuranceTransactionID(Integer insuranceTransactionID) {
this.insuranceTransactionID = insuranceTransactionID;
}
public Double getPayedValue() {
return payedValue;
}
public void setPayedValue(Double payedValue) {
this.payedValue = payedValue;
}
public Integer getExecutionYearID() {
return executionYearID;
}
public void setExecutionYearID(Integer executionYearID) {
this.executionYearID = executionYearID;
}
public boolean equals(Object obj) {
boolean result = false;
if (obj instanceof InsuranceSituationDTO) {
InsuranceSituationDTO insuranceSituationDTO = (InsuranceSituationDTO) obj;
if ((getInfoExecutionYear() == null && insuranceSituationDTO.getInfoExecutionYear() == null)
|| (getInfoExecutionYear().equals(insuranceSituationDTO.getInfoExecutionYear()))) {
result = true;
}
}
return result;
}
}