biz.janux.geography
Interface CountryDaoGeneric<T extends Country>

All Superinterfaces:
GenericDaoReadOnly<T,Integer,org.janux.bus.search.SearchCriteria>, GenericDaoWrite<T,Integer>

public interface CountryDaoGeneric<T extends Country>
extends GenericDaoWrite<T,Integer>, GenericDaoReadOnly<T,Integer,org.janux.bus.search.SearchCriteria>

Performs commonly requested operations on Country objects

Since:
0.4
Author:
Philippe Paravicini

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

loadAll

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())


findByCode

Country findByCode(String code)
retrieves a Country using a standard ISO code, or returns null if a Country with that code is not found


findByName

Country findByName(String code)
attempts to find a Country with the name provided TODO: this method needs to be internationalized



Copyright © 2005-2013 Janux. All Rights Reserved.