com.webstersmalley.picweb.online.db
Class CategoryDaoHibernate

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by com.webstersmalley.picweb.online.db.CategoryDaoHibernate
All Implemented Interfaces:
CategoryDao, org.springframework.beans.factory.InitializingBean

public class CategoryDaoHibernate
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements CategoryDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
CategoryDaoHibernate()
           
 
Method Summary
 void createAndStoreCategory(Category cat)
           
 Category getCategory(int id)
           
 Category getCategory(java.lang.String name)
           
 java.util.Collection getRootCategories()
           
 java.util.Collection loadCategories()
           
 void setPictureDao(PictureDao pictureDao)
           
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryDaoHibernate

public CategoryDaoHibernate()
Method Detail

setPictureDao

public void setPictureDao(PictureDao pictureDao)

loadCategories

public java.util.Collection loadCategories()
Specified by:
loadCategories in interface CategoryDao

getCategory

public Category getCategory(java.lang.String name)
Specified by:
getCategory in interface CategoryDao

createAndStoreCategory

public void createAndStoreCategory(Category cat)
Specified by:
createAndStoreCategory in interface CategoryDao

getCategory

public Category getCategory(int id)
Specified by:
getCategory in interface CategoryDao

getRootCategories

public java.util.Collection getRootCategories()
Specified by:
getRootCategories in interface CategoryDao


Copyright © 2004-2005-2005 Webster Smalley. All Rights Reserved.