public class MockOnmsMapElementDao extends AbstractMockDao<OnmsMapElement,Integer> implements OnmsMapElementDao
AbstractMockDao.NullEventForwarder
Constructor and Description |
---|
MockOnmsMapElementDao() |
Modifier and Type | Method and Description |
---|---|
int |
countElementsOnMap(int mapid)
countElementsOnMap
|
void |
deleteElementsByElementIdAndType(int elementId,
String type)
deleteElementsByElementIdAndType
|
void |
deleteElementsByMapId(OnmsMap map)
deleteElementsByMapId
|
void |
deleteElementsByMapType(String mapType)
deleteElementsByMapType
|
void |
deleteElementsByNodeid(int nodeId)
deleteElementsByNodeid
|
void |
deleteElementsByType(String type)
deleteElementsByType
|
Collection<OnmsMapElement> |
findAll(Integer offset,
Integer limit)
findAll
|
OnmsMapElement |
findElement(int elementId,
String type,
OnmsMap map)
findElement
|
OnmsMapElement |
findElementById(int id)
findElementById
|
Collection<OnmsMapElement> |
findElementsByElementIdAndType(int elementId,
String type)
findElementsByElementIdAndType
|
Collection<OnmsMapElement> |
findElementsByMapId(OnmsMap map)
findElementsByMapId
|
Collection<OnmsMapElement> |
findElementsByMapIdAndType(int mapId,
String type)
findElementsByMapIdAndType
|
Collection<OnmsMapElement> |
findElementsByNodeId(int nodeId)
findElementsByNodeId
|
Collection<OnmsMapElement> |
findElementsByType(String type)
findElementsByType
|
Collection<OnmsMapElement> |
findMapElementsOnMap(int mapId)
findMapElementsOnMap
|
Collection<OnmsMapElement> |
findNodeElementsOnMap(int mapId)
findNodeElementsOnMap
|
protected void |
generateId(OnmsMapElement me) |
protected Integer |
getId(OnmsMapElement mapElement) |
afterPropertiesSet, clear, countAll, countMatching, countMatching, delete, delete, findAll, findMatching, findMatching, flush, get, getAlarmDao, getAssetRecordDao, getCategoryDao, getDistPollerDao, getEventDao, getIpInterfaceDao, getMonitoredServiceDao, getNodeDao, getServiceRegistry, getServiceTypeDao, getSnmpInterfaceDao, initialize, load, lock, save, 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, save, saveOrUpdate, update
protected void generateId(OnmsMapElement me)
generateId
in class AbstractMockDao<OnmsMapElement,Integer>
protected Integer getId(OnmsMapElement mapElement)
getId
in class AbstractMockDao<OnmsMapElement,Integer>
public Collection<OnmsMapElement> findAll(Integer offset, Integer limit)
OnmsMapElementDao
findAll
findAll
in interface OnmsMapElementDao
offset
- a Integer
object.limit
- a Integer
object.Collection
object.public OnmsMapElement findElementById(int id)
OnmsMapElementDao
findElementById
findElementById
in interface OnmsMapElementDao
id
- a int.OnmsMapElement
object.public OnmsMapElement findElement(int elementId, String type, OnmsMap map)
OnmsMapElementDao
findElement
findElement
in interface OnmsMapElementDao
elementId
- a int.type
- a String
object.map
- a OnmsMap
object.OnmsMapElement
object.public Collection<OnmsMapElement> findElementsByMapId(OnmsMap map)
OnmsMapElementDao
findElementsByMapId
findElementsByMapId
in interface OnmsMapElementDao
map
- a OnmsMap
object.Collection
object.public Collection<OnmsMapElement> findElementsByNodeId(int nodeId)
OnmsMapElementDao
findElementsByNodeId
findElementsByNodeId
in interface OnmsMapElementDao
nodeId
- a int.Collection
object.public Collection<OnmsMapElement> findElementsByElementIdAndType(int elementId, String type)
OnmsMapElementDao
findElementsByElementIdAndType
findElementsByElementIdAndType
in interface OnmsMapElementDao
elementId
- a int.type
- a String
object.Collection
object.public Collection<OnmsMapElement> findElementsByMapIdAndType(int mapId, String type)
OnmsMapElementDao
findElementsByMapIdAndType
findElementsByMapIdAndType
in interface OnmsMapElementDao
mapId
- a int.type
- a String
object.Collection
object.public Collection<OnmsMapElement> findElementsByType(String type)
OnmsMapElementDao
findElementsByType
findElementsByType
in interface OnmsMapElementDao
type
- a String
object.Collection
object.public void deleteElementsByMapId(OnmsMap map)
OnmsMapElementDao
deleteElementsByMapId
deleteElementsByMapId
in interface OnmsMapElementDao
map
- a OnmsMap
object.public Collection<OnmsMapElement> findMapElementsOnMap(int mapId)
OnmsMapElementDao
findMapElementsOnMap
findMapElementsOnMap
in interface OnmsMapElementDao
mapId
- a int.Collection
object.public Collection<OnmsMapElement> findNodeElementsOnMap(int mapId)
OnmsMapElementDao
findNodeElementsOnMap
findNodeElementsOnMap
in interface OnmsMapElementDao
mapId
- a int.Collection
object.public void deleteElementsByNodeid(int nodeId)
OnmsMapElementDao
deleteElementsByNodeid
deleteElementsByNodeid
in interface OnmsMapElementDao
nodeId
- a int.public void deleteElementsByType(String type)
OnmsMapElementDao
deleteElementsByType
deleteElementsByType
in interface OnmsMapElementDao
type
- a String
object.public void deleteElementsByElementIdAndType(int elementId, String type)
OnmsMapElementDao
deleteElementsByElementIdAndType
deleteElementsByElementIdAndType
in interface OnmsMapElementDao
elementId
- a int.type
- a String
object.public void deleteElementsByMapType(String mapType)
OnmsMapElementDao
deleteElementsByMapType
deleteElementsByMapType
in interface OnmsMapElementDao
mapType
- a String
object.public int countElementsOnMap(int mapid)
OnmsMapElementDao
countElementsOnMap
countElementsOnMap
in interface OnmsMapElementDao
mapid
- a int.Copyright © 2015. All rights reserved.