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 TypeMethodDescriptionvoid
void
deleteOrder
(boolean commit) int
getOrder()
void
initializeOrder
(Order order) void
void
insertOrder
(boolean commit) void
Assuming the orderNumber and customerID properties have been set, load theOrder
object from the database.void
loadOrderFromID
(int orderID) void
void
Assuming the orderID and customerID properties have been set, load theOrder
object from the database.void
Assuming the orderID and customerID properties have been set, load theOrder
object from the database.void
processSettings
(boolean commit, Map parameters) processSettings
(Map parameters) void
void
void
updateOrder
(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 theOrder
object from the database.- Throws:
Exception
-
loadSavedCart
Assuming the orderID and customerID properties have been set, load theOrder
object 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 theOrder
object 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
-