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  package org.bejug.javacareers.jobs.dao;
18  
19  import java.util.List;
20  
21  import org.bejug.javacareers.jobs.model.Organisation;
22  import org.springframework.dao.DataAccessException;
23  
24  /***
25   * The Organisation Data Access Object interface.
26   *
27   * @author Sven Schauwvliege (last modified by $Author: schauwvliege $)
28   * @version $Revision: 1.2 $ - $Date: 2005/09/13 08:11:17 $
29   *
30   */
31  public interface OrganisationDao {
32      /***
33       * Lists all organisations.
34       *
35       * @return a List containing all organisations
36       * @throws DataAccessException
37       *             thrown when something goes wrong
38       */
39      List getOrganisations() throws DataAccessException;
40  
41      /***
42       * Adds and updates an organisation type to the database.
43       *
44       * @param organisation
45       *            the Organisation to add
46       * @throws DataAccessException
47       *             thrown when something goes wrong when adding an organisation
48       */
49      void store(Organisation organisation) throws DataAccessException;
50  
51      /***
52       * Gets an Organisation by id.
53       *
54       * @param id
55       *            the id of the Organisation
56       * @return the wanted Organisation or null if not found
57       * @throws DataAccessException
58       *             thrown when something goes wrong when getting an Organisation
59       */
60      Organisation getOrganisation(Integer id) throws DataAccessException;
61  
62  
63  }
64  /***
65   * $Log: OrganisationDao.java,v $
66   * Revision 1.2  2005/09/13 08:11:17  schauwvliege
67   * organize imports
68   *
69   * Revision 1.1  2005/08/26 07:58:30  ge0ffrey
70   * split up the sources in service, serviceimpl and webclient
71   *
72   * Revision 1.6  2005/08/10 09:04:49  bavo_jcs
73   * Optimized imports according to checkstyle
74   *
75   * Revision 1.5  2005/08/09 12:59:55  bavo_jcs
76   * Optimized imports
77   *
78   * Revision 1.4  2005/08/03 13:14:18  bme_jcs
79   * getDao's removed and storeObject renamed to store
80   *
81   * Revision 1.3  2005/06/14 13:40:04  schauwvliege
82   * Renamed add to store
83   *
84   * Revision 1.2  2005/06/09 08:18:44  bejug_cc
85   * Fix initial import
86   *
87   * Revision 1.8  2005/05/25 11:06:53  ssc
88   * added DBUnit tests and fixed some errors
89   *
90   * Revision 1.7  2005/05/12 08:23:55  ssc
91   * Checkstyle errors
92   *
93   * Revision 1.6  2005/04/29 18:17:34  sja
94   * General cleanup (naming conv., javadoc and CVS tags)
95   *
96   * Revision 1.5  2005/04/29 07:09:10  PSONG09
97   * update
98   * Revision 1.4 2005/04/27 21:48:10 ssc re- added
99   * Log
100  *
101  * Revision 1.2 2005/04/26 20:24:56 ssc Added CVS log
102  *
103  *
104  */