org.bejug.javacareers.jobs.dao.hibernate
Class AcademicEducationOfferDaoHibernateImpl

java.lang.Object
  extended byorg.springframework.dao.support.DaoSupport
      extended byorg.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended byorg.bejug.javacareers.jobs.dao.hibernate.OfferDaoHibernateImpl
              extended byorg.bejug.javacareers.jobs.dao.hibernate.AcademicEducationOfferDaoHibernateImpl
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, OfferDao

public class AcademicEducationOfferDaoHibernateImpl
extends OfferDaoHibernateImpl

Acedemic Education Offer hibernate dao implementation.

Version:
$Revision: 1.3 $ $Date: 2005/10/11 08:39:00 $
Author:
Bart Meyers (last modified by $Author: stephan_janssen $)

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
AcademicEducationOfferDaoHibernateImpl()
           
 
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.Offer offer)
          Adds and updates an offer to the database.
 
Methods inherited from class org.bejug.javacareers.jobs.dao.hibernate.OfferDaoHibernateImpl
deleteOffer, deleteOffer, deleteOffersByUrl, getOfferCount
 
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
 

Constructor Detail

AcademicEducationOfferDaoHibernateImpl

public AcademicEducationOfferDaoHibernateImpl()
Method Detail

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.Offer offer)
           throws org.springframework.dao.DataAccessException
Adds and updates an offer to the database.

Specified by:
store in interface OfferDao
Overrides:
store in class OfferDaoHibernateImpl
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.