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.hibernate;
19
20 import java.util.List;
21
22 import org.bejug.javacareers.jobs.model.EducationServiceOffer;
23 import org.bejug.javacareers.jobs.model.Offer;
24 import org.springframework.dao.DataAccessException;
25
26 /***
27 * @author Bart Meyers (Last modified by $Author: schauwvliege $)
28 * @version $Revision: 1.2 $ - $Date: 2005/09/13 08:11:17 $
29 */
30 public class EducationServiceOfferDaoHibernateImpl extends OfferDaoHibernateImpl {
31
32 /***
33 * {@inheritDoc}
34 */
35 public List getOffers() throws DataAccessException {
36 return getHibernateTemplate().loadAll(EducationServiceOffer.class);
37 }
38
39 /***
40 * {@inheritDoc}
41 */
42 public Offer getOffer(Integer id) throws DataAccessException {
43 return (Offer) getHibernateTemplate().load(EducationServiceOffer.class, id);
44 }
45
46 /***
47 * {@inheritDoc}
48 */
49 public int getOfferCount() throws DataAccessException {
50 return getOfferCount("countEducationServiceOffers");
51 }
52 }
53
54 /***
55 * $Log: EducationServiceOfferDaoHibernateImpl.java,v $
56 * Revision 1.2 2005/09/13 08:11:17 schauwvliege
57 * organize imports
58 *
59 * Revision 1.1 2005/08/26 07:58:30 ge0ffrey
60 * split up the sources in service, serviceimpl and webclient
61 *
62 * Revision 1.4 2005/08/10 09:04:48 bavo_jcs
63 * Optimized imports according to checkstyle
64 *
65 * Revision 1.3 2005/08/09 12:59:55 bavo_jcs
66 * Optimized imports
67 *
68 * Revision 1.2 2005/06/09 08:18:44 bejug_cc
69 * Fix initial import
70 *
71 * Revision 1.6 2005/05/30 14:56:58 bme
72 * added count-methods
73 *
74 * Revision 1.5 2005/05/30 09:31:47 bme
75 * updated for the introduction of HQL in the hbm-files
76 *
77 * Revision 1.4 2005/05/11 17:44:15 sja
78 * Moved all dao Hibernate queries variables to HQLConstants.
79 *
80 * Revision 1.3 2005/05/11 14:19:24 ssc
81 * fixed error modificationdate adress when saving education offer
82 *
83 * Revision 1.2 2005/05/11 10:14:52 ssc
84 * Checstyle errors
85 *
86 * Revision 1.1 2005/05/02 12:10:10 bme
87 * first release
88 *
89 */