Package org.opennms.netmgt.dao.mock
Class UnimplementedMonitoredServiceDao
- java.lang.Object
-
- org.opennms.netmgt.dao.mock.UnimplementedMonitoredServiceDao
-
- All Implemented Interfaces:
LegacyOnmsDao<OnmsMonitoredService,java.lang.Integer>
,MonitoredServiceDao
,OnmsDao<OnmsMonitoredService,java.lang.Integer>
public class UnimplementedMonitoredServiceDao extends java.lang.Object implements MonitoredServiceDao
-
-
Constructor Summary
Constructors Constructor Description UnimplementedMonitoredServiceDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
int
countAll()
int
countMatching(Criteria onmsCrit)
int
countMatching(OnmsCriteria onmsCrit)
void
delete(java.lang.Integer key)
void
delete(OnmsMonitoredService entity)
java.util.List<OnmsMonitoredService>
findAll()
java.util.List<OnmsMonitoredService>
findAllServices()
findAllServicesjava.util.Set<OnmsMonitoredService>
findByApplication(OnmsApplication application)
findByApplicationjava.util.List<OnmsMonitoredService>
findByNode(int nodeId)
java.util.List<OnmsMonitoredService>
findByType(java.lang.String typeName)
findByTypejava.util.List<OnmsMonitoredService>
findMatching(Criteria criteria)
java.util.List<OnmsMonitoredService>
findMatching(OnmsCriteria criteria)
java.util.List<OnmsMonitoredService>
findMatchingServices(ServiceSelector serviceSelector)
findMatchingServicesvoid
flush()
OnmsMonitoredService
get(java.lang.Integer id)
OnmsMonitoredService
get(java.lang.Integer nodeId, java.net.InetAddress ipAddress, java.lang.Integer serviceId)
getOnmsMonitoredService
get(java.lang.Integer nodeId, java.net.InetAddress ipAddr, java.lang.Integer ifIndex, java.lang.Integer serviceId)
getOnmsMonitoredService
get(java.lang.Integer nodeId, java.net.InetAddress ipAddress, java.lang.String svcName)
getOnmsMonitoredService
getPrimaryService(java.lang.Integer nodeId, java.lang.String svcName)
getPrimaryServicevoid
initialize(java.lang.Object obj)
OnmsMonitoredService
load(java.lang.Integer id)
void
lock()
This is used to lock the table in order to implement upsert type operationsjava.lang.Integer
save(OnmsMonitoredService entity)
void
saveOrUpdate(OnmsMonitoredService entity)
void
update(OnmsMonitoredService entity)
-
-
-
Method Detail
-
findMatching
public java.util.List<OnmsMonitoredService> findMatching(OnmsCriteria criteria)
- Specified by:
findMatching
in interfaceLegacyOnmsDao<OnmsMonitoredService,java.lang.Integer>
-
countMatching
public int countMatching(OnmsCriteria onmsCrit)
- Specified by:
countMatching
in interfaceLegacyOnmsDao<OnmsMonitoredService,java.lang.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,java.lang.Integer>
-
initialize
public void initialize(java.lang.Object obj)
- Specified by:
initialize
in interfaceOnmsDao<OnmsMonitoredService,java.lang.Integer>
-
flush
public void flush()
- Specified by:
flush
in interfaceOnmsDao<OnmsMonitoredService,java.lang.Integer>
-
clear
public void clear()
- Specified by:
clear
in interfaceOnmsDao<OnmsMonitoredService,java.lang.Integer>
-
countAll
public int countAll()
- Specified by:
countAll
in interfaceOnmsDao<OnmsMonitoredService,java.lang.Integer>
-
delete
public void delete(OnmsMonitoredService entity)
- Specified by:
delete
in interfaceOnmsDao<OnmsMonitoredService,java.lang.Integer>
-
delete
public void delete(java.lang.Integer key)
- Specified by:
delete
in interfaceOnmsDao<OnmsMonitoredService,java.lang.Integer>
-
findAll
public java.util.List<OnmsMonitoredService> findAll()
- Specified by:
findAll
in interfaceOnmsDao<OnmsMonitoredService,java.lang.Integer>
-
findMatching
public java.util.List<OnmsMonitoredService> findMatching(Criteria criteria)
- Specified by:
findMatching
in interfaceOnmsDao<OnmsMonitoredService,java.lang.Integer>
-
countMatching
public int countMatching(Criteria onmsCrit)
- Specified by:
countMatching
in interfaceOnmsDao<OnmsMonitoredService,java.lang.Integer>
-
get
public OnmsMonitoredService get(java.lang.Integer id)
- Specified by:
get
in interfaceOnmsDao<OnmsMonitoredService,java.lang.Integer>
-
load
public OnmsMonitoredService load(java.lang.Integer id)
- Specified by:
load
in interfaceOnmsDao<OnmsMonitoredService,java.lang.Integer>
-
save
public java.lang.Integer save(OnmsMonitoredService entity)
- Specified by:
save
in interfaceOnmsDao<OnmsMonitoredService,java.lang.Integer>
-
saveOrUpdate
public void saveOrUpdate(OnmsMonitoredService entity)
- Specified by:
saveOrUpdate
in interfaceOnmsDao<OnmsMonitoredService,java.lang.Integer>
-
update
public void update(OnmsMonitoredService entity)
- Specified by:
update
in interfaceOnmsDao<OnmsMonitoredService,java.lang.Integer>
-
get
public OnmsMonitoredService get(java.lang.Integer nodeId, java.net.InetAddress ipAddress, java.lang.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(java.lang.Integer nodeId, java.net.InetAddress ipAddr, java.lang.Integer ifIndex, java.lang.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(java.lang.Integer nodeId, java.net.InetAddress ipAddress, java.lang.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 java.util.List<OnmsMonitoredService> findByType(java.lang.String typeName)
Description copied from interface:MonitoredServiceDao
findByType
- Specified by:
findByType
in interfaceMonitoredServiceDao
- Parameters:
typeName
- aString
object.- Returns:
- a
Collection
object.
-
findMatchingServices
public java.util.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 java.util.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 java.util.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(java.lang.Integer nodeId, java.lang.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 java.util.List<OnmsMonitoredService> findByNode(int nodeId)
- Specified by:
findByNode
in interfaceMonitoredServiceDao
-
-