Package org.opennms.netmgt.dao.mock
Class UnimplementedMonitoredServiceDao
- java.lang.Object
-
- org.opennms.netmgt.dao.mock.UnimplementedMonitoredServiceDao
-
- All Implemented Interfaces:
LegacyOnmsDao<OnmsMonitoredService,Integer>
,MonitoredServiceDao
,OnmsDao<OnmsMonitoredService,Integer>
public class UnimplementedMonitoredServiceDao extends Object implements MonitoredServiceDao
-
-
Constructor Summary
Constructors Constructor Description UnimplementedMonitoredServiceDao()
-
Method Summary
-
-
-
Method Detail
-
findMatching
public List<OnmsMonitoredService> findMatching(OnmsCriteria criteria)
- Specified by:
findMatching
in interfaceLegacyOnmsDao<OnmsMonitoredService,Integer>
-
countMatching
public int countMatching(OnmsCriteria onmsCrit)
- Specified by:
countMatching
in interfaceLegacyOnmsDao<OnmsMonitoredService,Integer>
-
lock
public void lock()
Description copied from interface:OnmsDao
This is used to lock the table in order to implement upsert type operations- Specified by:
lock
in interfaceOnmsDao<OnmsMonitoredService,Integer>
-
initialize
public void initialize(Object obj)
- Specified by:
initialize
in interfaceOnmsDao<OnmsMonitoredService,Integer>
-
flush
public void flush()
- Specified by:
flush
in interfaceOnmsDao<OnmsMonitoredService,Integer>
-
clear
public void clear()
- Specified by:
clear
in interfaceOnmsDao<OnmsMonitoredService,Integer>
-
countAll
public int countAll()
- Specified by:
countAll
in interfaceOnmsDao<OnmsMonitoredService,Integer>
-
delete
public void delete(OnmsMonitoredService entity)
- Specified by:
delete
in interfaceOnmsDao<OnmsMonitoredService,Integer>
-
delete
public void delete(Integer key)
- Specified by:
delete
in interfaceOnmsDao<OnmsMonitoredService,Integer>
-
findAll
public List<OnmsMonitoredService> findAll()
- Specified by:
findAll
in interfaceOnmsDao<OnmsMonitoredService,Integer>
-
findMatching
public List<OnmsMonitoredService> findMatching(Criteria criteria)
- Specified by:
findMatching
in interfaceOnmsDao<OnmsMonitoredService,Integer>
-
countMatching
public int countMatching(Criteria onmsCrit)
- Specified by:
countMatching
in interfaceOnmsDao<OnmsMonitoredService,Integer>
-
get
public OnmsMonitoredService get(Integer id)
- Specified by:
get
in interfaceOnmsDao<OnmsMonitoredService,Integer>
-
load
public OnmsMonitoredService load(Integer id)
- Specified by:
load
in interfaceOnmsDao<OnmsMonitoredService,Integer>
-
save
public Integer save(OnmsMonitoredService entity)
- Specified by:
save
in interfaceOnmsDao<OnmsMonitoredService,Integer>
-
saveOrUpdate
public void saveOrUpdate(OnmsMonitoredService entity)
- Specified by:
saveOrUpdate
in interfaceOnmsDao<OnmsMonitoredService,Integer>
-
update
public void update(OnmsMonitoredService entity)
- Specified by:
update
in interfaceOnmsDao<OnmsMonitoredService,Integer>
-
get
public OnmsMonitoredService get(Integer nodeId, InetAddress ipAddress, Integer serviceId)
Description copied from interface:MonitoredServiceDao
get
- Specified by:
get
in interfaceMonitoredServiceDao
- Parameters:
nodeId
- aInteger
object.ipAddress
- aInetAddress
object.serviceId
- aInteger
object.- Returns:
- a
OnmsMonitoredService
object.
-
get
public OnmsMonitoredService get(Integer nodeId, InetAddress ipAddr, Integer ifIndex, Integer serviceId)
Description copied from interface:MonitoredServiceDao
get
- Specified by:
get
in interfaceMonitoredServiceDao
- Parameters:
nodeId
- aInteger
object.ipAddr
- aInetAddress
object.ifIndex
- aInteger
object.serviceId
- aInteger
object.- Returns:
- a
OnmsMonitoredService
object.
-
get
public OnmsMonitoredService get(Integer nodeId, InetAddress ipAddress, String svcName)
Description copied from interface:MonitoredServiceDao
get
- Specified by:
get
in interfaceMonitoredServiceDao
- Parameters:
nodeId
- aInteger
object.ipAddress
- aString
object.svcName
- aString
object.- Returns:
- a
OnmsMonitoredService
object.
-
findByType
public List<OnmsMonitoredService> findByType(String typeName)
Description copied from interface:MonitoredServiceDao
findByType
- Specified by:
findByType
in interfaceMonitoredServiceDao
- Parameters:
typeName
- aString
object.- Returns:
- a
Collection
object.
-
findMatchingServices
public List<OnmsMonitoredService> findMatchingServices(ServiceSelector serviceSelector)
Description copied from interface:MonitoredServiceDao
findMatchingServices
- Specified by:
findMatchingServices
in interfaceMonitoredServiceDao
- Parameters:
serviceSelector
- aServiceSelector
object.- Returns:
- a
Collection
object.
-
findAllServices
public List<OnmsMonitoredService> findAllServices()
Description copied from interface:MonitoredServiceDao
findAllServices
Use HQL to get OnmsMonitoredService joined with IpInterface and Node No lazy initialization- Specified by:
findAllServices
in interfaceMonitoredServiceDao
- Returns:
- a
Collection
object.
-
findByApplication
public Set<OnmsMonitoredService> findByApplication(OnmsApplication application)
Description copied from interface:MonitoredServiceDao
findByApplication
- Specified by:
findByApplication
in interfaceMonitoredServiceDao
- Parameters:
application
- aOnmsApplication
object.- Returns:
- a
Collection
object.
-
getPrimaryService
public OnmsMonitoredService getPrimaryService(Integer nodeId, String svcName)
Description copied from interface:MonitoredServiceDao
getPrimaryService
- Specified by:
getPrimaryService
in interfaceMonitoredServiceDao
- Parameters:
nodeId
- aInteger
object.svcName
- aString
object.- Returns:
- a
OnmsMonitoredService
object.
-
findByNode
public List<OnmsMonitoredService> findByNode(int nodeId)
- Specified by:
findByNode
in interfaceMonitoredServiceDao
-
-