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

Package class diagram package HibernateAgentDAO
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<Agent,java.lang.Long>
              extended by org.directdemocracyportal.democracy.service.dao.hibernate.HibernateAgentDAO
All Implemented Interfaces:
AgentDAO, GenericDAO<Agent,java.lang.Long>, org.springframework.beans.factory.InitializingBean

@Transactional(propagation=MANDATORY)
public class HibernateAgentDAO
extends GenericHibernateDAO<Agent,java.lang.Long>
implements AgentDAO

The Class HibernateAgentDAO.


Field Summary
Modifier and Type Field and Description
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
Constructor and Description
HibernateAgentDAO()
          Instantiates a new hibernate agent dao.
 
Method Summary
Modifier and Type Method and Description
 Agent findByName(java.lang.String name)
          Find by name.
 
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

HibernateAgentDAO

public HibernateAgentDAO()
Instantiates a new hibernate agent dao.

Method Detail

findByName

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

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


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