1 | |
package org.kuali.student.enrollment.class2.courseofferingset.dao; |
2 | |
|
3 | |
import java.util.List; |
4 | |
|
5 | |
import org.kuali.student.enrollment.class2.courseofferingset.model.SocRolloverResultItemEntity; |
6 | |
import org.kuali.student.enrollment.dao.GenericEntityDao; |
7 | |
|
8 | 0 | public class SocRolloverResultItemDao extends GenericEntityDao<SocRolloverResultItemEntity> { |
9 | |
|
10 | |
@SuppressWarnings("unchecked") |
11 | |
public List<SocRolloverResultItemEntity> getBySocTypeId(String socType) { |
12 | 0 | return em.createQuery("from SocRolloverResultItemEntity a where a.socType=:socType").setParameter("socType", socType).getResultList(); |
13 | |
} |
14 | |
|
15 | |
public List<SocRolloverResultItemEntity> getBySocRolloverResultId(String socRolloverResultId) { |
16 | 0 | return em.createQuery("from SocRolloverResultItemEntity a where a.socRolloverResultId = :socRolloverResultId").setParameter( |
17 | |
"socRolloverResultId", socRolloverResultId).getResultList(); |
18 | |
} |
19 | |
|
20 | |
public List<SocRolloverResultItemEntity> getBySocRolloverResultIdAndSourceCourseOfferingId(String socRolloverResultId, String sourceCourseOfferingId) { |
21 | 0 | return em.createQuery( |
22 | |
"from SocEntity a where a.socRolloverResultId = :socRolloverResultId and a.sourceCourseOfferingId = :sourceCourseOfferingId").setParameter( |
23 | |
"socRolloverResultId", socRolloverResultId).setParameter("sourceCourseOfferingId", sourceCourseOfferingId).getResultList(); |
24 | |
} |
25 | |
|
26 | |
public List<SocRolloverResultItemEntity> getBySocRolloverResultIdAndTargetCourseOfferingId(String socRolloverResultId, String targetCourseOfferingId) { |
27 | 0 | return em.createQuery( |
28 | |
"from SocEntity a where a.socRolloverResultId = :socRolloverResultId and a.targetCourseOfferingId = :targetCourseOfferingId").setParameter( |
29 | |
"socRolloverResultId", socRolloverResultId).setParameter("targetCourseOfferingId", targetCourseOfferingId).getResultList(); |
30 | |
} |
31 | |
} |