Class ProductGatewayDAOHibernate
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
com.softslate.commerce.daos.product.ProductGatewayDAOHibernate
- All Implemented Interfaces:
DAOInterface,ProductGatewayDAO
public class ProductGatewayDAOHibernate
extends BaseAdminGatewayDAOHibernate
implements ProductGatewayDAO
Generic DAO that runs miscellaneous queries related to products and
categories.
- Author:
- David Tobey
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintaddCategoryAssociation(String productCode, String categoryCode) editDeleteProducts(Map parameters, BusinessObjectFactory bof) private voidinitializeSubcategories(Category category) loadAllProductSettingsInRange(int firstID, int lastID) loadAllProductsInRange(int firstID, int lastID) intloadItemsCount(Map parameters) intintloadProductList(ProductList productList) loadProductsAndCount(Map parameters) loadProductSettings(Collection productIDs) loadProductsForCategories(Collection categoryCodes, int firstProductID, int lastProductID) loadProductsForIndexing(int firstProductID, int lastProductID) loadSkus(Collection productIDs, Collection attributeIDs) postChangingItemEvent(Object item, Map parameters, BusinessObjectFactory bof) processCategorySettings(boolean commit, Map parameters) processCategorySettings(Map parameters) org.hibernate.CriteriaprocessCommonCriteria(org.hibernate.Criteria crit, Map parameters) processCommonHQLSearchClause(StringBuffer query, Map parameters) processSettings(boolean commit, Map parameters) processSettings(Map parameters) intremoveCategoryAssociations(String productCode) voidvoidvoidupdateProductsActive(boolean commit, Collection productIDs, boolean isActive) voidupdateProductsActive(Collection productIDs, boolean isActive) voidMethods inherited from class com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
editDeleteAssignments, editDeleteItems, incomingPropertiesByIndex, loadItemsAndCount, loadItemsFromIDs, postChangedItemEvent, setPropertiesDynamicallyMethods 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, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setImportExportSqlMap, setInjector, setSettings, setSqlMap, updateObjectMethods 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, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setInjector, setSettings, setSqlMap, updateObject
-
Field Details
-
log
static org.apache.commons.logging.Log log
-
-
Constructor Details
-
ProductGatewayDAOHibernate
public ProductGatewayDAOHibernate()
-
-
Method Details
-
loadCategoryTree
- Specified by:
loadCategoryTreein interfaceProductGatewayDAO- Throws:
DataAccessException
-
initializeSubcategories
-
loadProductList
- Specified by:
loadProductListin interfaceProductGatewayDAO- Throws:
DataAccessException
-
loadProductsAndCount
- Specified by:
loadProductsAndCountin interfaceProductGatewayDAO- Throws:
Exception
-
loadItems
- Overrides:
loadItemsin classBaseAdminGatewayDAOHibernate- Throws:
DataAccessException
-
loadItemsCount
- Overrides:
loadItemsCountin classBaseAdminGatewayDAOHibernate- Throws:
DataAccessException
-
processCommonHQLSearchClause
-
editDeleteProducts
- Specified by:
editDeleteProductsin interfaceProductGatewayDAO- Throws:
Exception
-
processCommonCriteria
- Overrides:
processCommonCriteriain classBaseAdminGatewayDAOHibernate
-
postChangingItemEvent
public Map postChangingItemEvent(Object item, Map parameters, BusinessObjectFactory bof) throws Exception - Overrides:
postChangingItemEventin classBaseAdminGatewayDAOHibernate- Throws:
Exception
-
loadAllProducts
- Specified by:
loadAllProductsin interfaceProductGatewayDAO- Throws:
DataAccessException
-
loadMaxProductID
- Specified by:
loadMaxProductIDin interfaceProductGatewayDAO- Throws:
Exception
-
loadProductsForIndexing
public Collection loadProductsForIndexing(int firstProductID, int lastProductID) throws DataAccessException - Specified by:
loadProductsForIndexingin interfaceProductGatewayDAO- Throws:
DataAccessException
-
loadAllProductsSortedByName
- Specified by:
loadAllProductsSortedByNamein interfaceProductGatewayDAO- Throws:
Exception
-
loadAllProductsSortedByCode
- Specified by:
loadAllProductsSortedByCodein interfaceProductGatewayDAO- Throws:
Exception
-
loadProductCount
- Specified by:
loadProductCountin interfaceProductGatewayDAO- Throws:
DataAccessException
-
loadAllProductNamesCodesIDs
- Specified by:
loadAllProductNamesCodesIDsin interfaceProductGatewayDAO- Throws:
DataAccessException
-
loadActiveProductNamesCodesIDs
- Specified by:
loadActiveProductNamesCodesIDsin interfaceProductGatewayDAO- Throws:
DataAccessException
-
processSettings
- Specified by:
processSettingsin interfaceProductGatewayDAO- Throws:
Exception
-
processSettings
- Specified by:
processSettingsin interfaceProductGatewayDAO- Throws:
Exception
-
processCategorySettings
- Specified by:
processCategorySettingsin interfaceProductGatewayDAO- Throws:
Exception
-
processCategorySettings
- Specified by:
processCategorySettingsin interfaceProductGatewayDAO- Throws:
Exception
-
loadProductSettings
- Specified by:
loadProductSettingsin interfaceProductGatewayDAO- Throws:
Exception
-
loadSkus
- Specified by:
loadSkusin interfaceProductGatewayDAO- Throws:
Exception
-
updateProductsActive
- Specified by:
updateProductsActivein interfaceProductGatewayDAO- Throws:
Exception
-
updateProductsActive
public void updateProductsActive(boolean commit, Collection productIDs, boolean isActive) throws Exception - Specified by:
updateProductsActivein interfaceProductGatewayDAO- Throws:
Exception
-
loadAttributeSKUs
- Specified by:
loadAttributeSKUsin interfaceProductGatewayDAO- Throws:
DataAccessException
-
updateProductCategoryOrders
- Specified by:
updateProductCategoryOrdersin interfaceProductGatewayDAO- Throws:
DataAccessException
-
updateProductAttributeOrders
- Specified by:
updateProductAttributeOrdersin interfaceProductGatewayDAO- Throws:
DataAccessException
-
updateRelatedProductOrders
- Specified by:
updateRelatedProductOrdersin interfaceProductGatewayDAO- Throws:
DataAccessException
-
loadProductsForCategories
public Collection loadProductsForCategories(Collection categoryCodes, int firstProductID, int lastProductID) throws Exception - Specified by:
loadProductsForCategoriesin interfaceProductGatewayDAO- Throws:
Exception
-
loadAllProductsInRange
- Specified by:
loadAllProductsInRangein interfaceProductGatewayDAO- Throws:
Exception
-
loadMaxProductSettingID
- Specified by:
loadMaxProductSettingIDin interfaceProductGatewayDAO- Throws:
Exception
-
loadAllProductSettingsInRange
- Specified by:
loadAllProductSettingsInRangein interfaceProductGatewayDAO- Throws:
Exception
-
removeCategoryAssociations
- Specified by:
removeCategoryAssociationsin interfaceProductGatewayDAO- Throws:
Exception
-
addCategoryAssociation
- Specified by:
addCategoryAssociationin interfaceProductGatewayDAO- Throws:
Exception
-