View Javadoc
1   package org.kuali.student.r2.lum.lrc.dao;
2   
3   import java.util.List;
4   import javax.persistence.Query;
5   import org.kuali.student.r2.lum.lrc.model.ResultValuesGroupEntity;
6   import org.kuali.student.r2.common.dao.GenericEntityDao;
7   
8   public class ResultValuesGroupDao extends GenericEntityDao<ResultValuesGroupEntity> {
9   
10      public List<String> getIdsByType(String type) {
11          Query query = em.createNamedQuery("ResultValuesGroupEntity.getIdsByType");
12          query.setParameter("type", type);
13          return query.getResultList();
14      }
15  
16      public List<ResultValuesGroupEntity> getByResultValue(String resultValueKey) {
17          Query query = em.createNamedQuery("ResultValuesGroupEntity.getByResultValue");
18          query.setParameter("resultValueKey", resultValueKey);
19          return query.getResultList();
20      }
21  
22      public List<ResultValuesGroupEntity> getByResultScale(String resultScaleKey) {
23          Query query = em.createNamedQuery("ResultValuesGroupEntity.getByResultScale");
24          query.setParameter("resultScaleKey", resultScaleKey);
25          return query.getResultList();
26      }
27  }