|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CountryDaoGeneric<T extends Country>
Performs commonly requested operations on Country objects
| Method Summary | |
|---|---|
Country |
findByCode(String code)
retrieves a Country using a standard ISO code, or returns null if a Country with that code is not found |
Country |
findByName(String code)
attempts to find a Country with the name provided TODO: this method needs to be internationalized |
Map<String,Country> |
loadAll()
Returns a map of all Countries in the system, keyed by ISO code; the keys of the map may be ordered by the implementation (for example according to Country.getSortOrder()) |
| Methods inherited from interface org.janux.bus.persistence.GenericDaoWrite |
|---|
attachClean, clear, delete, evict, flush, merge, refresh, save, saveOrUpdate, update |
| Methods inherited from interface org.janux.bus.persistence.GenericDaoReadOnly |
|---|
count, findByCriteria, load |
| Method Detail |
|---|
Map<String,Country> loadAll()
Country findByCode(String code)
null if a Country with that code is not found
Country findByName(String code)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||