|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softslate.commerce.daos.core.BaseDAO com.softslate.commerce.daos.customer.CustomerDAOHibernate
public class CustomerDAOHibernate
Generic DAO to manage the sscCustomer
table of the database.
Field Summary | |
---|---|
private Customer |
customer
|
(package private) static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
CustomerDAOHibernate()
|
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 |
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.lang.String |
loadPasswordByID()
|
java.util.Collection |
loadSavedCarts()
Return a collection of Order objects, one for each cart
this customer has saved. |
void |
setCustomer(Customer customer)
|
void |
updateCustomer()
|
void |
updateCustomer(boolean commit)
|
void |
updateCustomer(boolean commit,
boolean forcePassword)
|
Methods inherited from class com.softslate.commerce.daos.core.BaseDAO |
---|
deleteObject, evictCache, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getImportExportSQL, getImportExportSqlMap, getNamedQuery, getSettings, getSQL, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setImportExportSqlMap, setSettings, setSqlMap, updateObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
Field Detail |
---|
static org.apache.commons.logging.Log log
private Customer customer
Constructor Detail |
---|
public CustomerDAOHibernate()
Method Detail |
---|
public Customer getCustomer()
getCustomer
in interface CustomerDAO
public void setCustomer(Customer customer)
setCustomer
in interface CustomerDAO
public void loadCustomerFromID() throws java.lang.Exception
loadCustomerFromID
in interface CustomerDAO
java.lang.Exception
public java.lang.String loadPasswordByID() throws DataAccessException
DataAccessException
public int getUserNameCount() throws java.lang.Exception
getUserNameCount
in interface CustomerDAO
java.lang.Exception
public int getUserNameCount(boolean commit) throws java.lang.Exception
getUserNameCount
in interface CustomerDAO
java.lang.Exception
public void insertCustomer() throws DataAccessException
insertCustomer
in interface CustomerDAO
DataAccessException
public void insertCustomer(boolean commit) throws DataAccessException
insertCustomer
in interface CustomerDAO
DataAccessException
public void updateCustomer() throws DataAccessException
updateCustomer
in interface CustomerDAO
DataAccessException
public void updateCustomer(boolean commit) throws DataAccessException
updateCustomer
in interface CustomerDAO
DataAccessException
public void updateCustomer(boolean commit, boolean forcePassword) throws DataAccessException
updateCustomer
in interface CustomerDAO
DataAccessException
public void loadFromUserName() throws java.lang.Exception
loadFromUserName
in interface CustomerDAO
java.lang.Exception
public void loadFromUserNameAndPassword() throws java.lang.Exception
loadFromUserNameAndPassword
in interface CustomerDAO
java.lang.Exception
public java.util.Collection loadAddressCollection() throws java.lang.Exception
CustomerAddress
objects, one for
each of the addresses associated with this customer.
loadAddressCollection
in interface CustomerDAO
java.lang.Exception
public java.util.Collection loadOrderHistory() throws java.lang.Exception
Order
objects, one for each order
in this customer's order history.
loadOrderHistory
in interface CustomerDAO
java.lang.Exception
public java.util.Collection loadDownloadFiles() throws java.lang.Exception
CustomerDAO
loadDownloadFiles
in interface CustomerDAO
java.lang.Exception
public java.util.Collection loadSavedCarts() throws java.lang.Exception
Order
objects, one for each cart
this customer has saved.
loadSavedCarts
in interface CustomerDAO
java.lang.Exception
public void deleteCustomer() throws DataAccessException
deleteCustomer
in interface CustomerDAO
DataAccessException
public void deleteCustomer(boolean commit) throws DataAccessException
deleteCustomer
in interface CustomerDAO
DataAccessException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |