org.in2.simpleBoard.dao.hibernate
Class PersonDaoHibernate
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.appfuse.dao.hibernate.GenericDaoHibernate<Person,java.lang.Long>
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
Fields inherited from class org.appfuse.dao.hibernate.GenericDaoHibernate |
log |
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
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 |
PersonDaoHibernate
public PersonDaoHibernate()
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.