org.directdemocracyportal.democracy.service.dao.hibernate
Class HibernatePoliticalPartyDAO

Package class diagram package HibernatePoliticalPartyDAO
java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.directdemocracyportal.democracy.service.dao.hibernate.GenericHibernateDAO<PoliticalParty,java.lang.Long>
              extended by org.directdemocracyportal.democracy.service.dao.hibernate.HibernatePoliticalPartyDAO
All Implemented Interfaces:
GenericDAO<PoliticalParty,java.lang.Long>, PoliticalPartyDAO, org.springframework.beans.factory.InitializingBean

@Transactional(propagation=MANDATORY)
public class HibernatePoliticalPartyDAO
extends GenericHibernateDAO<PoliticalParty,java.lang.Long>
implements PoliticalPartyDAO

The Class HibernatePoliticalPartyDAO.


Field Summary
Modifier and Type Field and Description
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
Constructor and Description
HibernatePoliticalPartyDAO()
          Instantiates a new hibernate political party dao.
 
Method Summary
Modifier and Type Method and Description
 PoliticalParty findByName(java.lang.String name)
          Find by name.
 PoliticalParty findByShortCode(java.lang.String shortCode)
          Find by short code.
 java.util.List<OnlinePoliticalParty> getAllOnline()
          Gets the all online.
 
Methods inherited from class org.directdemocracyportal.democracy.service.dao.hibernate.GenericHibernateDAO
delete, getAll, load, save
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.directdemocracyportal.democracy.service.dao.GenericDAO
delete, getAll, load, save
 

Constructor Detail

HibernatePoliticalPartyDAO

public HibernatePoliticalPartyDAO()
Instantiates a new hibernate political party dao.

Method Detail

findByName

@Transactional(readOnly=true)
public PoliticalParty findByName(java.lang.String name)
                          throws org.springframework.dao.DataAccessException
Description copied from interface: PoliticalPartyDAO
Find by name.

Specified by:
findByName in interface PoliticalPartyDAO
Parameters:
name - the name
Returns:
the political party
Throws:
org.springframework.dao.DataAccessException - the data access exception

findByShortCode

public PoliticalParty findByShortCode(java.lang.String shortCode)
Description copied from interface: PoliticalPartyDAO
Find by short code.

Specified by:
findByShortCode in interface PoliticalPartyDAO
Parameters:
shortCode - the name
Returns:
the political party

getAllOnline

public java.util.List<OnlinePoliticalParty> getAllOnline()
                                                  throws org.springframework.dao.DataAccessException
Description copied from interface: PoliticalPartyDAO
Gets the all online.

Specified by:
getAllOnline in interface PoliticalPartyDAO
Returns:
the all online
Throws:
org.springframework.dao.DataAccessException - the data access exception


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