Class MessageRowMapper

java.lang.Object
org.springframework.integration.jdbc.store.channel.MessageRowMapper
All Implemented Interfaces:
org.springframework.jdbc.core.RowMapper<org.springframework.messaging.Message<?>>

public class MessageRowMapper extends Object implements org.springframework.jdbc.core.RowMapper<org.springframework.messaging.Message<?>>
Convenience class to be used to unpack a Message from a result set row. Uses column named in the result set to extract the required data, so that select clause ordering is unimportant.
Since:
2.2
  • Constructor Summary

    Constructors
    Constructor
    Description
    MessageRowMapper(org.springframework.integration.support.converter.AllowListDeserializingConverter deserializer, org.springframework.jdbc.support.lob.LobHandler lobHandler)
    Construct an instance based on the provided AllowListDeserializingConverter and LobHandler.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.messaging.Message<?>
    mapRow(ResultSet rs, int rowNum)
     

    Methods inherited from class java.lang.Object

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

    • MessageRowMapper

      public MessageRowMapper(org.springframework.integration.support.converter.AllowListDeserializingConverter deserializer, org.springframework.jdbc.support.lob.LobHandler lobHandler)
      Construct an instance based on the provided AllowListDeserializingConverter and LobHandler.
      Parameters:
      deserializer - the AllowListDeserializingConverter to use.
      lobHandler - the LobHandler to use.
  • Method Details

    • mapRow

      public org.springframework.messaging.Message<?> mapRow(ResultSet rs, int rowNum) throws SQLException
      Specified by:
      mapRow in interface org.springframework.jdbc.core.RowMapper<org.springframework.messaging.Message<?>>
      Throws:
      SQLException