Interface OrderDAO
- All Superinterfaces:
DAOInterface
- All Known Implementing Classes:
OrderDAOHibernate
Interface for a DAO to manage the
sscOrder table of the
database.- Author:
- David Tobey
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeleteOrder(boolean commit) intgetOrder()voidinitializeOrder(Order order) voidvoidinsertOrder(boolean commit) voidAssuming the orderNumber and customerID properties have been set, load theOrderobject from the database.voidloadOrderFromID(int orderID) voidvoidAssuming the orderID and customerID properties have been set, load theOrderobject from the database.voidAssuming the orderID and customerID properties have been set, load theOrderobject from the database.voidprocessSettings(boolean commit, Map parameters) processSettings(Map parameters) voidvoidvoidupdateOrder(boolean commit) 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
-
getOrder
Order getOrder() -
setOrder
-
getMaxOrderNumber
- Throws:
Exception
-
insertOrder
- Throws:
Exception
-
insertOrder
- Throws:
Exception
-
updateOrder
- Throws:
Exception
-
updateOrder
- Throws:
Exception
-
loadFromNumberAndCustomerID
Assuming the orderNumber and customerID properties have been set, load theOrderobject from the database.- Throws:
Exception
-
loadSavedCart
Assuming the orderID and customerID properties have been set, load theOrderobject from the database. Used to pick up saved carts.- Throws:
Exception
-
loadSavedCartFromToken
- Throws:
Exception
-
loadPreviousOrder
Assuming the orderID and customerID properties have been set, load theOrderobject from the database. Used to pick up reordered orders.- Throws:
Exception
-
loadOrderFromNumber
- Throws:
Exception
-
loadOrderFromID
- Throws:
Exception
-
loadOrderFromID
- Throws:
Exception
-
deleteOrder
- Throws:
Exception
-
deleteOrder
- Throws:
Exception
-
initializeOrder
-
loadSettings
- Throws:
DataAccessException
-
processSettings
- Throws:
Exception
-
processSettings
- Throws:
Exception
-