com.softslate.commerce.daos.order
Interface OrderDAO

All Superinterfaces:
DAOInterface
All Known Implementing Classes:
OrderDAOHibernate

public interface OrderDAO
extends DAOInterface

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

Author:
David Tobey

Method Summary
 void deleteOrder()
           
 void deleteOrder(boolean commit)
           
 int getMaxOrderNumber()
           
 Order getOrder()
           
 void insertOrder()
           
 void insertOrder(boolean commit)
           
 void loadFromNumberAndCustomerID()
          Assuming the orderNumber and customerID properties have been set, load the Order object from the database.
 void loadOrderFromID()
           
 void loadOrderFromNumber()
           
 void loadPreviousOrder()
          Assuming the orderID and customerID properties have been set, load the Order object from the database.
 void loadSavedCart()
          Assuming the orderID and customerID properties have been set, load the Order object from the database.
 void loadSavedCartFromToken()
           
 void setOrder(Order order)
           
 void updateOrder()
           
 void updateOrder(boolean commit)
           
 
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
 

Method Detail

getOrder

Order getOrder()

setOrder

void setOrder(Order order)

getMaxOrderNumber

int getMaxOrderNumber()
                      throws java.lang.Exception
Throws:
java.lang.Exception

insertOrder

void insertOrder()
                 throws java.lang.Exception
Throws:
java.lang.Exception

insertOrder

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

updateOrder

void updateOrder()
                 throws java.lang.Exception
Throws:
java.lang.Exception

updateOrder

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

loadFromNumberAndCustomerID

void loadFromNumberAndCustomerID()
                                 throws java.lang.Exception
Assuming the orderNumber and customerID properties have been set, load the Order object from the database.

Throws:
java.lang.Exception

loadSavedCart

void loadSavedCart()
                   throws java.lang.Exception
Assuming the orderID and customerID properties have been set, load the Order object from the database. Used to pick up saved carts.

Throws:
java.lang.Exception

loadSavedCartFromToken

void loadSavedCartFromToken()
                            throws java.lang.Exception
Throws:
java.lang.Exception

loadPreviousOrder

void loadPreviousOrder()
                       throws java.lang.Exception
Assuming the orderID and customerID properties have been set, load the Order object from the database. Used to pick up reordered orders.

Throws:
java.lang.Exception

loadOrderFromNumber

void loadOrderFromNumber()
                         throws java.lang.Exception
Throws:
java.lang.Exception

loadOrderFromID

void loadOrderFromID()
                     throws java.lang.Exception
Throws:
java.lang.Exception

deleteOrder

void deleteOrder()
                 throws java.lang.Exception
Throws:
java.lang.Exception

deleteOrder

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


Copyright © SoftSlate, LLC 2003–2005