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

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

@Transactional(propagation=MANDATORY)
public class HibernateUserDAO
extends GenericHibernateDAO<User,java.lang.Long>
implements UserDAO

The Class HibernateUserDAO.


Field Summary
Modifier and Type Field and Description
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
Constructor and Description
HibernateUserDAO()
          Instantiates a new hibernate user dao.
 
Method Summary
Modifier and Type Method and Description
 User findByUsername(java.lang.String username)
          Find by username.
 
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

HibernateUserDAO

public HibernateUserDAO()
Instantiates a new hibernate user dao.

Method Detail

findByUsername

@Transactional(readOnly=true)
public User findByUsername(java.lang.String username)
                    throws org.springframework.dao.DataAccessException
Description copied from interface: UserDAO
Find by username.

Specified by:
findByUsername in interface UserDAO
Parameters:
username - the username
Returns:
the user
Throws:
org.springframework.dao.DataAccessException - the data access exception


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