org.bejug.javacareers.jobs.dao.hibernate
Class CommercialEducationOfferDaoHibernateImpl
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.CommercialEducationOfferDaoHibernateImpl
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, OfferDao
- public class CommercialEducationOfferDaoHibernateImpl
- extends OfferDaoHibernateImpl
Commercial Education Offer Hibernate dao implementation.
- Version:
- $Revision: 1.5 $ - $Date: 2005/12/09 10:46:55 $
- Author:
- Bart Meyers (Last modified by $Author: shally $)
| 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. |
void |
store(org.bejug.javacareers.jobs.model.EducationOffer offer)
{@inheritDoc} |
| 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 |
CommercialEducationOfferDaoHibernateImpl
public CommercialEducationOfferDaoHibernateImpl()
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
store
public void store(org.bejug.javacareers.jobs.model.EducationOffer offer)
throws org.springframework.dao.DataAccessException
- {@inheritDoc}
- Throws:
org.springframework.dao.DataAccessException
getOfferCount
public int getOfferCount()
throws org.springframework.dao.DataAccessException
- Get the total number of offers.
- Returns:
- an int indicating the number of offers available.
- Throws:
org.springframework.dao.DataAccessException - thrown when something goes wrong
Copyright © 2005-2006 BeJUG. All Rights Reserved.