com.softslate.commerce.daos.customer
Interface CustomerDAO

All Superinterfaces:
DAOInterface
All Known Implementing Classes:
CustomerDAOBasic

public interface CustomerDAO
extends DAOInterface

Interface for a DAO to manage the npcCustomer table of the database.

Author:
David Tobey $Id: CustomerDAO.java,v 1.1 2005/05/16 14:34:14 dtobey Exp $

Method Summary
 void deleteCustomer()
           
 void deleteCustomer(boolean commit)
           
 Customer getCustomer()
           
 int getMaxCustomerID()
           
 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()
           
 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.
 void setCustomer(Customer customer)
           
 void updateCustomer()
           
 void updateCustomer(boolean commit)
           
 void updateCustomerNoPassword()
           
 void updateCustomerNoPassword(boolean commit)
           
 
Methods inherited from interface com.softslate.commerce.daos.core.DAOInterface
getConnection, getDaoFactory, getDataSource, getSettingsBean, getSqlMap, initialize, setConnection, setDaoFactory, setDataSource, setSettingsBean, setSqlMap
 

Method Detail

getCustomer

public Customer getCustomer()

setCustomer

public void setCustomer(Customer customer)

getMaxCustomerID

public int getMaxCustomerID()
                     throws java.lang.Exception
Throws:
java.lang.Exception

getUserNameCount

public int getUserNameCount()
                     throws java.lang.Exception
Throws:
java.lang.Exception

getUserNameCount

public int getUserNameCount(boolean commit)
                     throws java.lang.Exception
Throws:
java.lang.Exception

insertCustomer

public void insertCustomer()
                    throws java.lang.Exception
Throws:
java.lang.Exception

insertCustomer

public void insertCustomer(boolean commit)
                    throws java.lang.Exception
Throws:
java.lang.Exception

updateCustomerNoPassword

public void updateCustomerNoPassword()
                              throws java.lang.Exception
Throws:
java.lang.Exception

updateCustomerNoPassword

public void updateCustomerNoPassword(boolean commit)
                              throws java.lang.Exception
Throws:
java.lang.Exception

updateCustomer

public void updateCustomer()
                    throws java.lang.Exception
Throws:
java.lang.Exception

updateCustomer

public void updateCustomer(boolean commit)
                    throws java.lang.Exception
Throws:
java.lang.Exception

loadFromUserName

public void loadFromUserName()
                      throws java.lang.Exception
Assuming the userName property has been set, queries the database for a customer record that matches.

Throws:
java.lang.Exception

loadFromUserNameAndPassword

public void loadFromUserNameAndPassword()
                                 throws java.lang.Exception
Assuming the userName and password properties have been set, queries the database for a customer record that matches.

Throws:
java.lang.Exception

loadAddressCollection

public java.util.Collection loadAddressCollection()
                                           throws java.lang.Exception
Populate a collection of CustomerAddress objects, one for each of the addresses associated with this customer.

Throws:
java.lang.Exception

loadOrderHistory

public java.util.Collection loadOrderHistory()
                                      throws java.lang.Exception
Populate a collection of Order objects, one for each order in this customer's order history.

Throws:
java.lang.Exception

loadCustomerFromID

public void loadCustomerFromID()
                        throws java.lang.Exception
Throws:
java.lang.Exception

deleteCustomer

public void deleteCustomer()
                    throws java.lang.Exception
Throws:
java.lang.Exception

deleteCustomer

public void deleteCustomer(boolean commit)
                    throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © SoftSlate, Inc. 2003–2005