org.broadleafcommerce.profile.core.dao
Class UserDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.profile.core.dao.UserDaoImpl
All Implemented Interfaces:
UserDao

@Repository(value="blUserDao")
public class UserDaoImpl
extends Object
implements UserDao


Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
 
Constructor Summary
UserDaoImpl()
           
 
Method Summary
 User readUserByEmail(String emailAddress)
           
 User readUserById(Long id)
           
 User readUserByUsername(String username)
           
 List<UserRole> readUserRolesByUserId(Long userId)
           
 User save(User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

em

protected javax.persistence.EntityManager em

entityConfiguration

protected EntityConfiguration entityConfiguration
Constructor Detail

UserDaoImpl

public UserDaoImpl()
Method Detail

readUserByUsername

public User readUserByUsername(String username)
Specified by:
readUserByUsername in interface UserDao

readUserByEmail

public User readUserByEmail(String emailAddress)
Specified by:
readUserByEmail in interface UserDao

readUserRolesByUserId

public List<UserRole> readUserRolesByUserId(Long userId)
Specified by:
readUserRolesByUserId in interface UserDao

save

public User save(User user)
Specified by:
save in interface UserDao

readUserById

public User readUserById(Long id)
Specified by:
readUserById in interface UserDao


Copyright © 2012. All Rights Reserved.