|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| 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. |
| Method Detail |
public void store(org.bejug.javacareers.jobs.model.Country country)
throws org.springframework.dao.DataAccessException
country - the new country.
org.springframework.dao.DataAccessException - thrown when something goes wrong when getting
public java.util.List getCountries()
throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - thrown when hibernate throws an exception.
public void deleteCountry(org.bejug.javacareers.jobs.model.Country country)
throws org.springframework.dao.DataAccessException
country - 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
id - 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
id - The countryid.
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when gettingpublic org.bejug.javacareers.jobs.model.Country getCountryByName(java.lang.String country)
country - a String indicating the country.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||