com.softslate.commerce.daos.customer
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 Summary
 void deleteCustomer()
           
 void deleteCustomer(boolean commit)
           
 Customer getCustomer()
           
 int getUserNameCount()
           
 int getUserNameCount(boolean commit)
           
 void insertCustomer()
           
 void insertCustomer(boolean commit)
           
 java.util.Collection loadAddressCollection()
          Populate a collection of CustomerAddress objects, one for each of the addresses associated with this customer.
 void loadCustomerFromID()
           
 java.util.Collection loadDownloadFiles()
          Populate a collection of Maps for each file available for the customer to download.
 void loadFromAutoLoginToken()
          Assuming the autoLoginToken has been set, queries the database for a customer record that matches.
 void loadFromUserName()
          Assuming the userName property has been set, queries the database for a customer record that matches.
 void loadFromUserNameAndPassword()
          Assuming the userName and password properties have been set, queries the database for a customer record that matches.
 java.util.Collection loadOrderHistory()
          Populate a collection of Order objects, one for each order in this customer's order history.
 java.util.Collection loadSavedCarts()
          Return a collection of Order objects, one for each cart that this customer has saved (identified by having a status of "Saved").
 void setCustomer(Customer customer)
           
 void updateCustomer()
           
 void updateCustomer(boolean commit)
           
 void updateCustomer(boolean commit, boolean forcePassword)
           
 
Methods inherited from interface com.softslate.commerce.daos.core.DAOInterface
deleteObject, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getSettings, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setSettings, setSqlMap, updateObject
 

Method Detail

getCustomer

Customer getCustomer()

setCustomer

void setCustomer(Customer customer)

getUserNameCount

int getUserNameCount()
                     throws java.lang.Exception
Throws:
java.lang.Exception

getUserNameCount

int getUserNameCount(boolean commit)
                     throws java.lang.Exception
Throws:
java.lang.Exception

insertCustomer

void insertCustomer()
                    throws java.lang.Exception
Throws:
java.lang.Exception

insertCustomer

void insertCustomer(boolean commit)
                    throws java.lang.Exception
Throws:
java.lang.Exception

updateCustomer

void updateCustomer()
                    throws java.lang.Exception
Throws:
java.lang.Exception

updateCustomer

void updateCustomer(boolean commit)
                    throws java.lang.Exception
Throws:
java.lang.Exception

updateCustomer

void updateCustomer(boolean commit,
                    boolean forcePassword)
                    throws java.lang.Exception
Throws:
java.lang.Exception

loadFromUserName

void loadFromUserName()
                      throws java.lang.Exception
Assuming the userName property has been set, queries the database for a customer record that matches.

Throws:
java.lang.Exception

loadFromUserNameAndPassword

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

Throws:
java.lang.Exception

loadFromAutoLoginToken

void loadFromAutoLoginToken()
                            throws java.lang.Exception
Assuming the autoLoginToken has been set, queries the database for a customer record that matches.

Throws:
java.lang.Exception

loadAddressCollection

java.util.Collection loadAddressCollection()
                                           throws java.lang.Exception
Populate a collection of CustomerAddress objects, one for each of the addresses associated with this customer.

Throws:
java.lang.Exception

loadOrderHistory

java.util.Collection loadOrderHistory()
                                      throws java.lang.Exception
Populate a collection of Order objects, one for each order in this customer's order history.

Throws:
java.lang.Exception

loadDownloadFiles

java.util.Collection loadDownloadFiles()
                                       throws java.lang.Exception
Populate a collection of Maps for each file available for the customer to download.

Throws:
java.lang.Exception

loadSavedCarts

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

Throws:
java.lang.Exception

loadCustomerFromID

void loadCustomerFromID()
                        throws java.lang.Exception
Throws:
java.lang.Exception

deleteCustomer

void deleteCustomer()
                    throws java.lang.Exception
Throws:
java.lang.Exception

deleteCustomer

void deleteCustomer(boolean commit)
                    throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © SoftSlate, LLC 2003–2005