1 | |
package org.kuali.student.r2.core.class1.state.dao; |
2 | |
|
3 | |
import java.util.List; |
4 | |
|
5 | |
import org.kuali.student.enrollment.dao.GenericEntityDao; |
6 | |
import org.kuali.student.r2.core.class1.state.model.LifecycleEntity; |
7 | |
|
8 | 0 | public class LifecycleDao extends GenericEntityDao<LifecycleEntity> { |
9 | |
public LifecycleEntity getProcessByKey(String processKey) { |
10 | 0 | return find(processKey); |
11 | |
} |
12 | |
|
13 | |
@SuppressWarnings("unchecked") |
14 | |
public List<LifecycleEntity> getLifecyclesByRefObjectUri(String refObjectUri) { |
15 | 0 | return (List<LifecycleEntity>) em.createQuery("from LifecycleEntity se where se.refObjectUri=:refObjectUri"). |
16 | |
setParameter("refObjectUri", refObjectUri).getResultList(); |
17 | |
} |
18 | |
} |