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