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