org.fm.addressbook.dao.hibernate
Class HibernateCategoryDAO

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.fm.addressbook.dao.hibernate.HibernateCategoryDAO
All Implemented Interfaces:
CategoryDAO, org.springframework.beans.factory.InitializingBean

public class HibernateCategoryDAO
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements CategoryDAO

JContact- online Address Book Management Systemhttp://jcontact.sourceforge.net/

Licensed under the terms of any of the following licenses at your choice: -
GNU General Public License Version 2 or later (the "GPL") http://www.gnu.org/licenses/gpl.html -
GNU Lesser General Public License Version 2.1 or later (the "LGPL") http://www.gnu.org/licenses/lgpl.html

HibernateCategoryDAO class.

Author:
Tennyson Varghese
Aneesh S

Constructor Summary
HibernateCategoryDAO()
           
 
Method Summary
 void deleteCategory(Category category)
           
 java.util.List<Category> getAllCategories()
           
 java.util.List<Contact> getAllContacts(AddressBook addressBook, Category category)
           
 java.util.List<Contact> getAllContacts(Category category)
           
 Category getCategory(long id)
           
 void saveCategory(Category category)
           
 void updateCategory(Category category)
           
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateCategoryDAO

public HibernateCategoryDAO()
Method Detail

deleteCategory

public void deleteCategory(Category category)
Specified by:
deleteCategory in interface CategoryDAO

getAllContacts

public java.util.List<Contact> getAllContacts(Category category)
Specified by:
getAllContacts in interface CategoryDAO

saveCategory

public void saveCategory(Category category)
Specified by:
saveCategory in interface CategoryDAO

updateCategory

public void updateCategory(Category category)
Specified by:
updateCategory in interface CategoryDAO

getAllCategories

public java.util.List<Category> getAllCategories()
Specified by:
getAllCategories in interface CategoryDAO

getAllContacts

public java.util.List<Contact> getAllContacts(AddressBook addressBook,
                                              Category category)
Specified by:
getAllContacts in interface CategoryDAO

getCategory

public Category getCategory(long id)
Specified by:
getCategory in interface CategoryDAO