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 TypeMethodDescriptionvoid
void
deleteCategory
(boolean commit) boolean
deleteObject
(Object object, boolean commit) void
void
insertCategory
(boolean commit) insertObject
(Object object, boolean commit) loadAll()
loadAll
(org.hibernate.Filter filter) void
void
void
loadObject
(Object object) void
Construct the parentString and parentCollection properties by looping recursively up the category tree.void
void
setCategory
(Category category) void
void
updateCategory
(boolean commit) void
updateCategoryOrderByID
(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, setSqlMap
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
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:
getCategory
in interfaceCategoryDAO
-
setCategory
- Specified by:
setCategory
in interfaceCategoryDAO
-
loadCategoryFromID
- Specified by:
loadCategoryFromID
in interfaceCategoryDAO
- Throws:
Exception
-
loadCategory
- Specified by:
loadCategory
in interfaceCategoryDAO
- Throws:
DataAccessException
-
loadCategoryFromCode
- Specified by:
loadCategoryFromCode
in interfaceCategoryDAO
- Throws:
DataAccessException
-
loadParents
Construct the parentString and parentCollection properties by looping recursively up the category tree.- Specified by:
loadParents
in interfaceCategoryDAO
- Throws:
Exception
-
loadSubcategories
- Specified by:
loadSubcategories
in interfaceCategoryDAO
- Throws:
DataAccessException
-
insertCategory
- Specified by:
insertCategory
in interfaceCategoryDAO
- Throws:
DataAccessException
-
insertCategory
- Specified by:
insertCategory
in interfaceCategoryDAO
- Throws:
DataAccessException
-
updateCategory
- Specified by:
updateCategory
in interfaceCategoryDAO
- Throws:
DataAccessException
-
updateCategory
- Specified by:
updateCategory
in interfaceCategoryDAO
- Throws:
DataAccessException
-
updateCategoryOrderByID
- Specified by:
updateCategoryOrderByID
in interfaceCategoryDAO
- Throws:
Exception
-
deleteCategory
- Specified by:
deleteCategory
in interfaceCategoryDAO
- Throws:
DataAccessException
-
deleteCategory
- Specified by:
deleteCategory
in interfaceCategoryDAO
- Throws:
DataAccessException
-
loadSettings
- Specified by:
loadSettings
in interfaceCategoryDAO
- Throws:
DataAccessException
-
loadObject
- Specified by:
loadObject
in interfaceDAOInterface
- Overrides:
loadObject
in classBaseDAO
- Throws:
Exception
-
deleteObject
- Specified by:
deleteObject
in interfaceDAOInterface
- Overrides:
deleteObject
in classBaseDAO
- Throws:
Exception
-
insertObject
- Specified by:
insertObject
in interfaceDAOInterface
- Overrides:
insertObject
in classBaseDAO
- Throws:
Exception
-
updateObject
- Specified by:
updateObject
in interfaceDAOInterface
- Overrides:
updateObject
in classBaseDAO
- Throws:
Exception
-
loadAll
- Specified by:
loadAll
in interfaceDAOInterface
- Overrides:
loadAll
in classBaseDAO
- Throws:
Exception
-
loadAll
- Specified by:
loadAll
in interfaceDAOInterface
- Overrides:
loadAll
in classBaseDAO
- Throws:
Exception
-