com.softslate.commerce.daos.product
Class CategoryGatewayDAOHibernate

java.lang.Object
  extended by com.softslate.commerce.daos.core.BaseDAO
      extended by com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
          extended by 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
(package private) static org.apache.commons.logging.Log log
           
 
Constructor Summary
CategoryGatewayDAOHibernate()
           
 
Method Summary
 void editDeleteCategories(java.util.Map parameters, BusinessObjectFactory bof)
           
 java.util.Collection loadAllCategories()
           
 java.util.Collection loadAllCategoriesInRange(int firstID, int lastID)
           
 java.util.Collection loadAllCategoriesSortedByCode()
           
 java.util.Collection loadAllCategoriesSortedByName()
           
 java.util.Map loadCategoriesAndCount(java.util.Map parameters)
           
 java.util.Collection loadCategoriesForIndexing(int firstCategoryID, int lastCategoryID)
           
 int loadMaxCategoryID()
           
 org.hibernate.Criteria processCommonCriteria(org.hibernate.Criteria crit, java.util.Map parameters)
           
 void updateNullifyParentIDs(java.lang.String[] parentCategoryIDs)
           
 
Methods inherited from class com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
editDeleteAssignments, editDeleteItems, loadItems, loadItemsAndCount, loadItemsCount, loadItemsFromIDs, setPropertiesDynamically
 
Methods inherited from class com.softslate.commerce.daos.core.BaseDAO
deleteObject, evictCache, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getImportExportSQL, getImportExportSqlMap, getNamedQuery, getSettings, getSQL, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setImportExportSqlMap, 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, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getSettings, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setSettings, setSqlMap, updateObject
 

Field Detail

log

static org.apache.commons.logging.Log log
Constructor Detail

CategoryGatewayDAOHibernate

public CategoryGatewayDAOHibernate()
Method Detail

loadCategoriesAndCount

public java.util.Map loadCategoriesAndCount(java.util.Map parameters)
                                     throws java.lang.Exception
Specified by:
loadCategoriesAndCount in interface CategoryGatewayDAO
Throws:
java.lang.Exception

editDeleteCategories

public void editDeleteCategories(java.util.Map parameters,
                                 BusinessObjectFactory bof)
                          throws java.lang.Exception
Specified by:
editDeleteCategories in interface CategoryGatewayDAO
Throws:
java.lang.Exception

loadAllCategories

public java.util.Collection loadAllCategories()
                                       throws java.lang.Exception
Specified by:
loadAllCategories in interface CategoryGatewayDAO
Throws:
java.lang.Exception

loadAllCategoriesSortedByName

public java.util.Collection loadAllCategoriesSortedByName()
                                                   throws java.lang.Exception
Specified by:
loadAllCategoriesSortedByName in interface CategoryGatewayDAO
Throws:
java.lang.Exception

loadAllCategoriesSortedByCode

public java.util.Collection loadAllCategoriesSortedByCode()
                                                   throws java.lang.Exception
Specified by:
loadAllCategoriesSortedByCode in interface CategoryGatewayDAO
Throws:
java.lang.Exception

loadMaxCategoryID

public int loadMaxCategoryID()
                      throws java.lang.Exception
Specified by:
loadMaxCategoryID in interface CategoryGatewayDAO
Throws:
java.lang.Exception

loadCategoriesForIndexing

public java.util.Collection loadCategoriesForIndexing(int firstCategoryID,
                                                      int lastCategoryID)
                                               throws DataAccessException
Specified by:
loadCategoriesForIndexing in interface CategoryGatewayDAO
Throws:
DataAccessException

updateNullifyParentIDs

public void updateNullifyParentIDs(java.lang.String[] parentCategoryIDs)
                            throws java.lang.Exception
Specified by:
updateNullifyParentIDs in interface CategoryGatewayDAO
Throws:
java.lang.Exception

loadAllCategoriesInRange

public java.util.Collection loadAllCategoriesInRange(int firstID,
                                                     int lastID)
                                              throws java.lang.Exception
Specified by:
loadAllCategoriesInRange in interface CategoryGatewayDAO
Throws:
java.lang.Exception

processCommonCriteria

public org.hibernate.Criteria processCommonCriteria(org.hibernate.Criteria crit,
                                                    java.util.Map parameters)
Overrides:
processCommonCriteria in class BaseAdminGatewayDAOHibernate


Copyright © SoftSlate, LLC 2003–2005