org.in2.simpleBoard.dao
Interface PersonDao

All Superinterfaces:
org.appfuse.dao.GenericDao<Person,java.lang.Long>
All Known Implementing Classes:
PersonDaoHibernate

public interface PersonDao
extends org.appfuse.dao.GenericDao<Person,java.lang.Long>


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 interface org.appfuse.dao.GenericDao
exists, get, getAll, remove, save
 

Method Detail

findByUserName

Person findByUserName(java.lang.String userName)
                      throws InternalException
Find users by his username

Parameters:
userName - : username
Returns:
: return a user or null
Throws:
InternalException

findByName

java.util.List<Person> findByName(java.lang.String name)

findBySurname

java.util.List<Person> findBySurname(java.lang.String surname)

findByEmail

java.util.List<Person> findByEmail(java.lang.String email)


Copyright © 2007. All Rights Reserved.