com.softslate.commerce.daos.product
Class CategoryDAOHibernate

java.lang.Object
  extended by com.softslate.commerce.daos.core.BaseDAO
      extended by com.softslate.commerce.daos.product.CategoryDAOHibernate
All Implemented Interfaces:
DAOInterface, CategoryDAO

public class CategoryDAOHibernate
extends BaseDAO
implements CategoryDAO

Generic DAO to manage the sscCategory table of the database.

Author:
David Tobey

Field Summary
private  Category category
           
(package private) static org.apache.commons.logging.Log log
           
 
Constructor Summary
CategoryDAOHibernate()
           
 
Method Summary
 void deleteCategory()
           
 void deleteCategory(boolean commit)
           
 boolean deleteObject(java.lang.Object object, boolean commit)
           
 Category getCategory()
           
 void insertCategory()
           
 void insertCategory(boolean commit)
           
 void insertCategoryWithID()
           
 void insertCategoryWithID(boolean commit)
           
 java.lang.Object insertObject(java.lang.Object object, boolean commit)
           
 java.util.Collection loadAll()
           
 java.util.Collection loadAll(org.hibernate.Filter filter)
           
 void loadCategory()
           
 void loadCategoryFromCode()
           
 void loadCategoryFromID()
           
 java.lang.Object loadObject(java.lang.Object object)
           
 void loadParents()
          Construct the parentString and parentCollection properties by looping recursively up the category tree.
 java.util.Collection loadSettings()
           
 void loadSubcategories()
           
 void setCategory(Category category)
           
 void updateCategory()
           
 void updateCategory(boolean commit)
           
 void updateCategoryByCode()
           
 void updateCategoryByCode(boolean commit)
           
 java.lang.Object updateObject(java.lang.Object object, boolean commit)
           
 
Methods inherited from class com.softslate.commerce.daos.core.BaseDAO
evictCache, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getImportExportSQL, getImportExportSqlMap, getNamedQuery, getSettings, getSQL, getSqlMap, initialize, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setImportExportSqlMap, 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
getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getSettings, getSqlMap, initialize, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setSettings, setSqlMap
 

Field Detail

log

static org.apache.commons.logging.Log log

category

private Category category
Constructor Detail

CategoryDAOHibernate

public CategoryDAOHibernate()
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 DataAccessException
Specified by:
loadCategory in interface CategoryDAO
Throws:
DataAccessException

loadCategoryFromCode

public void loadCategoryFromCode()
                          throws DataAccessException
Specified by:
loadCategoryFromCode in interface CategoryDAO
Throws:
DataAccessException

loadParents

public void loadParents()
                 throws java.lang.Exception
Construct the parentString and parentCollection properties by looping recursively up the category tree.

Specified by:
loadParents in interface CategoryDAO
Throws:
java.lang.Exception

loadSubcategories

public void loadSubcategories()
                       throws DataAccessException
Specified by:
loadSubcategories in interface CategoryDAO
Throws:
DataAccessException

insertCategory

public void insertCategory()
                    throws DataAccessException
Specified by:
insertCategory in interface CategoryDAO
Throws:
DataAccessException

insertCategory

public void insertCategory(boolean commit)
                    throws DataAccessException
Specified by:
insertCategory in interface CategoryDAO
Throws:
DataAccessException

insertCategoryWithID

public void insertCategoryWithID()
                          throws java.lang.Exception
Specified by:
insertCategoryWithID in interface CategoryDAO
Throws:
java.lang.Exception

insertCategoryWithID

public void insertCategoryWithID(boolean commit)
                          throws java.lang.Exception
Specified by:
insertCategoryWithID in interface CategoryDAO
Throws:
java.lang.Exception

updateCategory

public void updateCategory()
                    throws DataAccessException
Specified by:
updateCategory in interface CategoryDAO
Throws:
DataAccessException

updateCategory

public void updateCategory(boolean commit)
                    throws DataAccessException
Specified by:
updateCategory in interface CategoryDAO
Throws:
DataAccessException

updateCategoryByCode

public void updateCategoryByCode()
                          throws java.lang.Exception
Specified by:
updateCategoryByCode in interface CategoryDAO
Throws:
java.lang.Exception

updateCategoryByCode

public void updateCategoryByCode(boolean commit)
                          throws java.lang.Exception
Specified by:
updateCategoryByCode in interface CategoryDAO
Throws:
java.lang.Exception

deleteCategory

public void deleteCategory()
                    throws DataAccessException
Specified by:
deleteCategory in interface CategoryDAO
Throws:
DataAccessException

deleteCategory

public void deleteCategory(boolean commit)
                    throws DataAccessException
Specified by:
deleteCategory in interface CategoryDAO
Throws:
DataAccessException

loadSettings

public java.util.Collection loadSettings()
                                  throws DataAccessException
Specified by:
loadSettings in interface CategoryDAO
Throws:
DataAccessException

loadObject

public java.lang.Object loadObject(java.lang.Object object)
                            throws java.lang.Exception
Specified by:
loadObject in interface DAOInterface
Overrides:
loadObject in class BaseDAO
Throws:
java.lang.Exception

deleteObject

public boolean deleteObject(java.lang.Object object,
                            boolean commit)
                     throws java.lang.Exception
Specified by:
deleteObject in interface DAOInterface
Overrides:
deleteObject in class BaseDAO
Throws:
java.lang.Exception

insertObject

public java.lang.Object insertObject(java.lang.Object object,
                                     boolean commit)
                              throws java.lang.Exception
Specified by:
insertObject in interface DAOInterface
Overrides:
insertObject in class BaseDAO
Throws:
java.lang.Exception

updateObject

public java.lang.Object updateObject(java.lang.Object object,
                                     boolean commit)
                              throws java.lang.Exception
Specified by:
updateObject in interface DAOInterface
Overrides:
updateObject in class BaseDAO
Throws:
java.lang.Exception

loadAll

public java.util.Collection loadAll()
                             throws java.lang.Exception
Specified by:
loadAll in interface DAOInterface
Overrides:
loadAll in class BaseDAO
Throws:
java.lang.Exception

loadAll

public java.util.Collection loadAll(org.hibernate.Filter filter)
                             throws java.lang.Exception
Specified by:
loadAll in interface DAOInterface
Overrides:
loadAll in class BaseDAO
Throws:
java.lang.Exception


Copyright ? SoftSlate, LLC 2003?2005