Coverage Report - org.kuali.student.r2.common.dao.StateDao
 
Classes in this File Line Coverage Branch Coverage Complexity
StateDao
0%
0/3
N/A
1
 
 1  
 package org.kuali.student.r2.common.dao;
 2  
 
 3  
 import java.util.List;
 4  
 
 5  
 import org.kuali.student.enrollment.dao.GenericEntityDao;
 6  
 import org.kuali.student.r2.common.model.StateEntity;
 7  
 
 8  0
 public class StateDao extends GenericEntityDao<StateEntity>{
 9  
         public StateEntity getState(String processKey, String stateKey){
 10  0
                 return (StateEntity)em.createQuery("from StateEntity se where se.id=:stateKey and se.processKey=:processKey")
 11  
                 .setParameter("stateKey", stateKey)
 12  
                 .setParameter("processKey", processKey)
 13  
                 .getSingleResult();
 14  
         }
 15  
         
 16  
         @SuppressWarnings("unchecked")
 17  
         public List<StateEntity> getStatesByProcess(String processKey){
 18  0
                 return  (List<StateEntity>)em.createQuery("from StateEntity se where se.processKey=:processKey")
 19  
                 .setParameter("processKey", processKey)
 20  
                 .getResultList();                
 21  
         }        
 22  
 }