public class PlayerItemWriter extends java.lang.Object implements ItemWriter<Player>
Constructor and Description |
---|
PlayerItemWriter() |
Modifier and Type | Method and Description |
---|---|
void |
setPlayerDao(PlayerDao playerDao) |
void |
write(java.util.List<? extends Player> players)
Process the supplied data element.
|
public void write(java.util.List<? extends Player> players) throws java.lang.Exception
ItemWriter
write
in interface ItemWriter<Player>
players
- items to be writtenjava.lang.Exception
- if there are errors. The framework will catch the
exception and convert or rethrow it as appropriate.public void setPlayerDao(PlayerDao playerDao)