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

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

public class OrganisationDaoHibernateImpl
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements OrganisationDao

The Organisation Dao Hibernate implementation class.

Version:
$Revision: 1.3 $ $Date: 2005/09/30 14:38:08 $
Author:
Sven Schauwvliege (last modified by $Author: bavo_jcs $

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
OrganisationDaoHibernateImpl()
           
 
Method Summary
 org.bejug.javacareers.jobs.model.Organisation getOrganisation(java.lang.Integer id)
          Gets an Organisation by id.
 java.util.List getOrganisations()
          Lists all organisations.
 void store(org.bejug.javacareers.jobs.model.Organisation organisation)
          Adds and updates an organisation type to the database.
 
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

OrganisationDaoHibernateImpl

public OrganisationDaoHibernateImpl()
Method Detail

store

public void store(org.bejug.javacareers.jobs.model.Organisation organisation)
           throws org.springframework.dao.DataAccessException
Adds and updates an organisation type to the database.

Specified by:
store in interface OrganisationDao
Parameters:
organisation - the Organisation to add
Throws:
org.springframework.dao.DataAccessException - thrown when something goes wrong when adding an organisation

getOrganisation

public org.bejug.javacareers.jobs.model.Organisation getOrganisation(java.lang.Integer id)
                                                              throws org.springframework.dao.DataAccessException
Gets an Organisation by id.

Specified by:
getOrganisation in interface OrganisationDao
Parameters:
id - the id of the Organisation
Returns:
the wanted Organisation or null if not found
Throws:
org.springframework.dao.DataAccessException - thrown when something goes wrong when getting an Organisation

getOrganisations

public java.util.List getOrganisations()
                                throws org.springframework.dao.DataAccessException
Lists all organisations.

Specified by:
getOrganisations in interface OrganisationDao
Returns:
a List containing all organisations
Throws:
org.springframework.dao.DataAccessException - thrown when something goes wrong


Copyright © 2005-2006 BeJUG. All Rights Reserved.