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
Fields -
Constructor Summary
Constructors -
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) intloadSubcategoriesSortedByCode(boolean isContentPage, int parentCategory) loadSubcategoriesSortedByName(boolean isContentPage, int parentCategory) org.hibernate.CriteriaprocessCommonCriteria(org.hibernate.Criteria crit, Map parameters) voidupdateNullifyParentIDs(String[] parentCategoryIDs) Methods inherited from class com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
editDeleteAssignments, editDeleteItems, incomingPropertiesByIndex, loadItems, loadItemsAndCount, loadItemsCount, loadItemsFromIDs, postChangedItemEvent, postChangingItemEvent, 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
-
CategoryGatewayDAOHibernate
public CategoryGatewayDAOHibernate()
-
-
Method Details
-
loadCategoriesAndCount
- Specified by:
loadCategoriesAndCountin interfaceCategoryGatewayDAO- Throws:
Exception
-
editDeleteCategories
- Specified by:
editDeleteCategoriesin interfaceCategoryGatewayDAO- Throws:
Exception
-
loadAllCategories
- Specified by:
loadAllCategoriesin interfaceCategoryGatewayDAO- Throws:
Exception
-
loadAllCategoriesSortedByName
- Specified by:
loadAllCategoriesSortedByNamein interfaceCategoryGatewayDAO- Throws:
Exception
-
loadSubcategoriesSortedByName
public Collection loadSubcategoriesSortedByName(boolean isContentPage, int parentCategory) throws Exception - Specified by:
loadSubcategoriesSortedByNamein interfaceCategoryGatewayDAO- Throws:
Exception
-
loadAllCategoriesSortedByCode
- Specified by:
loadAllCategoriesSortedByCodein interfaceCategoryGatewayDAO- Throws:
Exception
-
loadSubcategoriesSortedByCode
public Collection loadSubcategoriesSortedByCode(boolean isContentPage, int parentCategory) throws Exception - Specified by:
loadSubcategoriesSortedByCodein interfaceCategoryGatewayDAO- Throws:
Exception
-
loadMaxCategoryID
- Specified by:
loadMaxCategoryIDin interfaceCategoryGatewayDAO- Throws:
Exception
-
loadCategoriesForIndexing
public Collection loadCategoriesForIndexing(int firstCategoryID, int lastCategoryID) throws DataAccessException - Specified by:
loadCategoriesForIndexingin interfaceCategoryGatewayDAO- Throws:
DataAccessException
-
updateNullifyParentIDs
- Specified by:
updateNullifyParentIDsin interfaceCategoryGatewayDAO- Throws:
Exception
-
loadAllCategoriesInRange
- Specified by:
loadAllCategoriesInRangein interfaceCategoryGatewayDAO- Throws:
Exception
-
processCommonCriteria
- Overrides:
processCommonCriteriain classBaseAdminGatewayDAOHibernate
-