Class ProductDAOHibernate
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
com.softslate.commerce.daos.product.ProductDAOHibernate
- All Implemented Interfaces:
DAOInterface,ProductDAO
Generic DAO to manage the
sscProduct table of the database.- Author:
- David Tobey
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandeleteObject(Object object, boolean commit) voidvoiddeleteProduct(boolean commit) editProductAssignment(Product product, Map parameters, BusinessObjectFactory bof) insertObject(Object object, boolean commit) voidvoidinsertProduct(boolean commit) voidloadObject(Object object) voidvoidvoidvoidvoidvoidsetProduct(Product product) updateObject(Object object, boolean commit) voidvoidupdateProduct(boolean commit) voidvoidupdateProductByCode(boolean commit) voidupdateProductOrderByID(int productID, int productOrder) Methods inherited from class com.softslate.commerce.daos.core.BaseDAO
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
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 -
product
-
-
Constructor Details
-
ProductDAOHibernate
public ProductDAOHibernate()
-
-
Method Details
-
getProduct
- Specified by:
getProductin interfaceProductDAO
-
setProduct
- Specified by:
setProductin interfaceProductDAO
-
loadProduct
- Specified by:
loadProductin interfaceProductDAO- Throws:
DataAccessException
-
loadProductFromSeoCode
- Specified by:
loadProductFromSeoCodein interfaceProductDAO- Throws:
DataAccessException
-
loadProductFromCode
- Specified by:
loadProductFromCodein interfaceProductDAO- Throws:
DataAccessException
-
loadProductFromSeoCodeAdmin
- Specified by:
loadProductFromSeoCodeAdminin interfaceProductDAO- Throws:
DataAccessException
-
loadProductFromID
- Specified by:
loadProductFromIDin interfaceProductDAO- Throws:
Exception
-
loadAttributesAndOptions
- Specified by:
loadAttributesAndOptionsin interfaceProductDAO- Throws:
Exception
-
insertProduct
- Specified by:
insertProductin interfaceProductDAO- Throws:
DataAccessException
-
insertProduct
- Specified by:
insertProductin interfaceProductDAO- Throws:
DataAccessException
-
updateProduct
- Specified by:
updateProductin interfaceProductDAO- Throws:
DataAccessException
-
updateProduct
- Specified by:
updateProductin interfaceProductDAO- Throws:
DataAccessException
-
updateProductOrderByID
- Specified by:
updateProductOrderByIDin interfaceProductDAO- Throws:
Exception
-
updateProductByCode
- Specified by:
updateProductByCodein interfaceProductDAO- Throws:
Exception
-
updateProductByCode
- Specified by:
updateProductByCodein interfaceProductDAO- Throws:
Exception
-
deleteProduct
- Specified by:
deleteProductin interfaceProductDAO- Throws:
DataAccessException
-
deleteProduct
- Specified by:
deleteProductin interfaceProductDAO- Throws:
DataAccessException
-
loadSettings
- Specified by:
loadSettingsin interfaceProductDAO- Throws:
DataAccessException
-
loadObject
- Specified by:
loadObjectin interfaceDAOInterface- Overrides:
loadObjectin classBaseDAO- Throws:
Exception
-
deleteObject
- Specified by:
deleteObjectin interfaceDAOInterface- Overrides:
deleteObjectin classBaseDAO- Throws:
Exception
-
insertObject
- Specified by:
insertObjectin interfaceDAOInterface- Overrides:
insertObjectin classBaseDAO- Throws:
Exception
-
updateObject
- Specified by:
updateObjectin interfaceDAOInterface- Overrides:
updateObjectin classBaseDAO- Throws:
Exception
-
editProductAssignment
public Map editProductAssignment(Product product, Map parameters, BusinessObjectFactory bof) throws Exception - Specified by:
editProductAssignmentin interfaceProductDAO- Throws:
Exception
-