org.bejug.javacareers.jobs.dao.hibernate
Class JobOfferDaoHibernateImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.bejug.javacareers.jobs.dao.hibernate.OfferDaoHibernateImpl
org.bejug.javacareers.jobs.dao.hibernate.JobOfferDaoHibernateImpl
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, JobOfferDao, OfferDao
- public class JobOfferDaoHibernateImpl
- extends OfferDaoHibernateImpl
- implements JobOfferDao
The Job Offer hibernate data access object implementation.
- Version:
- $Revision: 1.3 $ - $Date: 2005/10/11 08:43:56 $
- Author:
- Bart Meyers (last modified by $Author: stephan_janssen $)
| Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
|
Method Summary |
org.bejug.javacareers.jobs.model.Offer |
getOffer(java.lang.Integer id)
Gets an Offer by id. |
int |
getOfferCount()
Get the total number of offers. |
java.util.List |
getOffers()
Todo: look for a way to implement this method???
Lists all offers. |
int |
getUserJobOfferCount(org.bejug.javacareers.jobs.model.User currentUser)
Get the total number of joboffers posted by the current user. |
| Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
checkDaoConfig, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JobOfferDaoHibernateImpl
public JobOfferDaoHibernateImpl()
getOffers
public java.util.List getOffers()
throws org.springframework.dao.DataAccessException
- Todo: look for a way to implement this method???
Lists all offers.
- Specified by:
getOffers in interface OfferDao- Overrides:
getOffers in class OfferDaoHibernateImpl
- Throws:
org.springframework.dao.DataAccessException
getOffer
public org.bejug.javacareers.jobs.model.Offer getOffer(java.lang.Integer id)
throws org.springframework.dao.DataAccessException
- Gets an Offer by id.
- Specified by:
getOffer in interface OfferDao- Overrides:
getOffer in class OfferDaoHibernateImpl
- Throws:
org.springframework.dao.DataAccessException
getOfferCount
public int getOfferCount()
throws org.springframework.dao.DataAccessException
- Get the total number of offers.
- Specified by:
getOfferCount in interface OfferDao
- Returns:
- an int indicating the number of offers available.
- Throws:
org.springframework.dao.DataAccessException - thrown when something goes wrong
getUserJobOfferCount
public int getUserJobOfferCount(org.bejug.javacareers.jobs.model.User currentUser)
throws org.springframework.dao.DataAccessException
- Get the total number of joboffers posted by the current user.
- Specified by:
getUserJobOfferCount in interface JobOfferDao
- Parameters:
currentUser - The current user
- Returns:
- an int indicating the number of offers posted.
- Throws:
org.springframework.dao.DataAccessException - thrown when something goes wrong
Copyright © 2005-2006 BeJUG. All Rights Reserved.