Class OrderDAOHibernate
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
com.softslate.commerce.daos.order.OrderDAOHibernate
- All Implemented Interfaces:
DAOInterface,OrderDAO
Generic DAO to manage the
sscOrder table of the database.- Author:
- David Tobey
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeleteOrder(boolean commit) intgetOrder()voidinitializeOrder(Order order) insertObject(Object object, boolean commit) voidvoidinsertOrder(boolean commit) voidAssuming the orderNumber and customerID properties have been set, load theOrderobject from the database.loadObject(Object object) 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) voidupdateObject(Object object, boolean commit) voidvoidupdateOrder(boolean commit) Methods inherited from class com.softslate.commerce.daos.core.BaseDAO
deleteObject, doWorkToSetConnection, editAssignment, evictCache, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getImportExportSQL, getImportExportSqlMap, getInjector, getNamedQuery, getSettings, getSQL, getSqlMap, initialize, loadAll, loadAll, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setImportExportSqlMap, setInjector, setSettings, setSqlMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.softslate.commerce.daos.core.DAOInterface
deleteObject, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getInjector, getSettings, getSqlMap, initialize, loadAll, loadAll, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setInjector, setSettings, setSqlMap
-
Field Details
-
log
static org.apache.commons.logging.Log log -
order
-
-
Constructor Details
-
OrderDAOHibernate
public OrderDAOHibernate()
-
-
Method Details
-
getOrder
-
setOrder
-
loadOrderFromID
- Specified by:
loadOrderFromIDin interfaceOrderDAO- Throws:
Exception
-
loadOrderFromID
- Specified by:
loadOrderFromIDin interfaceOrderDAO- Throws:
Exception
-
loadOrderFromNumber
- Specified by:
loadOrderFromNumberin interfaceOrderDAO- Throws:
Exception
-
loadObject
- Specified by:
loadObjectin interfaceDAOInterface- Overrides:
loadObjectin classBaseDAO- Throws:
Exception
-
getMaxOrderNumber
- Specified by:
getMaxOrderNumberin interfaceOrderDAO- Throws:
Exception
-
insertOrder
- Specified by:
insertOrderin interfaceOrderDAO- Throws:
DataAccessException
-
insertOrder
- Specified by:
insertOrderin interfaceOrderDAO- Throws:
DataAccessException
-
insertObject
- Specified by:
insertObjectin interfaceDAOInterface- Overrides:
insertObjectin classBaseDAO- Throws:
Exception
-
updateOrder
- Specified by:
updateOrderin interfaceOrderDAO- Throws:
Exception
-
updateOrder
- Specified by:
updateOrderin interfaceOrderDAO- Throws:
Exception
-
updateObject
- Specified by:
updateObjectin interfaceDAOInterface- Overrides:
updateObjectin classBaseDAO- Throws:
Exception
-
loadFromNumberAndCustomerID
Description copied from interface:OrderDAOAssuming the orderNumber and customerID properties have been set, load theOrderobject from the database.- Specified by:
loadFromNumberAndCustomerIDin interfaceOrderDAO- Throws:
Exception
-
loadSavedCart
Description copied from interface:OrderDAOAssuming the orderID and customerID properties have been set, load theOrderobject from the database. Used to pick up saved carts.- Specified by:
loadSavedCartin interfaceOrderDAO- Throws:
Exception
-
loadSavedCartFromToken
- Specified by:
loadSavedCartFromTokenin interfaceOrderDAO- Throws:
Exception
-
loadPreviousOrder
Description copied from interface:OrderDAOAssuming the orderID and customerID properties have been set, load theOrderobject from the database. Used to pick up reordered orders.- Specified by:
loadPreviousOrderin interfaceOrderDAO- Throws:
Exception
-
deleteOrder
- Specified by:
deleteOrderin interfaceOrderDAO- Throws:
DataAccessException
-
deleteOrder
- Specified by:
deleteOrderin interfaceOrderDAO- Throws:
DataAccessException
-
initializeOrder
- Specified by:
initializeOrderin interfaceOrderDAO
-
loadSettings
- Specified by:
loadSettingsin interfaceOrderDAO- Throws:
DataAccessException
-
processSettings
- Specified by:
processSettingsin interfaceOrderDAO- Throws:
Exception
-
processSettings
- Specified by:
processSettingsin interfaceOrderDAO- Throws:
Exception
-