org.broadleafcommerce.profile.core.dao
Class RoleDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.profile.core.dao.RoleDaoImpl
All Implemented Interfaces:
RoleDao

@Repository(value="blRoleDao")
public class RoleDaoImpl
extends Object
implements RoleDao


Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
 
Constructor Summary
RoleDaoImpl()
           
 
Method Summary
 void addRoleToCustomer(CustomerRole customerRole)
           
 Address readAddressById(Long id)
           
 List<CustomerRole> readCustomerRolesByCustomerId(Long customerId)
           
 Role readRoleByName(String name)
           
 
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

RoleDaoImpl

public RoleDaoImpl()
Method Detail

readAddressById

public Address readAddressById(Long id)

readCustomerRolesByCustomerId

public List<CustomerRole> readCustomerRolesByCustomerId(Long customerId)
Specified by:
readCustomerRolesByCustomerId in interface RoleDao

readRoleByName

public Role readRoleByName(String name)
Specified by:
readRoleByName in interface RoleDao

addRoleToCustomer

public void addRoleToCustomer(CustomerRole customerRole)
Specified by:
addRoleToCustomer in interface RoleDao


Copyright © 2013. All Rights Reserved.