Interface CustomerDAO

All Superinterfaces:
DAOInterface
All Known Implementing Classes:
CustomerDAOHibernate

public interface CustomerDAO extends DAOInterface
Interface for a DAO to manage the sscCustomer table of the database.
Author:
David Tobey
  • Method Details

    • getCustomer

      Customer getCustomer()
    • setCustomer

      void setCustomer(Customer customer)
    • getUserNameCount

      int getUserNameCount() throws Exception
      Throws:
      Exception
    • getUserNameCount

      int getUserNameCount(boolean commit) throws Exception
      Throws:
      Exception
    • insertCustomer

      void insertCustomer() throws Exception
      Throws:
      Exception
    • insertCustomer

      void insertCustomer(boolean commit) throws Exception
      Throws:
      Exception
    • updateCustomer

      void updateCustomer() throws Exception
      Throws:
      Exception
    • updateCustomer

      void updateCustomer(boolean commit) throws Exception
      Throws:
      Exception
    • updateCustomer

      void updateCustomer(boolean commit, boolean forcePassword) throws Exception
      Throws:
      Exception
    • loadFromUserName

      void loadFromUserName() throws Exception
      Assuming the userName property has been set, queries the database for a customer record that matches.
      Throws:
      Exception
    • loadFromUserNameAndPassword

      void loadFromUserNameAndPassword() throws Exception
      Assuming the userName and password properties have been set, queries the database for a customer record that matches.
      Throws:
      Exception
    • loadFromAutoLoginToken

      void loadFromAutoLoginToken() throws Exception
      Assuming the autoLoginToken has been set, queries the database for a customer record that matches.
      Throws:
      Exception
    • loadAddressCollection

      Collection loadAddressCollection() throws Exception
      Populate a collection of CustomerAddress objects, one for each of the addresses associated with this customer.
      Throws:
      Exception
    • loadOrderHistory

      Collection loadOrderHistory() throws Exception
      Populate a collection of Order objects, one for each order in this customer's order history.
      Throws:
      Exception
    • loadDownloadFiles

      Collection loadDownloadFiles() throws Exception
      Populate a collection of Maps for each file available for the customer to download.
      Throws:
      Exception
    • loadSavedCarts

      Collection loadSavedCarts() throws Exception
      Return a collection of Order objects, one for each cart that this customer has saved (identified by having a status of "Saved").
      Throws:
      Exception
    • loadCustomerFromID

      void loadCustomerFromID() throws Exception
      Throws:
      Exception
    • deleteCustomer

      void deleteCustomer() throws Exception
      Throws:
      Exception
    • deleteCustomer

      void deleteCustomer(boolean commit) throws Exception
      Throws:
      Exception
    • loadCustomerWishLists

      Collection loadCustomerWishLists() throws Exception
      Throws:
      Exception
    • loadCustomerByPasswordToken

      void loadCustomerByPasswordToken() throws Exception
      Throws:
      Exception