com.softslate.commerce.daos.customer
Class CustomerGatewayDAOHibernate

java.lang.Object
  extended by com.softslate.commerce.daos.core.BaseDAO
      extended by com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
          extended by com.softslate.commerce.daos.customer.CustomerGatewayDAOHibernate
All Implemented Interfaces:
DAOInterface, CustomerGatewayDAO

public class CustomerGatewayDAOHibernate
extends BaseAdminGatewayDAOHibernate
implements CustomerGatewayDAO

Generic DAO that runs miscellaneous queries related to customers.

Author:
David Tobey

Field Summary
(package private) static org.apache.commons.logging.Log log
           
 
Constructor Summary
CustomerGatewayDAOHibernate()
           
 
Method Summary
 void editDeleteCustomers(java.util.Map parameters, BusinessObjectFactory bof)
           
 java.util.Map loadCustomersAndCount(java.util.Map parameters)
           
 java.util.Map processAutoLogin(User user)
           
 java.util.Map processLogin(User user)
           
 java.util.Map processRegister(User user)
           
 java.util.Map updateAddresses(Customer customer)
           
 java.util.Map updateCustomer(Customer customer, boolean forcePassword)
           
 void updateCustomerAndAddress(Customer customer, CustomerAddress customerAddress)
           
 void updateCustomerInsertAddress(Customer customer, CustomerAddress customerAddress)
           
 
Methods inherited from class com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
editDeleteAssignments, editDeleteItems, loadItems, loadItemsAndCount, loadItemsCount, loadItemsFromIDs, processCommonCriteria, setPropertiesDynamically
 
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

log

static org.apache.commons.logging.Log log
Constructor Detail

CustomerGatewayDAOHibernate

public CustomerGatewayDAOHibernate()
Method Detail

processRegister

public java.util.Map processRegister(User user)
                              throws java.lang.Exception
Specified by:
processRegister in interface CustomerGatewayDAO
Throws:
java.lang.Exception

processLogin

public java.util.Map processLogin(User user)
                           throws java.lang.Exception
Specified by:
processLogin in interface CustomerGatewayDAO
Throws:
java.lang.Exception

processAutoLogin

public java.util.Map processAutoLogin(User user)
                               throws java.lang.Exception
Specified by:
processAutoLogin in interface CustomerGatewayDAO
Throws:
java.lang.Exception

updateAddresses

public java.util.Map updateAddresses(Customer customer)
                              throws java.lang.Exception
Specified by:
updateAddresses in interface CustomerGatewayDAO
Throws:
java.lang.Exception

updateCustomerAndAddress

public void updateCustomerAndAddress(Customer customer,
                                     CustomerAddress customerAddress)
                              throws java.lang.Exception
Specified by:
updateCustomerAndAddress in interface CustomerGatewayDAO
Throws:
java.lang.Exception

updateCustomerInsertAddress

public void updateCustomerInsertAddress(Customer customer,
                                        CustomerAddress customerAddress)
                                 throws java.lang.Exception
Specified by:
updateCustomerInsertAddress in interface CustomerGatewayDAO
Throws:
java.lang.Exception

updateCustomer

public java.util.Map updateCustomer(Customer customer,
                                    boolean forcePassword)
                             throws java.lang.Exception
Specified by:
updateCustomer in interface CustomerGatewayDAO
Throws:
java.lang.Exception

loadCustomersAndCount

public java.util.Map loadCustomersAndCount(java.util.Map parameters)
                                    throws java.lang.Exception
Specified by:
loadCustomersAndCount in interface CustomerGatewayDAO
Throws:
java.lang.Exception

editDeleteCustomers

public void editDeleteCustomers(java.util.Map parameters,
                                BusinessObjectFactory bof)
                         throws java.lang.Exception
Specified by:
editDeleteCustomers in interface CustomerGatewayDAO
Throws:
java.lang.Exception


Copyright © SoftSlate, LLC 2003–2005