Interface CustomerDao

All Known Implementing Classes:
CustomerDaoImpl

public interface CustomerDao
  • Method Details

    • readCustomerById

      Customer readCustomerById(Long id)
    • readCustomerByExternalId

      Customer readCustomerByExternalId(String externalId)
    • readCustomersByIds

      List<Customer> readCustomersByIds(List<Long> ids)
    • readBatchCustomers

      List<Customer> readBatchCustomers(int start, int pageSize)
      Reads a batch list of customers from the DB.
      Parameters:
      start -
      pageSize -
      Returns:
    • readBatchCustomersFromLastID

      List<Customer> readBatchCustomersFromLastID(Long lastID, int pageSize)
      Reads a batch of customer using ID as a starting point
      Parameters:
      lastID -
      pageSize -
      Returns:
    • readCustomerByUsername

      Customer readCustomerByUsername(String username)
      Returns the first customer that match the passed in username, with caching defaulted.
      Parameters:
      username -
      Returns:
    • readCustomerByUsername

      Customer readCustomerByUsername(String username, Boolean cacheable)
      Returns the first customer that match the passed in username, and caches according to cacheable.
      Parameters:
      username -
      cacheable -
      Returns:
    • readCustomersByUsername

      List<Customer> readCustomersByUsername(String username)
      Returns all customers that match the passed in username, with caching defaulted.
      Parameters:
      username -
      Returns:
    • readCustomersByUsername

      List<Customer> readCustomersByUsername(String username, Boolean cacheable)
      Returns all customers that match the passed in username, and caches according to cacheable.
      Parameters:
      username -
      cacheable -
      Returns:
    • save

      Customer save(Customer customer)
    • readCustomerByEmail

      Customer readCustomerByEmail(String emailAddress)
      Returns the first customer that matches the passed in email.
      Parameters:
      emailAddress -
      Returns:
    • readCustomersByEmail

      List<Customer> readCustomersByEmail(String emailAddress)
      Returns all customers that matches the passed in email.
      Parameters:
      emailAddress -
      Returns:
    • create

      Customer create()
    • delete

      void delete(Customer customer)
      Remove a customer from the persistent store
      Parameters:
      customer - the customer entity to remove
    • detach

      void detach(Customer customer)
      Detaches the given Customer instance from the entity manager.
      Parameters:
      customer -
    • readNumberOfCustomers

      Long readNumberOfCustomers()
    • refreshCustomer

      void refreshCustomer(Customer customer)