Class CustomerUpdateWriter

  • All Implemented Interfaces:
    ItemWriter<Trade>

    public class CustomerUpdateWriter
    extends java.lang.Object
    implements ItemWriter<Trade>
    Transforms Trade to a CustomerDebit and asks DAO delegate to write the result.
    Author:
    Robert Kasanicky
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidsetDao​(CustomerDebitDao outputSource) 
      voidwrite​(java.util.List<? extends Trade> trades)
      Process the supplied data element.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomerUpdateWriter

        public CustomerUpdateWriter()
    • Method Detail

      • write

        public void write​(java.util.List<? extends Trade> trades)
        Description copied from interface: ItemWriter
        Process the supplied data element. Will not be called with any null items in normal operation.
        Specified by:
        write in interface ItemWriter<Trade>
        Parameters:
        trades - items to be written