View Javadoc
1   package org.itracker.persistence.dao;
2   
3   import org.itracker.model.Configuration;
4   
5   import java.util.List;
6   
7   /**
8    *
9    */
10  public interface ConfigurationDAO extends BaseDAO<Configuration> {
11  
12      public Configuration findByPrimaryKey(Integer id);
13  
14      public List<Configuration> findByType(Configuration.Type type);
15  
16      /**
17       *
18       * @param type
19       * @return
20       * @deprecated use findByType(Configuration.Type type)
21       */
22      public List<Configuration> findByType(int type);
23  
24      @Deprecated
25      public List<Configuration> findByTypeAndValue(int type, String value);
26  
27      /**
28       *
29       * @param type the type
30       * @param value the value
31       * @return identified configuration item
32       */
33      public Configuration findByTypeValueKey(Configuration.Type type, String value);
34      /**
35       *
36       * @param type the type
37       * @param value the value
38       * @return list with the identified configuration item
39       * @deprecated use findByTypeValueKey(int type, String value)
40       */
41      public List<Configuration> findByTypeAndValue(Configuration.Type type, String value);
42  
43  }