org.directdemocracyportal.democracy.service.dao
Interface PoliticalPartyDAO

Package class diagram package PoliticalPartyDAO
All Superinterfaces:
GenericDAO<PoliticalParty,java.lang.Long>
All Known Implementing Classes:
HibernatePoliticalPartyDAO

public interface PoliticalPartyDAO
extends GenericDAO<PoliticalParty,java.lang.Long>

The Interface PoliticalPartyDAO.


Method Summary
Modifier and Type Method and Description
 PoliticalParty findByName(java.lang.String name)
          Find by name.
 PoliticalParty findByShortCode(java.lang.String name)
          Find by short code.
 java.util.List<OnlinePoliticalParty> getAllOnline()
          Gets the all online.
 
Methods inherited from interface org.directdemocracyportal.democracy.service.dao.GenericDAO
delete, getAll, load, save
 

Method Detail

findByName

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

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

findByShortCode

PoliticalParty findByShortCode(java.lang.String name)
                               throws org.springframework.dao.DataAccessException
Find by short code.

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

getAllOnline

java.util.List<OnlinePoliticalParty> getAllOnline()
                                                  throws org.springframework.dao.DataAccessException
Gets the all online.

Returns:
the all online
Throws:
org.springframework.dao.DataAccessException - the data access exception


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