@Repository(value="blCustomerDao") public class CustomerDaoImpl extends Object implements CustomerDao
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
| Constructor and Description |
|---|
CustomerDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
Customer |
create() |
void |
delete(Customer customer)
Remove a customer from the persistent store
|
Customer |
readCustomerByEmail(String emailAddress)
Returns the first customer that matches the passed in email.
|
Customer |
readCustomerById(Long id) |
Customer |
readCustomerByUsername(String username)
Returns the first customer that match the passed in username, with caching defaulted.
|
Customer |
readCustomerByUsername(String username,
Boolean cacheable)
Returns the first customer that match the passed in username, and caches according to
cacheable.
|
List<Customer> |
readCustomersByEmail(String emailAddress)
Returns all customers that matches the passed in email.
|
List<Customer> |
readCustomersByUsername(String username)
Returns all customers that match the passed in username, with caching defaulted.
|
List<Customer> |
readCustomersByUsername(String username,
Boolean cacheable)
Returns all customers that match the passed in username, and caches according to
cacheable.
|
Customer |
save(Customer customer) |
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
public Customer readCustomerById(Long id)
readCustomerById in interface CustomerDaopublic Customer readCustomerByUsername(String username)
CustomerDaoreadCustomerByUsername in interface CustomerDaopublic Customer readCustomerByUsername(String username, Boolean cacheable)
CustomerDaoreadCustomerByUsername in interface CustomerDaopublic List<Customer> readCustomersByUsername(String username)
CustomerDaoreadCustomersByUsername in interface CustomerDaopublic List<Customer> readCustomersByUsername(String username, Boolean cacheable)
CustomerDaoreadCustomersByUsername in interface CustomerDaopublic Customer readCustomerByEmail(String emailAddress)
CustomerDaoreadCustomerByEmail in interface CustomerDaopublic List<Customer> readCustomersByEmail(String emailAddress)
CustomerDaoreadCustomersByEmail in interface CustomerDaopublic Customer save(Customer customer)
save in interface CustomerDaopublic Customer create()
create in interface CustomerDaopublic void delete(Customer customer)
CustomerDaodelete in interface CustomerDaocustomer - the customer entity to removeCopyright © 2015. All Rights Reserved.