public interface CustomerDao
| 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) |
Customer readCustomerById(java.lang.Long id)
Customer readCustomerByUsername(java.lang.String username)
username - java.util.List<Customer> readCustomersByUsername(java.lang.String username)
username - Customer readCustomerByEmail(java.lang.String emailAddress)
emailAddress - java.util.List<Customer> readCustomersByEmail(java.lang.String emailAddress)
emailAddress - Customer create()
Copyright © 2018. All Rights Reserved.