Spring Integration

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<Message<?>>

public class MessageRowMapper
extends java.lang.Object
implements org.springframework.jdbc.core.RowMapper<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
Author:
Gunnar Hillert

Constructor Summary
MessageRowMapper(org.springframework.core.serializer.support.DeserializingConverter deserializer, org.springframework.jdbc.support.lob.LobHandler lobHandler)
           
 
Method Summary
 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 Message<?> mapRow(java.sql.ResultSet rs,
                         int rowNum)
                  throws java.sql.SQLException
Specified by:
mapRow in interface org.springframework.jdbc.core.RowMapper<Message<?>>
Throws:
java.sql.SQLException

Spring Integration