com.softslate.commerce.daos.customer
Class CustomerGatewayDAOBasic

java.lang.Object
  extended bycom.softslate.commerce.daos.core.BaseDAO
      extended bycom.softslate.commerce.daos.core.BaseAdminGatewayDAOBasic
          extended bycom.softslate.commerce.daos.customer.CustomerGatewayDAOBasic
All Implemented Interfaces:
CustomerGatewayDAO, DAOInterface

public class CustomerGatewayDAOBasic
extends BaseAdminGatewayDAOBasic
implements CustomerGatewayDAO

Generic DAO that runs miscellaneous queries related to customers.

Version:
$Id: CustomerGatewayDAOBasic.java,v 1.2 2004/10/14 19:56:51 dtobey Exp $
Author:
David Tobey

Field Summary
(package private) static org.apache.commons.logging.Log log
           
 
Fields inherited from class com.softslate.commerce.daos.core.BaseDAO
 
Constructor Summary
CustomerGatewayDAOBasic()
           
 
Method Summary
 void editDeleteCustomers(java.util.Map parameters, BusinessObjectFactory bof)
           
 java.util.Collection loadActiveCustomers()
           
 java.util.Map loadCustomersAndCount(java.util.Map parameters)
           
 java.util.Collection processLogin(User user)
           
 java.util.Map processRegister(User user, Customer customer)
           
 void updateAddresses(User user, Customer customer)
           
 void updateCustomer(Customer customer)
           
 void updateCustomerAndAddress(Customer customer, CustomerAddress customerAddress)
           
 void updateCustomerInsertAddress(Customer customer, CustomerAddress customerAddress)
           
 
Methods inherited from class com.softslate.commerce.daos.core.BaseAdminGatewayDAOBasic
loadItems, loadItemsAndCount, loadItemsCount, loadItemsFromIDs
 
Methods inherited from class com.softslate.commerce.daos.core.BaseDAO
formatDateTime, getConnection, getDaoFactory, getDataSource, getSettingsBean, getSQL, getSqlMap, initialize, parseDateTime, setConnection, setDaoFactory, setDataSource, setSettingsBean, setSqlMap
 
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
getConnection, getDaoFactory, getDataSource, getSettingsBean, getSqlMap, initialize, setConnection, setDaoFactory, setDataSource, setSettingsBean, setSqlMap
 

Field Detail

log

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

CustomerGatewayDAOBasic

public CustomerGatewayDAOBasic()
Method Detail

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

processRegister

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

processLogin

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

updateAddresses

public void updateAddresses(User user,
                            Customer customer)
                     throws java.lang.Exception
Specified by:
updateAddresses in interface CustomerGatewayDAO
Throws:
java.lang.Exception

updateCustomer

public void updateCustomer(Customer customer)
                    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

loadActiveCustomers

public java.util.Collection loadActiveCustomers()
                                         throws java.lang.Exception
Specified by:
loadActiveCustomers in interface CustomerGatewayDAO
Throws:
java.lang.Exception


Copyright © SoftSlate, Inc. 2003–2005