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 TypeMethodDescriptionboolean
deleteObject
(Object object, boolean commit) void
void
deleteProduct
(boolean commit) editProductAssignment
(Product product, Map parameters, BusinessObjectFactory bof) insertObject
(Object object, boolean commit) void
void
insertProduct
(boolean commit) void
loadObject
(Object object) void
void
void
void
void
void
setProduct
(Product product) updateObject
(Object object, boolean commit) void
void
updateProduct
(boolean commit) void
void
updateProductByCode
(boolean commit) void
updateProductOrderByID
(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, setSqlMap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getProduct
in interfaceProductDAO
-
setProduct
- Specified by:
setProduct
in interfaceProductDAO
-
loadProduct
- Specified by:
loadProduct
in interfaceProductDAO
- Throws:
DataAccessException
-
loadProductFromSeoCode
- Specified by:
loadProductFromSeoCode
in interfaceProductDAO
- Throws:
DataAccessException
-
loadProductFromCode
- Specified by:
loadProductFromCode
in interfaceProductDAO
- Throws:
DataAccessException
-
loadProductFromSeoCodeAdmin
- Specified by:
loadProductFromSeoCodeAdmin
in interfaceProductDAO
- Throws:
DataAccessException
-
loadProductFromID
- Specified by:
loadProductFromID
in interfaceProductDAO
- Throws:
Exception
-
loadAttributesAndOptions
- Specified by:
loadAttributesAndOptions
in interfaceProductDAO
- Throws:
Exception
-
insertProduct
- Specified by:
insertProduct
in interfaceProductDAO
- Throws:
DataAccessException
-
insertProduct
- Specified by:
insertProduct
in interfaceProductDAO
- Throws:
DataAccessException
-
updateProduct
- Specified by:
updateProduct
in interfaceProductDAO
- Throws:
DataAccessException
-
updateProduct
- Specified by:
updateProduct
in interfaceProductDAO
- Throws:
DataAccessException
-
updateProductOrderByID
- Specified by:
updateProductOrderByID
in interfaceProductDAO
- Throws:
Exception
-
updateProductByCode
- Specified by:
updateProductByCode
in interfaceProductDAO
- Throws:
Exception
-
updateProductByCode
- Specified by:
updateProductByCode
in interfaceProductDAO
- Throws:
Exception
-
deleteProduct
- Specified by:
deleteProduct
in interfaceProductDAO
- Throws:
DataAccessException
-
deleteProduct
- Specified by:
deleteProduct
in interfaceProductDAO
- Throws:
DataAccessException
-
loadSettings
- Specified by:
loadSettings
in interfaceProductDAO
- Throws:
DataAccessException
-
loadObject
- Specified by:
loadObject
in interfaceDAOInterface
- Overrides:
loadObject
in classBaseDAO
- Throws:
Exception
-
deleteObject
- Specified by:
deleteObject
in interfaceDAOInterface
- Overrides:
deleteObject
in classBaseDAO
- Throws:
Exception
-
insertObject
- Specified by:
insertObject
in interfaceDAOInterface
- Overrides:
insertObject
in classBaseDAO
- Throws:
Exception
-
updateObject
- Specified by:
updateObject
in interfaceDAOInterface
- Overrides:
updateObject
in classBaseDAO
- Throws:
Exception
-
editProductAssignment
public Map editProductAssignment(Product product, Map parameters, BusinessObjectFactory bof) throws Exception - Specified by:
editProductAssignment
in interfaceProductDAO
- Throws:
Exception
-