Class CustomerDAOHibernate
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
com.softslate.commerce.daos.customer.CustomerDAOHibernate
- All Implemented Interfaces:
DAOInterface,CustomerDAO
Generic DAO to manage the
sscCustomer table of the database.- Author:
- David Tobey
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeleteCustomer(boolean commit) intintgetUserNameCount(boolean commit) voidvoidinsertCustomer(boolean commit) Populate a collection ofCustomerAddressobjects, one for each of the addresses associated with this customer.voidvoidPopulate a collection ofCustomerWishListobjects, one for each of the wish lists associated with this customer.Populate a collection of Maps for each file available for the customer to download.voidAssuming the autoLoginToken has been set, queries the database for a customer record that matches.voidAssuming the userName property has been set, queries the database for a customer record that matches.voidAssuming the userName and password properties have been set, queries the database for a customer record that matches.Populate a collection ofOrderobjects, one for each order in this customer's order history.Return a collection ofOrderobjects, one for each cart this customer has saved.voidsetCustomer(Customer customer) voidvoidupdateCustomer(boolean commit) voidupdateCustomer(boolean commit, boolean forcePassword) Methods inherited from class com.softslate.commerce.daos.core.BaseDAO
deleteObject, doWorkToSetConnection, editAssignment, evictCache, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getImportExportSQL, getImportExportSqlMap, getInjector, getNamedQuery, getSettings, getSQL, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setImportExportSqlMap, setInjector, setSettings, setSqlMap, updateObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Field Details
-
log
static org.apache.commons.logging.Log log -
customer
-
-
Constructor Details
-
CustomerDAOHibernate
public CustomerDAOHibernate()
-
-
Method Details
-
getCustomer
- Specified by:
getCustomerin interfaceCustomerDAO
-
setCustomer
- Specified by:
setCustomerin interfaceCustomerDAO
-
loadCustomerFromID
- Specified by:
loadCustomerFromIDin interfaceCustomerDAO- Throws:
Exception
-
loadPasswordByID
- Throws:
DataAccessException
-
getUserNameCount
- Specified by:
getUserNameCountin interfaceCustomerDAO- Throws:
Exception
-
getUserNameCount
- Specified by:
getUserNameCountin interfaceCustomerDAO- Throws:
Exception
-
insertCustomer
- Specified by:
insertCustomerin interfaceCustomerDAO- Throws:
DataAccessException
-
insertCustomer
- Specified by:
insertCustomerin interfaceCustomerDAO- Throws:
DataAccessException
-
updateCustomer
- Specified by:
updateCustomerin interfaceCustomerDAO- Throws:
DataAccessException
-
updateCustomer
- Specified by:
updateCustomerin interfaceCustomerDAO- Throws:
DataAccessException
-
updateCustomer
- Specified by:
updateCustomerin interfaceCustomerDAO- Throws:
DataAccessException
-
loadFromUserName
Assuming the userName property has been set, queries the database for a customer record that matches.- Specified by:
loadFromUserNamein interfaceCustomerDAO- Throws:
Exception
-
loadFromUserNameAndPassword
Assuming the userName and password properties have been set, queries the database for a customer record that matches.- Specified by:
loadFromUserNameAndPasswordin interfaceCustomerDAO- Throws:
Exception
-
loadFromAutoLoginToken
Assuming the autoLoginToken has been set, queries the database for a customer record that matches.- Specified by:
loadFromAutoLoginTokenin interfaceCustomerDAO- Throws:
Exception
-
loadAddressCollection
Populate a collection ofCustomerAddressobjects, one for each of the addresses associated with this customer.- Specified by:
loadAddressCollectionin interfaceCustomerDAO- Throws:
Exception
-
loadCustomerWishLists
Populate a collection ofCustomerWishListobjects, one for each of the wish lists associated with this customer.- Specified by:
loadCustomerWishListsin interfaceCustomerDAO- Throws:
Exception
-
loadOrderHistory
Populate a collection ofOrderobjects, one for each order in this customer's order history.- Specified by:
loadOrderHistoryin interfaceCustomerDAO- Throws:
Exception
-
loadDownloadFiles
Description copied from interface:CustomerDAOPopulate a collection of Maps for each file available for the customer to download.- Specified by:
loadDownloadFilesin interfaceCustomerDAO- Throws:
Exception
-
loadSavedCarts
Return a collection ofOrderobjects, one for each cart this customer has saved.- Specified by:
loadSavedCartsin interfaceCustomerDAO- Throws:
Exception
-
deleteCustomer
- Specified by:
deleteCustomerin interfaceCustomerDAO- Throws:
DataAccessException
-
deleteCustomer
- Specified by:
deleteCustomerin interfaceCustomerDAO- Throws:
DataAccessException
-
loadCustomerByPasswordToken
- Specified by:
loadCustomerByPasswordTokenin interfaceCustomerDAO- Throws:
Exception
-