|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.bejug.javacareers.jobs.dao.hibernate.RegionDaoHibernateImpl
Region DAO Hibernate DAO implementation.
| Field Summary |
| Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
| Constructor Summary | |
RegionDaoHibernateImpl()
|
|
| 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. |
| 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 |
public RegionDaoHibernateImpl()
| Method Detail |
public void store(org.bejug.javacareers.jobs.model.Region region)
throws org.springframework.dao.DataAccessException
store in interface RegionDaoregion - the new region.
org.springframework.dao.DataAccessException - thrown when something goes wrong when getting
public java.util.List getCountries()
throws org.springframework.dao.DataAccessException
getCountries in interface RegionDaoorg.springframework.dao.DataAccessException - thrown when something failes will accessing
the backend.
public void deleteRegion(org.bejug.javacareers.jobs.model.Region region)
throws org.springframework.dao.DataAccessException
deleteRegion in interface RegionDaoregion - The region to be removed.
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when getting
public void deleteRegion(java.lang.Integer id)
throws org.springframework.dao.DataAccessException
deleteRegion in interface RegionDaoid - The region id.
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when getting
public org.bejug.javacareers.jobs.model.Region getRegion(java.lang.Integer id)
throws org.springframework.dao.DataAccessException
getRegion in interface RegionDaoid - The regionid.
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when gettingpublic org.bejug.javacareers.jobs.model.Region getRegionByName(java.lang.String region)
getRegionByName in interface RegionDaoregion - a String indicating the region to get.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||