com.softslate.commerce.daos.product
Class CategoryDAOBasic
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
com.softslate.commerce.daos.product.CategoryDAOBasic
- All Implemented Interfaces:
- CategoryDAO, DAOInterface
- public class CategoryDAOBasic
- extends BaseDAO
- implements CategoryDAO
Generic DAO to manage the npcCategory
table of the database.
- Author:
- David Tobey
Field Summary |
private Category |
category
|
(package private) static org.apache.commons.logging.Log |
log
|
Fields inherited from class com.softslate.commerce.daos.core.BaseDAO |
|
Methods inherited from class com.softslate.commerce.daos.core.BaseDAO |
formatDateTime, getConnection, getDaoFactory, getDataSource, getSettingsBean, getSQL, getSqlMap, initialize, parseDateTime, setConnection, setDaoFactory, setDataSource, setSettingsBean, 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 |
getConnection, getDaoFactory, getDataSource, getSettingsBean, getSqlMap, initialize, setConnection, setDaoFactory, setDataSource, setSettingsBean, setSqlMap |
log
static org.apache.commons.logging.Log log
category
private Category category
CategoryDAOBasic
public CategoryDAOBasic()
getCategory
public Category getCategory()
- Specified by:
getCategory
in interface CategoryDAO
setCategory
public void setCategory(Category category)
- Specified by:
setCategory
in interface CategoryDAO
loadCategoryFromID
public void loadCategoryFromID()
throws java.lang.Exception
- Specified by:
loadCategoryFromID
in interface CategoryDAO
- Throws:
java.lang.Exception
loadCategory
public void loadCategory()
throws java.lang.Exception
- Specified by:
loadCategory
in interface CategoryDAO
- Throws:
java.lang.Exception
loadParents
public void loadParents()
throws java.lang.Exception
- Specified by:
loadParents
in interface CategoryDAO
- Throws:
java.lang.Exception
loadSubcategories
public void loadSubcategories()
throws java.lang.Exception
- Specified by:
loadSubcategories
in interface CategoryDAO
- Throws:
java.lang.Exception
getMaxCategoryID
public int getMaxCategoryID()
throws java.lang.Exception
- Specified by:
getMaxCategoryID
in interface CategoryDAO
- Throws:
java.lang.Exception
insertCategory
public void insertCategory()
throws java.lang.Exception
- Specified by:
insertCategory
in interface CategoryDAO
- Throws:
java.lang.Exception
insertCategory
public void insertCategory(boolean commit)
throws java.lang.Exception
- Specified by:
insertCategory
in interface CategoryDAO
- Throws:
java.lang.Exception
updateCategory
public void updateCategory()
throws java.lang.Exception
- Specified by:
updateCategory
in interface CategoryDAO
- Throws:
java.lang.Exception
updateCategory
public void updateCategory(boolean commit)
throws java.lang.Exception
- Specified by:
updateCategory
in interface CategoryDAO
- Throws:
java.lang.Exception
deleteCategory
public void deleteCategory()
throws java.lang.Exception
- Specified by:
deleteCategory
in interface CategoryDAO
- Throws:
java.lang.Exception
deleteCategory
public void deleteCategory(boolean commit)
throws java.lang.Exception
- Specified by:
deleteCategory
in interface CategoryDAO
- Throws:
java.lang.Exception
loadSettings
public java.util.Collection loadSettings()
throws java.lang.Exception
- Specified by:
loadSettings
in interface CategoryDAO
- Throws:
java.lang.Exception
Copyright © SoftSlate, Inc. 20032005