org.bejug.javacareers.jobs.dao
Interface RegionDao

All Known Implementing Classes:
RegionDaoHibernateImpl

public interface RegionDao

Version:
$Revision: 1.1 $ - $Date: 2005/08/26 07:58:30 $
Author:
Sven Schauwvliege (Last modified by $Author: ge0ffrey $)

Method Summary
 void deleteRegion(java.lang.Integer id)
          Delete the given region by id.
 void deleteRegion(org.bejug.javacareers.jobs.model.Region region)
          Delete the given region.
 java.util.List getCountries()
          Get all regions.
 org.bejug.javacareers.jobs.model.Region getRegion(java.lang.Integer id)
          find the given region by id.
 org.bejug.javacareers.jobs.model.Region getRegionByName(java.lang.String region)
           
 void store(org.bejug.javacareers.jobs.model.Region region)
          Add a new region.
 

Method Detail

store

public void store(org.bejug.javacareers.jobs.model.Region region)
           throws org.springframework.dao.DataAccessException
Add a new region.

Parameters:
region - the new region.
Throws:
org.springframework.dao.DataAccessException - thrown when something goes wrong when getting

getCountries

public java.util.List getCountries()
                            throws org.springframework.dao.DataAccessException
Get all regions.

Returns:
a list of regions.
Throws:
org.springframework.dao.DataAccessException - thrown when something failes will accessing the backend.

deleteRegion

public void deleteRegion(org.bejug.javacareers.jobs.model.Region region)
                  throws org.springframework.dao.DataAccessException
Delete the given region.

Parameters:
region - The region to be removed.
Throws:
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when getting

deleteRegion

public void deleteRegion(java.lang.Integer id)
                  throws org.springframework.dao.DataAccessException
Delete the given region by id.

Parameters:
id - The region id.
Throws:
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when getting

getRegion

public org.bejug.javacareers.jobs.model.Region getRegion(java.lang.Integer id)
                                                  throws org.springframework.dao.DataAccessException
find the given region by id.

Parameters:
id - The regionid.
Returns:
the found region.
Throws:
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when getting

getRegionByName

public org.bejug.javacareers.jobs.model.Region getRegionByName(java.lang.String region)
Parameters:
region - a String indicating the region to get.
Returns:
the region.


Copyright © 2005-2006 BeJUG. All Rights Reserved.