org.springframework.batch.sample.domain.football.internal
Class PlayerItemWriter

java.lang.Object
  extended by org.springframework.batch.sample.domain.football.internal.PlayerItemWriter
All Implemented Interfaces:
ItemWriter<Player>

public class PlayerItemWriter
extends Object
implements ItemWriter<Player>


Constructor Summary
PlayerItemWriter()
           
 
Method Summary
 void setPlayerDao(PlayerDao playerDao)
           
 void write(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(List<? extends Player> players)
           throws 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>
Throws:
Exception - if there are errors. The framework will catch the exception and convert or rethrow it as appropriate.

setPlayerDao

public void setPlayerDao(PlayerDao playerDao)


Copyright © 2009 SpringSource. All Rights Reserved.