View Javadoc

1   /***
2   Copyright (C) 2005 The Java Community
3   
4   This program is free software; you can redistribute it and/or modify  it under
5   the terms of the GNU General Public License as published by  the Free Software
6   Foundation; either version 2 of the License, or  (at your option) any later
7   version.
8   
9   This program is distributed in the hope that it will be useful,  but WITHOUT
10  ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS
11  FOR A PARTICULAR PURPOSE. See the  GNU General Public License for more details.
12  
13  You should have received a copy of the GNU General Public License  along with
14  this program; if not, write to the Free Software  Foundation, Inc., 59 Temple
15  Place, Suite 330, Boston, MA 02111-1307 USA.
16  
17  */
18  package org.bejug.javacareers.jobs.dao;
19  
20  import java.util.List;
21  
22  import org.bejug.javacareers.jobs.model.AbstractParameter;
23  
24  /***
25   * generic dao to use for all 'parameter'-tables.
26   *
27   * @author Bart Meyers (Last modified by $Author: shally $)
28   * @version $Revision: 1.4 $ - $Date: 2005/12/20 15:36:46 $
29   */
30  public interface ParameterDao {
31      
32      /***
33       * Saves a parameter to the database.
34       * @param parameter the parameter to update/insert.
35       */
36      void store(AbstractParameter parameter);
37  
38      /***
39       * Retrieves a parameter from the database, using it's id.
40       * @param id the id of the parameter. 
41       * @return the Parameter looked for.
42       * Todo: figure out whether this is necessary or not.
43       */
44      AbstractParameter getParameter(Integer id);
45  
46      /***
47       * Retrieve all parameters.
48       * @return a List of parameters
49       */
50      List getParameters();
51      
52  
53      
54      
55      /***
56       * Delete a parameter from the database.
57       * @param parameter the parameter to delete.
58       */
59      void deleteParameter(AbstractParameter parameter);
60  
61      /***
62       * Delete a paramter by id. 
63       * @param id an integer indicating the id to delete.
64       */
65      void deleteParameter(Integer id);
66  }
67  /***
68   * $Log: ParameterDao.java,v $
69   * Revision 1.4  2005/12/20 15:36:46  shally
70   * CheckStyle and PMD changes.
71   *
72   * Revision 1.3  2005/09/13 08:11:17  schauwvliege
73   * organize imports
74   *
75   * Revision 1.2  2005/08/31 12:16:11  bme_jcs
76   * refactoring of the abstract base-classes
77   *
78   * Revision 1.1  2005/08/26 07:58:30  ge0ffrey
79   * split up the sources in service, serviceimpl and webclient
80   *
81   * Revision 1.6  2005/08/10 09:04:49  bavo_jcs
82   * Optimized imports according to checkstyle
83   *
84   * Revision 1.5  2005/08/09 12:59:55  bavo_jcs
85   * Optimized imports
86   *
87   * Revision 1.4  2005/08/03 13:14:18  bme_jcs
88   * getDao's removed and storeObject renamed to store
89   *
90   * Revision 1.3  2005/06/14 13:40:04  schauwvliege
91   * Renamed add to store
92   *
93   * Revision 1.2  2005/06/09 08:18:44  bejug_cc
94   * Fix initial import
95   *
96   * Revision 1.4  2005/05/25 11:06:53  ssc
97   * added DBUnit tests and fixed some errors
98   *
99   * Revision 1.3  2005/05/18 07:06:30  bme
100  * updated for searchcriteria
101  *
102  * Revision 1.2  2005/05/11 17:30:56  sja
103  * Added last modified CVS tag.
104  *
105  * Revision 1.1  2005/05/09 13:28:00  bme
106  * updated for the introduction of the 'generalised' parameterhandling
107  *
108  */