Coverage Report - org.kuali.student.enrollment.class2.courseofferingset.dao.SocDao
 
Classes in this File Line Coverage Branch Coverage Complexity
SocDao
0%
0/5
N/A
1
 
 1  
 package org.kuali.student.enrollment.class2.courseofferingset.dao;
 2  
 
 3  
 
 4  
 import java.util.List;
 5  
 
 6  
 import org.kuali.student.enrollment.class2.courseofferingset.model.SocEntity;
 7  
 import org.kuali.student.enrollment.dao.GenericEntityDao;
 8  
 
 9  0
 public class SocDao extends GenericEntityDao<SocEntity> {
 10  
 
 11  
     @SuppressWarnings("unchecked")
 12  
     public List<SocEntity> getBySocTypeId(String socType) {
 13  0
         return em.createQuery("from SocEntity a where a.socType=:socType").setParameter("socType", socType)
 14  
                 .getResultList();
 15  
     }
 16  
 
 17  
     public List<SocEntity> getByTerm(String termId) {
 18  0
         return em.createQuery("from SocEntity a where a.termId = :termId")
 19  
                 .setParameter("termId", termId).getResultList();
 20  
     }
 21  
     public List<SocEntity> getByTermAndSubjectArea(String termId, String subjectArea) {
 22  0
         return em.createQuery("from SocEntity a where a.termId = :termId and a.subjectArea = :subjectArea")
 23  
                 .setParameter("termId", termId)
 24  
                 .setParameter("subjectArea", subjectArea).getResultList();
 25  
     }
 26  
 
 27  
     public List<SocEntity> getByTermAndUnitsContentOwner(String termId, String unitsContentOwnerId) {
 28  0
         return em.createQuery("from SocEntity a where a.termId = :termId and a.unitsContentOwnerId = :unitsContentOwnerId")
 29  
                 .setParameter("termId", termId)
 30  
                 .setParameter("unitsContentOwnerId", unitsContentOwnerId).getResultList();
 31  
     }
 32  
 
 33  
 }