com.softslate.commerce.daos.product
Class CategoryDAOBasic

java.lang.Object
  extended bycom.softslate.commerce.daos.core.BaseDAO
      extended bycom.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
 
Constructor Summary
CategoryDAOBasic()
           
 
Method Summary
 void deleteCategory()
           
 void deleteCategory(boolean commit)
           
 Category getCategory()
           
 int getMaxCategoryID()
           
 void insertCategory()
           
 void insertCategory(boolean commit)
           
 void loadCategory()
           
 void loadCategoryFromID()
           
 void loadParents()
           
 java.util.Collection loadSettings()
           
 void loadSubcategories()
           
 void setCategory(Category category)
           
 void updateCategory()
           
 void updateCategory(boolean commit)
           
 
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
 

Field Detail

log

static org.apache.commons.logging.Log log

category

private Category category
Constructor Detail

CategoryDAOBasic

public CategoryDAOBasic()
Method Detail

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. 2003–2005