Package org.opennms.netmgt.dao.hibernate
Class EventdServiceManagerHibernate
- java.lang.Object
-
- org.opennms.netmgt.dao.hibernate.EventdServiceManagerHibernate
-
- All Implemented Interfaces:
EventdServiceManager
,org.springframework.beans.factory.InitializingBean
@Transactional public class EventdServiceManagerHibernate extends Object implements org.springframework.beans.factory.InitializingBean, EventdServiceManager
EventdServiceManagerHibernate class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description EventdServiceManagerHibernate()
Constructor for EventdServiceManagerHibernate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
afterPropertiesSetvoid
dataSourceSync()
dataSourceSyncint
getServiceId(String serviceName)
Lookup the service ID for a specific service by name.ServiceTypeDao
getServiceTypeDao()
getServiceTypeDaovoid
setServiceTypeDao(ServiceTypeDao serviceTypeDao)
setServiceTypeDao
-
-
-
Method Detail
-
getServiceId
public int getServiceId(String serviceName) throws org.springframework.dao.DataAccessException
Lookup the service ID for a specific service by name.- Specified by:
getServiceId
in interfaceEventdServiceManager
- Parameters:
serviceName
- aString
object.- Returns:
- service ID for the given service name or -1 if not found
- Throws:
org.springframework.dao.DataAccessException
- if there is an error accessing the database
-
dataSourceSync
public void dataSourceSync()
dataSourceSync
- Specified by:
dataSourceSync
in interfaceEventdServiceManager
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
- if any.
-
getServiceTypeDao
public ServiceTypeDao getServiceTypeDao()
getServiceTypeDao
- Returns:
- a
ServiceTypeDao
object.
-
setServiceTypeDao
public void setServiceTypeDao(ServiceTypeDao serviceTypeDao)
setServiceTypeDao
- Parameters:
serviceTypeDao
- aServiceTypeDao
object.
-
-