Class PlayerItemWriter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidsetPlayerDao​(PlayerDao playerDao) 
      voidwrite​(java.util.List<? extends Player> players)
      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

      • PlayerItemWriter

        public PlayerItemWriter()
    • Method Detail

      • write

        public void write​(java.util.List<? extends Player> players)
                   throws java.lang.Exception
        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<Player>
        Parameters:
        players - items to be written
        Throws:
        java.lang.Exception - if there are errors. The framework will catch the exception and convert or rethrow it as appropriate.
      • setPlayerDao

        public void setPlayerDao​(PlayerDao playerDao)