Interface CustomerDAO
- All Superinterfaces:
DAOInterface
- All Known Implementing Classes:
CustomerDAOHibernate
Interface for a DAO to manage the
sscCustomer
table of the
database.- Author:
- David Tobey
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
deleteCustomer
(boolean commit) int
int
getUserNameCount
(boolean commit) void
void
insertCustomer
(boolean commit) Populate a collection of CustomerAddress objects, one for each of the addresses associated with this customer.void
void
Populate a collection of Maps for each file available for the customer to download.void
Assuming the autoLoginToken has been set, queries the database for a customer record that matches.void
Assuming the userName property has been set, queries the database for a customer record that matches.void
Assuming the userName and password properties have been set, queries the database for a customer record that matches.Populate a collection of Order objects, one for each order in this customer's order history.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
void
updateCustomer
(boolean commit) void
updateCustomer
(boolean commit, boolean forcePassword) Methods inherited from interface com.softslate.commerce.daos.core.DAOInterface
deleteObject, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getInjector, getSettings, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setInjector, setSettings, setSqlMap, updateObject
-
Method Details
-
getCustomer
Customer getCustomer() -
setCustomer
-
getUserNameCount
- Throws:
Exception
-
getUserNameCount
- Throws:
Exception
-
insertCustomer
- Throws:
Exception
-
insertCustomer
- Throws:
Exception
-
updateCustomer
- Throws:
Exception
-
updateCustomer
- Throws:
Exception
-
updateCustomer
- Throws:
Exception
-
loadFromUserName
Assuming the userName property has been set, queries the database for a customer record that matches.- Throws:
Exception
-
loadFromUserNameAndPassword
Assuming the userName and password properties have been set, queries the database for a customer record that matches.- Throws:
Exception
-
loadFromAutoLoginToken
Assuming the autoLoginToken has been set, queries the database for a customer record that matches.- Throws:
Exception
-
loadAddressCollection
Populate a collection of CustomerAddress objects, one for each of the addresses associated with this customer.- Throws:
Exception
-
loadOrderHistory
Populate a collection of Order objects, one for each order in this customer's order history.- Throws:
Exception
-
loadDownloadFiles
Populate a collection of Maps for each file available for the customer to download.- Throws:
Exception
-
loadSavedCarts
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
- Throws:
Exception
-
deleteCustomer
- Throws:
Exception
-
deleteCustomer
- Throws:
Exception
-
loadCustomerWishLists
- Throws:
Exception
-
loadCustomerByPasswordToken
- Throws:
Exception
-