org.in2.simpleBoard.dao.hibernate
Class PersonDaoHibernate

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.appfuse.dao.hibernate.GenericDaoHibernate<Person,java.lang.Long>
              extended by org.in2.simpleBoard.dao.hibernate.PersonDaoHibernate
All Implemented Interfaces:
org.appfuse.dao.GenericDao<Person,java.lang.Long>, PersonDao, org.springframework.beans.factory.InitializingBean

public class PersonDaoHibernate
extends org.appfuse.dao.hibernate.GenericDaoHibernate<Person,java.lang.Long>
implements PersonDao


Field Summary
 
Fields inherited from class org.appfuse.dao.hibernate.GenericDaoHibernate
log
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
PersonDaoHibernate()
           
 
Method Summary
 java.util.List<Person> findByEmail(java.lang.String email)
           
 java.util.List<Person> findByName(java.lang.String name)
           
 java.util.List<Person> findBySurname(java.lang.String surname)
           
 Person findByUserName(java.lang.String userName)
          Find users by his username
 
Methods inherited from class org.appfuse.dao.hibernate.GenericDaoHibernate
exists, get, getAll, remove, 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.appfuse.dao.GenericDao
exists, get, getAll, remove, save
 

Constructor Detail

PersonDaoHibernate

public PersonDaoHibernate()
Method Detail

findByUserName

public Person findByUserName(java.lang.String userName)
                      throws InternalException
Description copied from interface: PersonDao
Find users by his username

Specified by:
findByUserName in interface PersonDao
Parameters:
userName - : username
Returns:
: return a user or null
Throws:
InternalException

findByName

public java.util.List<Person> findByName(java.lang.String name)
Specified by:
findByName in interface PersonDao

findBySurname

public java.util.List<Person> findBySurname(java.lang.String surname)
Specified by:
findBySurname in interface PersonDao

findByEmail

public java.util.List<Person> findByEmail(java.lang.String email)
Specified by:
findByEmail in interface PersonDao


Copyright © 2007. All Rights Reserved.