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

java.lang.Object
  extended byorg.springframework.dao.support.DaoSupport
      extended byorg.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended byorg.bejug.javacareers.jobs.dao.hibernate.AbstractParameterDaoHibernateImpl
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, ParameterDao
Direct Known Subclasses:
OfferTypeDaoHibernateImpl, OrganisationTypeDaoHibernateImpl, ProfileDaoHibernateImpl

public abstract class AbstractParameterDaoHibernateImpl
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements ParameterDao

Generic dao-implementation for all parameterDao's. This class doesn't implement the getParameters-method, this is delayed to the concrete subdao's.

Version:
$Revision: 1.2 $ $Date: 2005/08/31 12:16:11 $
Author:
Bart Meyers

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
AbstractParameterDaoHibernateImpl()
           
 
Method Summary
 void deleteParameter(org.bejug.javacareers.jobs.model.AbstractParameter parameter)
          {Delete a parameter from the database.}
 void deleteParameter(java.lang.Integer id)
          {Delete a paramter by id.}
 java.lang.Class getClazz()
           
 org.bejug.javacareers.jobs.model.AbstractParameter getParameter(java.lang.Integer id)
          Retrieves a parameter from the database, using it's id.
 java.util.List getParameters()
          Retrieve all parameters.
 void setClazz(java.lang.Class clazz)
           
 void store(org.bejug.javacareers.jobs.model.AbstractParameter parameter)
          Saves a parameter 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

AbstractParameterDaoHibernateImpl

public AbstractParameterDaoHibernateImpl()
Method Detail

getClazz

public java.lang.Class getClazz()
Returns:
the Class this dao refers to

setClazz

public void setClazz(java.lang.Class clazz)
Parameters:
clazz - the Class this dao has to refer to

getParameters

public java.util.List getParameters()
Retrieve all parameters.

Specified by:
getParameters in interface ParameterDao
Returns:
a List of parameters

getParameter

public org.bejug.javacareers.jobs.model.AbstractParameter getParameter(java.lang.Integer id)
Retrieves a parameter from the database, using it's id.

Specified by:
getParameter in interface ParameterDao
Parameters:
id - the id of the parameter.
Returns:
the Parameter looked for. Todo: figure out whether this is necessary or not.

deleteParameter

public void deleteParameter(org.bejug.javacareers.jobs.model.AbstractParameter parameter)
{Delete a parameter from the database.}

Specified by:
deleteParameter in interface ParameterDao
Parameters:
parameter - the parameter to delete.

deleteParameter

public void deleteParameter(java.lang.Integer id)
{Delete a paramter by id.}

Specified by:
deleteParameter in interface ParameterDao
Parameters:
id - an integer indicating the id to delete.

store

public void store(org.bejug.javacareers.jobs.model.AbstractParameter parameter)
Saves a parameter to the database.

Specified by:
store in interface ParameterDao
Parameters:
parameter - the parameter to update/insert.


Copyright © 2005-2006 BeJUG. All Rights Reserved.