biz.janux.geography
Interface CountryDao

All Superinterfaces:
DataAccessObject

Deprecated. use CountryDaoGeneric

public interface CountryDao
extends DataAccessObject

Performs commonly requested operations on Country objects

Since:
2006-02-17
Version:
$Revision: 1.3 $ - $Date: 2006-07-17 05:18:23 $
Author:
Philippe Paravicini

Method Summary
 Country findByCode(String code)
          Deprecated. retrieves a Country using a standard ISO code, or returns null if a Country with that code is not found
 Country findByName(String code)
          Deprecated. attempts to find a Country with the name provided TODO: this method needs to be internationalized
 Country load(Integer id)
          Deprecated. loads a Country object from persistence using its id
 Map<String,Country> loadAll()
          Deprecated. 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.DataAccessObject
delete, merge, refresh, save, saveOrUpdate, update
 

Method Detail

load

Country load(Integer id)
             throws EntityNotFoundException
Deprecated. 
loads a Country object from persistence using its id

Throws:
EntityNotFoundException

loadAll

Map<String,Country> loadAll()
Deprecated. 
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)
Deprecated. 
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)
Deprecated. 
attempts to find a Country with the name provided TODO: this method needs to be internationalized



Copyright © 2005-2013 Janux. All Rights Reserved.