|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CustomerDAO
Interface for a DAO to manage the sscCustomer
table of the
database.
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 |
---|
Customer getCustomer()
void setCustomer(Customer customer)
int getUserNameCount() throws java.lang.Exception
java.lang.Exception
int getUserNameCount(boolean commit) throws java.lang.Exception
java.lang.Exception
void insertCustomer() throws java.lang.Exception
java.lang.Exception
void insertCustomer(boolean commit) throws java.lang.Exception
java.lang.Exception
void updateCustomer() throws java.lang.Exception
java.lang.Exception
void updateCustomer(boolean commit) throws java.lang.Exception
java.lang.Exception
void updateCustomer(boolean commit, boolean forcePassword) throws java.lang.Exception
java.lang.Exception
void loadFromUserName() throws java.lang.Exception
java.lang.Exception
void loadFromUserNameAndPassword() throws java.lang.Exception
java.lang.Exception
void loadFromAutoLoginToken() throws java.lang.Exception
java.lang.Exception
java.util.Collection loadAddressCollection() throws java.lang.Exception
java.lang.Exception
java.util.Collection loadOrderHistory() throws java.lang.Exception
java.lang.Exception
java.util.Collection loadDownloadFiles() throws java.lang.Exception
java.lang.Exception
java.util.Collection loadSavedCarts() throws java.lang.Exception
java.lang.Exception
void loadCustomerFromID() throws java.lang.Exception
java.lang.Exception
void deleteCustomer() throws java.lang.Exception
java.lang.Exception
void deleteCustomer(boolean commit) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |