org.springframework.data.jdbc.jms.support.converter.oracle
Class MappingAdtMessageConverter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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