Interface OrderGatewayDAO
- All Superinterfaces:
DAOInterface
- All Known Implementing Classes:
OrderGatewayDAOHibernate
Interface for a DAO that runs miscellaneous queries related to orders.
- Author:
- David Tobey
-
Method Summary
Modifier and TypeMethodDescriptionint
deleteIncompleteOrders
(boolean commit, Map parameters) int
deleteOrderDiscounts
(boolean commit, int orderID) editDeleteOrders
(Map parameters, BusinessObjectFactory bof) getDiscountsBySkuIDs
(Collection skuIDs) getGlobalDiscounts
(Collection couponCodes) getPreviousOrderTotal
(int customerID) getProductInfoFromCodes
(String[] productCodeArray) getTimesUsedByCustomer
(int discountID, int customerID) void
insertOrderAndDelivery
(Order order, OrderDelivery orderDelivery) void
insertOrderNumber
(OrderNumber orderNumber, boolean commit) loadAbandonedCartOrders
(String startDate, String endDate, String prevOrdersDate) loadCompletedOrdersByDateRange
(String startDate, String endDate, Collection<String> ignoreStatuses) loadCompletedOrdersByLastModifiedAndStatuses
(String startDate, String endDate, Collection<String> currentStatuses) loadExport
(String startDate, String endDate, boolean allOrders, int firstID, int lastID) loadGiftCertificates
(Collection couponCodes) loadIncompleteOrdersWithPayments
(Map parameters) int
loadMonthlySalesReport
(String startDate, String endDate) loadOrdersAndCount
(Map parameters) loadSalesByProductReport
(String startDate, String endDate, Integer[] productIDs) loadShippingDiscounts
(Collection couponCodes) loadStatesAndCountries
(StatesAndCountries statesAndCountries) void
markOrderComplete
(Order order, Map parameters) void
processOrderComplete
(Order order, Map parameters) void
processOrderItems
(User user, Collection newOrderItems, 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, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getInjector, getSettings, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setInjector, setSettings, setSqlMap, updateObject
-
Method Details
-
loadStatesAndCountries
- Throws:
Exception
-
loadDashboardStatistics
- Throws:
Exception
-
loadIncompleteOrdersStatistics
- Throws:
Exception
-
deleteIncompleteOrders
- Throws:
Exception
-
insertOrderAndDelivery
- Throws:
Exception
-
processOrderItems
- Throws:
Exception
-
removeOrderItem
void removeOrderItem(Order order, OrderDelivery orderDelivery, OrderItem orderItem) throws Exception - Throws:
Exception
-
updateOrderAndDelivery
void updateOrderAndDelivery(boolean commit, Order order, OrderDelivery orderDelivery) throws Exception - Throws:
Exception
-
getProductInfoFromCodes
- Throws:
Exception
-
loadOrdersAndCount
- Throws:
Exception
-
editDeleteOrders
- Throws:
Exception
-
processOrderComplete
- Throws:
Exception
-
insertOrderNumber
- Throws:
DataAccessException
-
markOrderComplete
- Throws:
Exception
-
deleteOrderDiscounts
- Throws:
Exception
-
getDiscountsBySkuIDs
- Throws:
Exception
-
getGlobalDiscounts
- Throws:
Exception
-
getGlobalDiscounts
- Throws:
Exception
-
loadShippingDiscounts
- Throws:
Exception
-
loadGiftCertificates
- Throws:
Exception
-
getPreviousOrderTotal
- Throws:
Exception
-
getTimesUsedByCustomer
- Throws:
Exception
-
loadExport
Collection loadExport(String startDate, String endDate, boolean allOrders, int firstID, int lastID) throws Exception - Throws:
Exception
-
loadSalesByProductReport
Collection loadSalesByProductReport(String startDate, String endDate, Integer[] productIDs) throws Exception - Throws:
Exception
-
loadMonthlySalesReport
- Throws:
Exception
-
loadIncompleteOrdersWithPayments
- Throws:
Exception
-
loadMaxOrderID
- Throws:
Exception
-
loadCompletedOrdersByDateRange
Collection<Order> loadCompletedOrdersByDateRange(String startDate, String endDate, Collection<String> ignoreStatuses) throws Exception - Throws:
Exception
-
loadAbandonedCartOrders
Collection<Order> loadAbandonedCartOrders(String startDate, String endDate, String prevOrdersDate) throws Exception - Throws:
Exception
-
loadCompletedOrdersByLastModifiedAndStatuses
Collection<Order> loadCompletedOrdersByLastModifiedAndStatuses(String startDate, String endDate, Collection<String> currentStatuses) throws Exception - Throws:
Exception
-