View Javadoc

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.SocRolloverResultEntity;
6   import org.kuali.student.r2.common.dao.GenericEntityDao;
7   
8   public class SocRolloverResultDao extends GenericEntityDao<SocRolloverResultEntity> {
9   
10      @SuppressWarnings("unchecked")
11      public List<SocRolloverResultEntity> getBySocRorTypeId(String socRorType) {
12          return em.createQuery("from SocRolloverResultEntity a where a.socRorType=:socRorType").setParameter("socRorType",
13                  socRorType).getResultList();
14      }
15  
16      public List<SocRolloverResultEntity> getBySourceSocId(String sourceSocId) {
17          return em.createQuery("from SocRolloverResultEntity a where a.sourceSocId = :sourceSocId").setParameter("sourceSocId",
18                  sourceSocId).getResultList();
19      }
20  
21      public List<SocRolloverResultEntity> getByTargetSocId(String targetSocId) {
22          return em.createQuery("from SocRolloverResultEntity a where a.targetSocId = :targetSocId").setParameter("targetSocId",
23                  targetSocId).getResultList();
24      }
25  }