/* * Created on Mar 18, 2005 * */ package net.sourceforge.fenixedu.dataTransferObject.inquiries; import net.sourceforge.fenixedu.dataTransferObject.InfoClass; import net.sourceforge.fenixedu.dataTransferObject.InfoExecutionPeriod; import net.sourceforge.fenixedu.dataTransferObject.InfoObject; import net.sourceforge.fenixedu.dataTransferObject.InfoStudent; import net.sourceforge.fenixedu.domain.candidacy.degree.DayPeriodType; import net.sourceforge.fenixedu.domain.inquiries.InquiriesRegistry3; /** * @author Joćo Fialho & Rita Ferreira * */ public class InfoInquiriesRegistry3 extends InfoObject implements Comparable { private Integer keyExecutionPeriod; private InfoExecutionPeriod executionPeriod; private Integer keyStudent; private InfoStudent student; private Integer keyStudentSchoolClass; private InfoClass studentSchoolClass; private boolean eligibleForPrize; private Integer studentCurricularYear; private DayPeriodType dayPeriodType; /** * @return Returns the executionPeriod. */ public InfoExecutionPeriod getExecutionPeriod() { return executionPeriod; } /** * @param executionPeriod * The executionPeriod to set. */ public void setExecutionPeriod(InfoExecutionPeriod executionPeriod) { this.executionPeriod = executionPeriod; } /** * @return Returns the keyExecutionPeriod. */ public Integer getKeyExecutionPeriod() { return keyExecutionPeriod; } /** * @param keyExecutionPeriod * The keyExecutionPeriod to set. */ public void setKeyExecutionPeriod(Integer keyExecutionPeriod) { this.keyExecutionPeriod = keyExecutionPeriod; } /** * @return Returns the keyStudent. */ public Integer getKeyStudent() { return keyStudent; } /** * @param keyStudent * The keyStudent to set. */ public void setKeyStudent(Integer keyStudent) { this.keyStudent = keyStudent; } /** * @return Returns the student. */ public InfoStudent getStudent() { return student; } /** * @param student * The student to set. */ public void setStudent(InfoStudent student) { this.student = student; } public int compareTo(Object arg0) { return 0; } public static InfoInquiriesRegistry3 newInfoFromDomain( InquiriesRegistry3 inquiriesRegistry3) { InfoInquiriesRegistry3 newInfo = null; if (inquiriesRegistry3 != null) { newInfo = new InfoInquiriesRegistry3(); newInfo.copyFromDomain(inquiriesRegistry3); } return newInfo; } public void copyFromDomain( InquiriesRegistry3 inquiriesRegistry3) { if (inquiriesRegistry3 != null) { super.copyFromDomain(inquiriesRegistry3); } this.setIdInternal(inquiriesRegistry3.getIdInternal()); this.setExecutionPeriod(InfoExecutionPeriod .newInfoFromDomain(inquiriesRegistry3 .getExecutionPeriod())); this.setStudent(InfoStudent .newInfoFromDomain(inquiriesRegistry3.getStudent())); this.setEligibleForPrize(inquiriesRegistry3.getEligibleForPrize()); this.setDayPeriodType(inquiriesRegistry3.getDayPeriodType()); this.setStudentCurricularYear(inquiriesRegistry3.getStudentCurricularYear()); this.setStudentSchoolClass(InfoClass.newInfoFromDomain(inquiriesRegistry3 .getStudentSchoolClass())); } public boolean isEligibleForPrize() { return eligibleForPrize; } public void setEligibleForPrize(boolean eligibleForPrize) { this.eligibleForPrize = eligibleForPrize; } public Integer getStudentCurricularYear() { return studentCurricularYear; } public void setStudentCurricularYear(Integer studentCurricularYear) { this.studentCurricularYear = studentCurricularYear; } /** * @return Returns the keyStudentSchoolClass. */ public Integer getKeyStudentSchoolClass() { return keyStudent; } /** * @param keyStudentSchoolClass * The keyStudentSchoolClass to set. */ public void setKeyStudentSchoolClass(Integer keyStudentSchoolClass) { this.keyStudentSchoolClass = keyStudentSchoolClass; } public InfoClass getStudentSchoolClass() { return studentSchoolClass; } public void setStudentSchoolClass(InfoClass studentSchoolClass) { this.studentSchoolClass = studentSchoolClass; } public DayPeriodType getDayPeriodType() { return dayPeriodType; } public void setDayPeriodType(DayPeriodType dayPeriodType) { this.dayPeriodType = dayPeriodType; } }