|
|||||||||||
| 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.CountryDaoHibernateImpl
Country Hibernate DAO implementation.
| Field Summary |
| Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
| Constructor Summary | |
CountryDaoHibernateImpl()
|
|
| Method Summary | |
void |
deleteCountry(org.bejug.javacareers.jobs.model.Country country)
Delete the given country. |
void |
deleteCountry(java.lang.Integer id)
Delete the given country by id. |
java.util.List |
getCountries()
Get all countrys. |
org.bejug.javacareers.jobs.model.Country |
getCountry(java.lang.Integer id)
find the given country by id. |
org.bejug.javacareers.jobs.model.Country |
getCountryByName(java.lang.String country)
|
void |
store(org.bejug.javacareers.jobs.model.Country country)
Add a new country. |
| 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 CountryDaoHibernateImpl()
| Method Detail |
public void store(org.bejug.javacareers.jobs.model.Country country)
throws org.springframework.dao.DataAccessException
store in interface CountryDaocountry - the new country.
org.springframework.dao.DataAccessException - thrown when something goes wrong when getting
public java.util.List getCountries()
throws org.springframework.dao.DataAccessException
getCountries in interface CountryDaoorg.springframework.dao.DataAccessException - thrown when hibernate throws an exception.
public void deleteCountry(org.bejug.javacareers.jobs.model.Country country)
throws org.springframework.dao.DataAccessException
deleteCountry in interface CountryDaocountry - The country to be removed.
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when getting
public void deleteCountry(java.lang.Integer id)
throws org.springframework.dao.DataAccessException
deleteCountry in interface CountryDaoid - The country id.
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when getting
public org.bejug.javacareers.jobs.model.Country getCountry(java.lang.Integer id)
throws org.springframework.dao.DataAccessException
getCountry in interface CountryDaoid - The countryid.
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when gettingpublic org.bejug.javacareers.jobs.model.Country getCountryByName(java.lang.String country)
getCountryByName in interface CountryDaocountry - a String indicating the country.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||