public interface CustomerDao
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) |
Customer readCustomerByUsername(String username)
username
- Customer readCustomerByUsername(String username, Boolean cacheable)
username
- cacheable
- List<Customer> readCustomersByUsername(String username)
username
- List<Customer> readCustomersByUsername(String username, Boolean cacheable)
username
- cacheable
- Customer readCustomerByEmail(String emailAddress)
emailAddress
- List<Customer> readCustomersByEmail(String emailAddress)
emailAddress
- Customer create()
void delete(Customer customer)
customer
- the customer entity to removeCopyright © 2017. All rights reserved.