Interface IMessageDecoder


  • public interface IMessageDecoder
    Converts ResultSet into eBus notification message for given message key. Providing message key means that message subject does not need to be stored in SQL database.
    Author:
    Charles W. Rapp
    • Method Detail

      • toMessage

        ENotificationMessage toMessage​(EMessageKey key,
                                       ResultSet rs)
                                throws SQLException
        Returns eBus notification message created from the given message key and SQL result set.
        Parameters:
        key - decoded eBus message key.
        rs - result set containing remaining message fields.
        Returns:
        eBus notification message subject.
        Throws:
        SQLException - if attempt to access needed message fields in result set fails.