1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.enumerationmanagement.dao; |
17 | |
|
18 | |
import java.util.Date; |
19 | |
import java.util.List; |
20 | |
|
21 | |
import org.kuali.student.common.dao.CrudDao; |
22 | |
import org.kuali.student.common.dao.SearchableDao; |
23 | |
import org.kuali.student.core.enumerationmanagement.entity.EnumeratedValue; |
24 | |
import org.kuali.student.core.enumerationmanagement.entity.Enumeration; |
25 | |
|
26 | |
public interface EnumerationManagementDAO extends CrudDao, SearchableDao{ |
27 | |
|
28 | |
public List<Enumeration> findEnumerations(); |
29 | |
|
30 | |
public Enumeration addEnumeration(Enumeration entity); |
31 | |
|
32 | |
public boolean removeEnumeration(String enumerationKey); |
33 | |
|
34 | |
public List<EnumeratedValue> fetchEnumeratedValuesWithContextAndDate(String enumerationKey, String enumContextKey, String contextValue, Date contextDate); |
35 | |
|
36 | |
public List<EnumeratedValue> fetchEnumeratedValuesWithContext(String enumerationKey, String enumContextKey, String contextValue); |
37 | |
|
38 | |
public List<EnumeratedValue> fetchEnumeratedValuesWithDate(String enumerationKey, Date contextDate); |
39 | |
|
40 | |
public List<EnumeratedValue> fetchEnumeratedValues(String enumerationKey); |
41 | |
|
42 | |
public EnumeratedValue addEnumeratedValue(String enumerationKey, EnumeratedValue value); |
43 | |
|
44 | |
public EnumeratedValue updateEnumeratedValue(Enumeration enumeration, String code, EnumeratedValue value); |
45 | |
|
46 | |
public boolean removeEnumeratedValue(String enumerationKey, String code); |
47 | |
|
48 | |
|
49 | |
} |