Class CategoryGatewayDAOHibernate
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
com.softslate.commerce.daos.product.CategoryGatewayDAOHibernate
- All Implemented Interfaces:
DAOInterface
,CategoryGatewayDAO
public class CategoryGatewayDAOHibernate
extends BaseAdminGatewayDAOHibernate
implements CategoryGatewayDAO
Generic DAO that runs miscellaneous queries related to categories.
- Author:
- David Tobey
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioneditDeleteCategories
(Map parameters, BusinessObjectFactory bof) loadAllCategoriesInRange
(int firstID, int lastID) loadAllCategoriesSortedByCode
(boolean isContentPage) loadAllCategoriesSortedByName
(boolean isContentPage) loadCategoriesAndCount
(Map parameters) loadCategoriesForIndexing
(int firstCategoryID, int lastCategoryID) int
loadSubcategoriesSortedByCode
(boolean isContentPage, int parentCategory) loadSubcategoriesSortedByName
(boolean isContentPage, int parentCategory) org.hibernate.Criteria
processCommonCriteria
(org.hibernate.Criteria crit, Map parameters) void
updateNullifyParentIDs
(String[] parentCategoryIDs) Methods inherited from class com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
editDeleteAssignments, editDeleteItems, incomingPropertiesByIndex, loadItems, loadItemsAndCount, loadItemsCount, loadItemsFromIDs, postChangedItemEvent, postChangingItemEvent, setPropertiesDynamically
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, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setImportExportSqlMap, setInjector, setSettings, setSqlMap, updateObject
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
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
-
CategoryGatewayDAOHibernate
public CategoryGatewayDAOHibernate()
-
-
Method Details
-
loadCategoriesAndCount
- Specified by:
loadCategoriesAndCount
in interfaceCategoryGatewayDAO
- Throws:
Exception
-
editDeleteCategories
- Specified by:
editDeleteCategories
in interfaceCategoryGatewayDAO
- Throws:
Exception
-
loadAllCategories
- Specified by:
loadAllCategories
in interfaceCategoryGatewayDAO
- Throws:
Exception
-
loadAllCategoriesSortedByName
- Specified by:
loadAllCategoriesSortedByName
in interfaceCategoryGatewayDAO
- Throws:
Exception
-
loadSubcategoriesSortedByName
public Collection loadSubcategoriesSortedByName(boolean isContentPage, int parentCategory) throws Exception - Specified by:
loadSubcategoriesSortedByName
in interfaceCategoryGatewayDAO
- Throws:
Exception
-
loadAllCategoriesSortedByCode
- Specified by:
loadAllCategoriesSortedByCode
in interfaceCategoryGatewayDAO
- Throws:
Exception
-
loadSubcategoriesSortedByCode
public Collection loadSubcategoriesSortedByCode(boolean isContentPage, int parentCategory) throws Exception - Specified by:
loadSubcategoriesSortedByCode
in interfaceCategoryGatewayDAO
- Throws:
Exception
-
loadMaxCategoryID
- Specified by:
loadMaxCategoryID
in interfaceCategoryGatewayDAO
- Throws:
Exception
-
loadCategoriesForIndexing
public Collection loadCategoriesForIndexing(int firstCategoryID, int lastCategoryID) throws DataAccessException - Specified by:
loadCategoriesForIndexing
in interfaceCategoryGatewayDAO
- Throws:
DataAccessException
-
updateNullifyParentIDs
- Specified by:
updateNullifyParentIDs
in interfaceCategoryGatewayDAO
- Throws:
Exception
-
loadAllCategoriesInRange
- Specified by:
loadAllCategoriesInRange
in interfaceCategoryGatewayDAO
- Throws:
Exception
-
processCommonCriteria
- Overrides:
processCommonCriteria
in classBaseAdminGatewayDAOHibernate
-