com.softslate.commerce.daos.order
Interface OrderGatewayDAO

All Superinterfaces:
DAOInterface
All Known Implementing Classes:
OrderGatewayDAOHibernate

public interface OrderGatewayDAO
extends DAOInterface

Interface for a DAO that runs miscellaneous queries related to orders.

Author:
David Tobey

Method Summary
 int deleteIncompleteOrders(boolean commit, java.util.Map parameters)
           
 int deleteOrderDiscounts(boolean commit, int orderID)
           
 void editDeleteOrders(java.util.Map parameters, BusinessObjectFactory bof)
           
 java.util.Collection getDiscountsBySkuIDs(java.util.Collection skuIDs)
           
 java.util.Collection getGlobalDiscounts()
           
 java.lang.Double getPreviousOrderTotal(int customerID)
           
 java.util.Collection getProductInfoFromCodes(java.lang.String[] productCodeArray)
           
 java.lang.Integer getTimesUsedByCustomer(int discountID, int customerID)
           
 void insertOrderAndDelivery(Order order, OrderDelivery orderDelivery)
           
 java.util.Collection loadDashboardStatistics()
           
 java.util.Collection loadExport(java.util.Date startDate, java.util.Date endDate, boolean allOrders)
           
 java.util.Collection loadIncompleteOrdersStatistics()
           
 java.util.Map loadOrdersAndCount(java.util.Map parameters)
           
 StatesAndCountries loadStatesAndCountries(StatesAndCountries statesAndCountries)
           
 void processOrderComplete(Order order, java.util.Map parameters)
           
 void processOrderItems(User user, java.util.Collection newOrderItems, java.util.Map parameters)
           
 void removeOrderItem(Order order, OrderDelivery orderDelivery, OrderItem orderItem)
           
 void updateOrderAndDelivery(boolean commit, Order order, OrderDelivery orderDelivery)
           
 
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

loadStatesAndCountries

StatesAndCountries loadStatesAndCountries(StatesAndCountries statesAndCountries)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

loadDashboardStatistics

java.util.Collection loadDashboardStatistics()
                                             throws java.lang.Exception
Throws:
java.lang.Exception

loadIncompleteOrdersStatistics

java.util.Collection loadIncompleteOrdersStatistics()
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

deleteIncompleteOrders

int deleteIncompleteOrders(boolean commit,
                           java.util.Map parameters)
                           throws java.lang.Exception
Throws:
java.lang.Exception

insertOrderAndDelivery

void insertOrderAndDelivery(Order order,
                            OrderDelivery orderDelivery)
                            throws java.lang.Exception
Throws:
java.lang.Exception

processOrderItems

void processOrderItems(User user,
                       java.util.Collection newOrderItems,
                       java.util.Map parameters)
                       throws java.lang.Exception
Throws:
java.lang.Exception

removeOrderItem

void removeOrderItem(Order order,
                     OrderDelivery orderDelivery,
                     OrderItem orderItem)
                     throws java.lang.Exception
Throws:
java.lang.Exception

updateOrderAndDelivery

void updateOrderAndDelivery(boolean commit,
                            Order order,
                            OrderDelivery orderDelivery)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getProductInfoFromCodes

java.util.Collection getProductInfoFromCodes(java.lang.String[] productCodeArray)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

loadOrdersAndCount

java.util.Map loadOrdersAndCount(java.util.Map parameters)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

editDeleteOrders

void editDeleteOrders(java.util.Map parameters,
                      BusinessObjectFactory bof)
                      throws java.lang.Exception
Throws:
java.lang.Exception

processOrderComplete

void processOrderComplete(Order order,
                          java.util.Map parameters)
                          throws java.lang.Exception
Throws:
java.lang.Exception

deleteOrderDiscounts

int deleteOrderDiscounts(boolean commit,
                         int orderID)
                         throws java.lang.Exception
Throws:
java.lang.Exception

getDiscountsBySkuIDs

java.util.Collection getDiscountsBySkuIDs(java.util.Collection skuIDs)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

getGlobalDiscounts

java.util.Collection getGlobalDiscounts()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

getPreviousOrderTotal

java.lang.Double getPreviousOrderTotal(int customerID)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getTimesUsedByCustomer

java.lang.Integer getTimesUsedByCustomer(int discountID,
                                         int customerID)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

loadExport

java.util.Collection loadExport(java.util.Date startDate,
                                java.util.Date endDate,
                                boolean allOrders)
                                throws java.lang.Exception
Throws:
java.lang.Exception


Copyright ? SoftSlate, LLC 2003?2005