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 java.lang.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)  
  • Method Summary

    Modifier and Type Method Description
    org.springframework.messaging.Message<?> mapRow​(java.sql.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)
  • Method Details

    • mapRow

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