package net.sourceforge.fenixedu.dataTransferObject.transactions;
import net.sourceforge.fenixedu.dataTransferObject.InfoExecutionYear;
import net.sourceforge.fenixedu.dataTransferObject.InfoStudent;
import net.sourceforge.fenixedu.domain.transactions.InsuranceTransaction;
/**
* @author Shezad Anavarali
* @author Nadir Tarmahomed
*
*/
public class InfoInsuranceTransaction extends InfoPaymentTransaction {
private InfoExecutionYear infoExecutionYear;
private InfoStudent infoStudent;
public InfoInsuranceTransaction() {
}
protected void copyFromDomain(InsuranceTransaction insuranceTransaction) {
super.copyFromDomain(insuranceTransaction);
this.infoExecutionYear = InfoExecutionYear.newInfoFromDomain(insuranceTransaction.getExecutionYear());
this.infoStudent = InfoStudent.newInfoFromDomain(insuranceTransaction.getStudent());
}
public static InfoInsuranceTransaction newInfoFromDomain(InsuranceTransaction insuranceTransaction) {
if (insuranceTransaction == null) {
return null;
}
InfoInsuranceTransaction infoInsuranceTransaction = new InfoInsuranceTransaction();
infoInsuranceTransaction.copyFromDomain(insuranceTransaction);
return infoInsuranceTransaction;
}
/**
* @return Returns the infoExecutionYear.
*/
public InfoExecutionYear getInfoExecutionYear() {
return infoExecutionYear;
}
/**
* @param infoExecutionYear
* The infoExecutionYear to set.
*/
public void setInfoExecutionYear(InfoExecutionYear infoExecutionYear) {
this.infoExecutionYear = infoExecutionYear;
}
/**
* @return Returns the infoStudent.
*/
public InfoStudent getInfoStudent() {
return infoStudent;
}
/**
* @param infoStudent
* The infoStudent to set.
*/
public void setInfoStudent(InfoStudent infoStudent) {
this.infoStudent = infoStudent;
}
}