public class MockCategoryDao extends AbstractMockDao<OnmsCategory,Integer> implements CategoryDao
AbstractMockDao.NullEventForwarder
Constructor and Description |
---|
MockCategoryDao() |
Modifier and Type | Method and Description |
---|---|
OnmsCategory |
findByName(String name)
findByName
|
OnmsCategory |
findByName(String name,
boolean useCached)
findByName
|
protected void |
generateId(OnmsCategory cat) |
List<String> |
getAllCategoryNames()
getAllCategoryNames
|
List<OnmsCategory> |
getCategoriesWithAuthorizedGroup(String groupName)
getCategoriesWithAuthorizedGroup
|
List<org.hibernate.criterion.Criterion> |
getCriterionForCategorySetsUnion(String[]... categories)
getCriterionForCategorySetsUnion
|
protected Integer |
getId(OnmsCategory cat) |
Integer |
save(OnmsCategory cat) |
afterPropertiesSet, clear, countAll, countMatching, countMatching, delete, delete, findAll, findMatching, findMatching, flush, get, getAlarmDao, getAssetRecordDao, getCategoryDao, getDistPollerDao, getEventDao, getIpInterfaceDao, getMonitoredServiceDao, getMonitoringLocationDao, getNodeDao, getServiceRegistry, getServiceTypeDao, getSnmpInterfaceDao, initialize, load, lock, saveOrUpdate, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, saveOrUpdate, update
protected void generateId(OnmsCategory cat)
generateId
in class AbstractMockDao<OnmsCategory,Integer>
protected Integer getId(OnmsCategory cat)
getId
in class AbstractMockDao<OnmsCategory,Integer>
public Integer save(OnmsCategory cat)
save
in interface OnmsDao<OnmsCategory,Integer>
save
in class AbstractMockDao<OnmsCategory,Integer>
public OnmsCategory findByName(String name)
CategoryDao
findByName
findByName
in interface CategoryDao
name
- a String
object.OnmsCategory
object.public OnmsCategory findByName(String name, boolean useCached)
CategoryDao
findByName
findByName
in interface CategoryDao
name
- a String
object.useCached
- a boolean.OnmsCategory
object.public List<String> getAllCategoryNames()
CategoryDao
getAllCategoryNames
getAllCategoryNames
in interface CategoryDao
List
object.public List<org.hibernate.criterion.Criterion> getCriterionForCategorySetsUnion(String[]... categories)
CategoryDao
getCriterionForCategorySetsUnion
getCriterionForCategorySetsUnion
in interface CategoryDao
categories
- an array of String
objects.List
object.public List<OnmsCategory> getCategoriesWithAuthorizedGroup(String groupName)
CategoryDao
getCategoriesWithAuthorizedGroup
getCategoriesWithAuthorizedGroup
in interface CategoryDao
groupName
- a String
object.List
object.Copyright © 2020. All rights reserved.