@Repository(value="blCustomerDao") public class CustomerDaoImpl extends java.lang.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() |
Customer |
readCustomerByEmail(java.lang.String emailAddress)
Returns the first customer that matches the passed in email.
|
Customer |
readCustomerById(java.lang.Long id) |
Customer |
readCustomerByUsername(java.lang.String username)
Returns the first customer that match the passed in username.
|
java.util.List<Customer> |
readCustomersByEmail(java.lang.String emailAddress)
Returns all customers that matches the passed in email.
|
java.util.List<Customer> |
readCustomersByUsername(java.lang.String username)
Returns all customers that match the passed in username.
|
Customer |
save(Customer customer) |
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
public Customer readCustomerById(java.lang.Long id)
readCustomerById in interface CustomerDaopublic Customer readCustomerByUsername(java.lang.String username)
CustomerDaoreadCustomerByUsername in interface CustomerDaopublic java.util.List<Customer> readCustomersByUsername(java.lang.String username)
CustomerDaoreadCustomersByUsername in interface CustomerDaopublic Customer readCustomerByEmail(java.lang.String emailAddress)
CustomerDaoreadCustomerByEmail in interface CustomerDaopublic java.util.List<Customer> readCustomersByEmail(java.lang.String emailAddress)
CustomerDaoreadCustomersByEmail in interface CustomerDaopublic Customer save(Customer customer)
save in interface CustomerDaopublic Customer create()
create in interface CustomerDaoCopyright © 2018. All Rights Reserved.