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 java.lang.Object
implements RoleDao


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

queryCacheableKey

protected java.lang.String queryCacheableKey
Constructor Detail

RoleDaoImpl

public RoleDaoImpl()
Method Detail

readAddressById

public Address readAddressById(java.lang.Long id)

readCustomerRolesByCustomerId

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

readRoleByName

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

addRoleToCustomer

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

getQueryCacheableKey

public java.lang.String getQueryCacheableKey()

setQueryCacheableKey

public void setQueryCacheableKey(java.lang.String queryCacheableKey)


Copyright © 2011. All Rights Reserved.