org.opennms.netmgt.dao.hibernate
Class CategoryDaoHibernate

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate<T,DbKey>
              extended by org.opennms.netmgt.dao.hibernate.AbstractCachingDaoHibernate<OnmsCategory,Integer,String>
                  extended by org.opennms.netmgt.dao.hibernate.CategoryDaoHibernate
All Implemented Interfaces:
CategoryDao, OnmsDao<OnmsCategory,Integer>, org.springframework.beans.factory.InitializingBean

public class CategoryDaoHibernate
extends AbstractCachingDaoHibernate<OnmsCategory,Integer,String>
implements CategoryDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
CategoryDaoHibernate()
           
 
Method Summary
 OnmsCategory findByName(String name)
           
 OnmsCategory findByName(String name, boolean useCached)
           
 List<String> getAllCategoryNames()
           
 List<OnmsCategory> getCategoriesWithAuthorizedGroup(String groupName)
           
 List<org.hibernate.criterion.Criterion> getCriterionForCategorySetsUnion(String[]... categories)
           
protected  String getKey(OnmsCategory category)
           
 
Methods inherited from class org.opennms.netmgt.dao.hibernate.AbstractCachingDaoHibernate
clear, delete, deleteAll, findAll, findByCacheKey, get, load, merge, save, saveOrUpdate, update
 
Methods inherited from class org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate
bulkDelete, countAll, countMatching, evict, find, find, findMatching, findMatchingObjects, findObjects, findUnique, findUnique, findUnique, flush, initialize, queryInt, queryInt
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, 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
 
Methods inherited from interface org.opennms.netmgt.dao.OnmsDao
clear, countAll, countMatching, delete, findAll, findMatching, flush, get, initialize, load, save, saveOrUpdate, update
 

Constructor Detail

CategoryDaoHibernate

public CategoryDaoHibernate()
Method Detail

findByName

public OnmsCategory findByName(String name)
Specified by:
findByName in interface CategoryDao

findByName

public OnmsCategory findByName(String name,
                               boolean useCached)
Specified by:
findByName in interface CategoryDao

getKey

protected String getKey(OnmsCategory category)
Specified by:
getKey in class AbstractCachingDaoHibernate<OnmsCategory,Integer,String>

getAllCategoryNames

public List<String> getAllCategoryNames()
Specified by:
getAllCategoryNames in interface CategoryDao

getCriterionForCategorySetsUnion

public List<org.hibernate.criterion.Criterion> getCriterionForCategorySetsUnion(String[]... categories)
Specified by:
getCriterionForCategorySetsUnion in interface CategoryDao

getCategoriesWithAuthorizedGroup

public List<OnmsCategory> getCategoriesWithAuthorizedGroup(String groupName)
Specified by:
getCategoriesWithAuthorizedGroup in interface CategoryDao


Copyright © 2009. All Rights Reserved.