org.springframework.integration.jdbc.store.channel
Class MessageRowMapper

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

public class MessageRowMapper
extends java.lang.Object
implements org.springframework.jdbc.core.RowMapper<org.springframework.integration.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
MessageRowMapper(org.springframework.core.serializer.support.DeserializingConverter deserializer, org.springframework.jdbc.support.lob.LobHandler lobHandler)
           
 
Method Summary
 org.springframework.integration.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 Detail

MessageRowMapper

public MessageRowMapper(org.springframework.core.serializer.support.DeserializingConverter deserializer,
                        org.springframework.jdbc.support.lob.LobHandler lobHandler)
Method Detail

mapRow

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