public class CategoryDaoHibernate extends AbstractCachingDaoHibernate<OnmsCategory,Integer,String> implements CategoryDao
CategoryDaoHibernate class.
Constructor and Description |
---|
CategoryDaoHibernate()
Constructor for CategoryDaoHibernate.
|
Modifier and Type | Method and Description |
---|---|
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
|
clear, delete, deleteAll, findAll, findByCacheKey, get, load, merge, save, saveOrUpdate, update
bulkDelete, countAll, countMatching, countMatching, delete, find, find, findMatching, findMatching, findObjects, findUnique, flush, initDao, initialize, lock, queryInt, queryInt
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
public CategoryDaoHibernate()
Constructor for CategoryDaoHibernate.
public OnmsCategory findByName(String name)
findByName
findByName
in interface CategoryDao
name
- a String
object.OnmsCategory
object.public OnmsCategory findByName(String name, boolean useCached)
findByName
findByName
in interface CategoryDao
name
- a String
object.useCached
- a boolean.OnmsCategory
object.protected String getKey(OnmsCategory category)
getKey
getKey
in class AbstractCachingDaoHibernate<OnmsCategory,Integer,String>
category
- a T object.public List<String> getAllCategoryNames()
getAllCategoryNames
getAllCategoryNames
in interface CategoryDao
List
object.public List<org.hibernate.criterion.Criterion> getCriterionForCategorySetsUnion(String[]... categories)
getCriterionForCategorySetsUnion
getCriterionForCategorySetsUnion
in interface CategoryDao
categories
- an array of String
objects.List
object.public List<OnmsCategory> getCategoriesWithAuthorizedGroup(String groupName)
getCategoriesWithAuthorizedGroup
getCategoriesWithAuthorizedGroup
in interface CategoryDao
groupName
- a String
object.List
object.Copyright © 2016. All rights reserved.