|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDaoCountries
A DAO for countries specification.
Field Summary | |
---|---|
static String |
TABLE
|
Method Summary | |
---|---|
void |
create(Country country)
Create the country. |
Country |
createCountry()
Create a new Country . |
boolean |
delete(Country country)
Delete a country. |
boolean |
exist(Country country)
Indicate if the country exist in the Dao. |
Collection<Country> |
getCountries()
Return all the countries. |
Country |
getCountry(int id)
Return the country of the specified id. |
Country |
getCountry(String title)
Return the country of the specified title. |
void |
save(Country country)
Save the country on the database. |
Methods inherited from interface org.jtheque.core.managers.persistence.able.JThequeDao |
---|
addDataListener, clearAll, removeDataListener |
Field Detail |
---|
static final String TABLE
Method Detail |
---|
Collection<Country> getCountries()
Collection
containing all the countries.Country getCountry(int id)
id
- The searched id.
null
if there is no country with this id.Country getCountry(String title)
title
- The searched title.
null
if there is no country with this title.boolean exist(Country country)
country
- The country we must test if it's exist.
true
if the country exist else false
.boolean delete(Country country)
country
- The country to delete
true
if the object has been deleted else false
.void create(Country country)
country
- The country to createvoid save(Country country)
country
- The country to save.Country createCountry()
Country
.
Country
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |