org.directdemocracyportal.democracy.service.dao.hibernate
Class HibernatePortalDAO
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.directdemocracyportal.democracy.service.dao.hibernate.GenericHibernateDAO<Portal,java.lang.Long>
org.directdemocracyportal.democracy.service.dao.hibernate.HibernatePortalDAO
- All Implemented Interfaces:
- GenericDAO<Portal,java.lang.Long>, PortalDAO, org.springframework.beans.factory.InitializingBean
@Transactional(propagation=MANDATORY)
public class HibernatePortalDAO
extends GenericHibernateDAO<Portal,java.lang.Long>
implements PortalDAO
The Class HibernatePortalDAO.
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 |
HibernatePortalDAO
public HibernatePortalDAO()
- Instantiates a new hibernate portal dao.
findByName
@Transactional(readOnly=true)
public Portal findByName(java.lang.String name)
throws org.springframework.dao.DataAccessException
- Description copied from interface:
PortalDAO
- Find by name.
- Specified by:
findByName
in interface PortalDAO
- Parameters:
name
- the name
- Returns:
- the portal
- Throws:
org.springframework.dao.DataAccessException
- the data access exception
findGovernmentPortal
public GovernmentPortal findGovernmentPortal(Government government)
- Description copied from interface:
PortalDAO
- Find government portal.
- Specified by:
findGovernmentPortal
in interface PortalDAO
- Parameters:
government
- the government
- Returns:
- the government portal
findNationalByCountry
public Portal findNationalByCountry(Country country)
- Description copied from interface:
PortalDAO
- Find national by country.
- Specified by:
findNationalByCountry
in interface PortalDAO
- Parameters:
country
- the country
- Returns:
- the portal
findRegionalByRegion
public Portal findRegionalByRegion(Region region)
- Description copied from interface:
PortalDAO
- Find regional by region.
- Specified by:
findRegionalByRegion
in interface PortalDAO
- Parameters:
region
- the region
- Returns:
- the portal
Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.