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.core.dao.CrudDao; |
22 | |
import org.kuali.student.core.dao.SearchableDao; |
23 | |
import org.kuali.student.core.enumerationmanagement.entity.EnumeratedValue; |
24 | |
import org.kuali.student.core.enumerationmanagement.entity.Enumeration; |
25 | |
import org.kuali.student.core.exceptions.DoesNotExistException; |
26 | |
|
27 | |
public interface EnumerationManagementDAO extends CrudDao, SearchableDao{ |
28 | |
|
29 | |
public List<Enumeration> findEnumerations(); |
30 | |
|
31 | |
public Enumeration addEnumeration(Enumeration entity); |
32 | |
|
33 | |
public boolean removeEnumeration(String enumerationKey); |
34 | |
|
35 | |
public List<EnumeratedValue> fetchEnumeratedValuesWithContextAndDate(String enumerationKey, String enumContextKey, String contextValue, Date contextDate); |
36 | |
|
37 | |
public List<EnumeratedValue> fetchEnumeratedValuesWithContext(String enumerationKey, String enumContextKey, String contextValue); |
38 | |
|
39 | |
public List<EnumeratedValue> fetchEnumeratedValuesWithDate(String enumerationKey, Date contextDate); |
40 | |
|
41 | |
public List<EnumeratedValue> fetchEnumeratedValues(String enumerationKey); |
42 | |
|
43 | |
public EnumeratedValue addEnumeratedValue(String enumerationKey, EnumeratedValue value); |
44 | |
|
45 | |
public EnumeratedValue updateEnumeratedValue(Enumeration enumeration, String code, EnumeratedValue value); |
46 | |
|
47 | |
public boolean removeEnumeratedValue(String enumerationKey, String code); |
48 | |
|
49 | |
|
50 | |
} |