org.directdemocracyportal.democracy.service.dao.hibernate
Class HibernatePoliticalPartyDAO
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.directdemocracyportal.democracy.service.dao.hibernate.GenericHibernateDAO<PoliticalParty,java.lang.Long>
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.
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
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 |
HibernatePoliticalPartyDAO
public HibernatePoliticalPartyDAO()
- Instantiates a new hibernate political party dao.
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.