Class CategoryDAOHibernate
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
com.softslate.commerce.daos.product.CategoryDAOHibernate
- All Implemented Interfaces:
DAOInterface,CategoryDAO
Generic DAO to manage the
sscCategory table of the database.- Author:
- David Tobey
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeleteCategory(boolean commit) booleandeleteObject(Object object, boolean commit) voidvoidinsertCategory(boolean commit) insertObject(Object object, boolean commit) loadAll()loadAll(org.hibernate.Filter filter) voidvoidvoidloadObject(Object object) voidConstruct the parentString and parentCollection properties by looping recursively up the category tree.voidvoidsetCategory(Category category) voidvoidupdateCategory(boolean commit) voidupdateCategoryOrderByID(int categoryID, int categoryOrder) updateObject(Object object, boolean commit) 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, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setImportExportSqlMap, setInjector, setSettings, setSqlMapMethods 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
formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getInjector, getSettings, getSqlMap, initialize, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setInjector, setSettings, setSqlMap
-
Field Details
-
log
static org.apache.commons.logging.Log log -
category
-
-
Constructor Details
-
CategoryDAOHibernate
public CategoryDAOHibernate()
-
-
Method Details
-
getCategory
- Specified by:
getCategoryin interfaceCategoryDAO
-
setCategory
- Specified by:
setCategoryin interfaceCategoryDAO
-
loadCategoryFromID
- Specified by:
loadCategoryFromIDin interfaceCategoryDAO- Throws:
Exception
-
loadCategory
- Specified by:
loadCategoryin interfaceCategoryDAO- Throws:
DataAccessException
-
loadCategoryFromCode
- Specified by:
loadCategoryFromCodein interfaceCategoryDAO- Throws:
DataAccessException
-
loadParents
Construct the parentString and parentCollection properties by looping recursively up the category tree.- Specified by:
loadParentsin interfaceCategoryDAO- Throws:
Exception
-
loadSubcategories
- Specified by:
loadSubcategoriesin interfaceCategoryDAO- Throws:
DataAccessException
-
insertCategory
- Specified by:
insertCategoryin interfaceCategoryDAO- Throws:
DataAccessException
-
insertCategory
- Specified by:
insertCategoryin interfaceCategoryDAO- Throws:
DataAccessException
-
updateCategory
- Specified by:
updateCategoryin interfaceCategoryDAO- Throws:
DataAccessException
-
updateCategory
- Specified by:
updateCategoryin interfaceCategoryDAO- Throws:
DataAccessException
-
updateCategoryOrderByID
- Specified by:
updateCategoryOrderByIDin interfaceCategoryDAO- Throws:
Exception
-
deleteCategory
- Specified by:
deleteCategoryin interfaceCategoryDAO- Throws:
DataAccessException
-
deleteCategory
- Specified by:
deleteCategoryin interfaceCategoryDAO- Throws:
DataAccessException
-
loadSettings
- Specified by:
loadSettingsin interfaceCategoryDAO- Throws:
DataAccessException
-
loadObject
- Specified by:
loadObjectin interfaceDAOInterface- Overrides:
loadObjectin classBaseDAO- Throws:
Exception
-
deleteObject
- Specified by:
deleteObjectin interfaceDAOInterface- Overrides:
deleteObjectin classBaseDAO- Throws:
Exception
-
insertObject
- Specified by:
insertObjectin interfaceDAOInterface- Overrides:
insertObjectin classBaseDAO- Throws:
Exception
-
updateObject
- Specified by:
updateObjectin interfaceDAOInterface- Overrides:
updateObjectin classBaseDAO- Throws:
Exception
-
loadAll
- Specified by:
loadAllin interfaceDAOInterface- Overrides:
loadAllin classBaseDAO- Throws:
Exception
-
loadAll
- Specified by:
loadAllin interfaceDAOInterface- Overrides:
loadAllin classBaseDAO- Throws:
Exception
-