it.imolinfo.jbi4cics.messageformat.jdbc
Class JdbcFormatter

java.lang.Object
  extended by it.imolinfo.jbi4cics.messageformat.jdbc.JdbcFormatter
All Implemented Interfaces:
MessageFormatter

public class JdbcFormatter
extends java.lang.Object
implements MessageFormatter

Author:
raffaele

Constructor Summary
JdbcFormatter()
           
 
Method Summary
 void mapInputBeanToInputMessage(ServiceContext serviceContext)
          nel caso di Jdbc l'output message è un PreparedStatement o un CallableStatement con i parametri settati.
 void mapOutputMessageToOutputBean(ServiceContext serviceContext)
          nel caso di Jdbc l'output message è la coppia CallableStatement + resultset o valore di ritorno di un update.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcFormatter

public JdbcFormatter()
Method Detail

mapInputBeanToInputMessage

public void mapInputBeanToInputMessage(ServiceContext serviceContext)
                                throws FormatException
nel caso di Jdbc l'output message è un PreparedStatement o un CallableStatement con i parametri settati. Lo statement usato sarà di tipo disconnected

Specified by:
mapInputBeanToInputMessage in interface MessageFormatter
Throws:
FormatException
See Also:
it.imolinfo.jbi4cics.messageformat.MessageFormatter#mapInputBeanToInputMessage(java.lang.Object, it.imolinfo.jbi4cics.service.ServiceContext)

mapOutputMessageToOutputBean

public void mapOutputMessageToOutputBean(ServiceContext serviceContext)
                                  throws FormatException
nel caso di Jdbc l'output message è la coppia CallableStatement + resultset o valore di ritorno di un update. Ad oggi non è chiaro se serva il valore di ritorno di un update Il callable statement invece serve perchè deve essere possibile estrarre eventuali parametri di ritorno

Specified by:
mapOutputMessageToOutputBean in interface MessageFormatter
Throws:
FormatException
See Also:
it.imolinfo.jbi4cics.messageformat.MessageFormatter#mapOutputMessageToOutputBean(java.lang.Object, it.imolinfo.jbi4cics.service.ServiceContext)


Copyright © 2005-2008 Imola Informatica. All Rights Reserved.