View Javadoc

1   /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
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  }