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

CategoryDaoHibernate class.

Version:
$Id: $
Author:
ranger

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
CategoryDaoHibernate()
          Constructor for CategoryDaoHibernate.
 
Method Summary
 OnmsCategory findByName(String name)
          findByName
 OnmsCategory findByName(String name, boolean useCached)
          findByName
 List<String> getAllCategoryNames()
          getAllCategoryNames
 List<OnmsCategory> getCategoriesWithAuthorizedGroup(String groupName)
          getCategoriesWithAuthorizedGroup
 List<org.hibernate.criterion.Criterion> getCriterionForCategorySetsUnion(String[]... categories)
          getCriterionForCategorySetsUnion
protected  String getKey(OnmsCategory category)
          getKey
 
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, initDao, initialize, lock, 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
 
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, lock, save, saveOrUpdate, update
 

Constructor Detail

CategoryDaoHibernate

public CategoryDaoHibernate()

Constructor for CategoryDaoHibernate.

Method Detail

findByName

public OnmsCategory findByName(String name)

findByName

Specified by:
findByName in interface CategoryDao
Parameters:
name - a String object.
Returns:
a OnmsCategory object.

findByName

public OnmsCategory findByName(String name,
                               boolean useCached)

findByName

Specified by:
findByName in interface CategoryDao
Parameters:
name - a String object.
useCached - a boolean.
Returns:
a OnmsCategory object.

getKey

protected String getKey(OnmsCategory category)

getKey

Specified by:
getKey in class AbstractCachingDaoHibernate<OnmsCategory,Integer,String>
Parameters:
category - a T object.
Returns:
a CacheKey object.

getAllCategoryNames

public List<String> getAllCategoryNames()

getAllCategoryNames

Specified by:
getAllCategoryNames in interface CategoryDao
Returns:
a List object.

getCriterionForCategorySetsUnion

public List<org.hibernate.criterion.Criterion> getCriterionForCategorySetsUnion(String[]... categories)

getCriterionForCategorySetsUnion

Specified by:
getCriterionForCategorySetsUnion in interface CategoryDao
Parameters:
categories - an array of String objects.
Returns:
a List object.

getCategoriesWithAuthorizedGroup

public List<OnmsCategory> getCategoriesWithAuthorizedGroup(String groupName)

getCategoriesWithAuthorizedGroup

Specified by:
getCategoriesWithAuthorizedGroup in interface CategoryDao
Parameters:
groupName - a String object.
Returns:
a List object.


Copyright © 2011. All Rights Reserved.