org.directdemocracyportal.democracy.service.dao
Interface CountryDAO

Package class diagram package CountryDAO
All Superinterfaces:
GenericDAO<Country,java.lang.Long>
All Known Implementing Classes:
HibernateCountryDAO

public interface CountryDAO
extends GenericDAO<Country,java.lang.Long>

The Interface CountryDAO.


Method Summary
Modifier and Type Method and Description
 Country findByName(java.lang.String name)
          Find by name.
 Region findRegionByName(java.lang.String name)
          Find region by name.
 Region saveRegion(Region region)
          Save region.
 
Methods inherited from interface org.directdemocracyportal.democracy.service.dao.GenericDAO
delete, getAll, load, save
 

Method Detail

findByName

Country findByName(java.lang.String name)
                   throws org.springframework.dao.DataAccessException
Find by name.

Parameters:
name - the name
Returns:
the country
Throws:
org.springframework.dao.DataAccessException - the data access exception

findRegionByName

Region findRegionByName(java.lang.String name)
                        throws org.springframework.dao.DataAccessException
Find region by name.

Parameters:
name - the name
Returns:
the region
Throws:
org.springframework.dao.DataAccessException - the data access exception

saveRegion

Region saveRegion(Region region)
Save region.

Parameters:
region - the region
Returns:
the region


Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.