Class JdbcEventdServiceManager

  • All Implemented Interfaces:
    EventdServiceManager, org.springframework.beans.factory.InitializingBean

    public class JdbcEventdServiceManager
    extends java.lang.Object
    implements org.springframework.beans.factory.InitializingBean, EventdServiceManager

    JdbcEventdServiceManager class.

    Version:
    $Id: $
    Author:
    ranger
    • Constructor Summary

      Constructors 
      Constructor Description
      JdbcEventdServiceManager()
      Constructor for JdbcEventdServiceManager.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterPropertiesSet()
      afterPropertiesSet
      void dataSourceSync()
      dataSourceSync
      javax.sql.DataSource getDataSource()
      getDataSource
      int getServiceId​(java.lang.String serviceName)
      Lookup the service ID for a specific service by name.
      void setDataSource​(javax.sql.DataSource dataSource)
      setDataSource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JdbcEventdServiceManager

        public JdbcEventdServiceManager()

        Constructor for JdbcEventdServiceManager.

    • Method Detail

      • getServiceId

        public int getServiceId​(java.lang.String serviceName)
                         throws org.springframework.dao.DataAccessException
        Lookup the service ID for a specific service by name.
        Specified by:
        getServiceId in interface EventdServiceManager
        Parameters:
        serviceName - a String 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
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception

        afterPropertiesSet

        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception - if any.
      • getDataSource

        public javax.sql.DataSource getDataSource()

        getDataSource

        Returns:
        a DataSource object.
      • setDataSource

        public void setDataSource​(javax.sql.DataSource dataSource)

        setDataSource

        Parameters:
        dataSource - a DataSource object.