Spring Data JDBC Extensions

org.springframework.data.jdbc.jms.support.converter.oracle
Class MappingAdtMessageConverter

java.lang.Object
  extended by org.springframework.data.jdbc.jms.support.converter.oracle.MappingAdtMessageConverter
All Implemented Interfaces:
MessageConverter

public class MappingAdtMessageConverter
extends Object
implements MessageConverter

A MessageConverter that handles mapping between an ADT payload and a domain object. Delegates the mapping to a DatumMapper implementation.

Since:
1.0
Author:
Thomas Risberg

Constructor Summary
MappingAdtMessageConverter(DatumMapper mapper)
          Constructor used to construct the MessageConverter and configure it with a DatumMapper implementation to be used.
 
Method Summary
 Object fromMessage(javax.jms.Message message)
           
protected  DatumMapper getMapper()
           
 javax.jms.Message toMessage(Object object, javax.jms.Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingAdtMessageConverter

public MappingAdtMessageConverter(DatumMapper mapper)
Constructor used to construct the MessageConverter and configure it with a DatumMapper implementation to be used.

Parameters:
mapper - the DatumMapper implementation to be used
Method Detail

getMapper

protected DatumMapper getMapper()

toMessage

public javax.jms.Message toMessage(Object object,
                                   javax.jms.Session session)
                            throws javax.jms.JMSException,
                                   MessageConversionException
Specified by:
toMessage in interface MessageConverter
Throws:
javax.jms.JMSException
MessageConversionException

fromMessage

public Object fromMessage(javax.jms.Message message)
                   throws javax.jms.JMSException,
                          MessageConversionException
Specified by:
fromMessage in interface MessageConverter
Throws:
javax.jms.JMSException
MessageConversionException

Spring Data JDBC Extensions