| 1 | |
package org.kuali.student.enrollment.class1.lui.dao; |
| 2 | |
|
| 3 | |
import java.util.List; |
| 4 | |
|
| 5 | |
import org.kuali.student.enrollment.class1.lui.model.LuiEntity; |
| 6 | |
import org.kuali.student.enrollment.dao.GenericEntityDao; |
| 7 | |
|
| 8 | 0 | public class LuiDao extends GenericEntityDao<LuiEntity> { |
| 9 | |
public List<LuiEntity> getLuisByType(String typeId) { |
| 10 | 0 | return (List<LuiEntity>) em.createQuery("from LuiEntity lui where lui.luiType =:typeId").setParameter("typeId", typeId).getResultList(); |
| 11 | |
} |
| 12 | |
|
| 13 | |
public List<LuiEntity> getLuisByClu(String cluId) { |
| 14 | 0 | return (List<LuiEntity>) em.createQuery("from LuiEntity lui where lui.cluId=:cluId").setParameter("cluId", cluId).getResultList(); |
| 15 | |
|
| 16 | |
} |
| 17 | |
|
| 18 | |
public List<LuiEntity> getLuisByAtpAndType(String atpId, String typeKey) { |
| 19 | 0 | return (List<LuiEntity>) em.createQuery("from LuiEntity lui where lui.atpId=:atpId and lui.luiType = :typeKey").setParameter("typeKey", typeKey).setParameter("atpId", atpId).getResultList(); |
| 20 | |
|
| 21 | |
} |
| 22 | |
|
| 23 | |
public List<LuiEntity> getLuisByAtpAndClu(String atpId, String cluId) { |
| 24 | 0 | return (List<LuiEntity>) em.createQuery("from LuiEntity lui where lui.atpId=:atpId and lui.cluId = :cluId").setParameter("cluId", cluId).setParameter("atpId", atpId).getResultList(); |
| 25 | |
|
| 26 | |
} |
| 27 | |
} |