org.springframework.batch.sample.domain.football.internal
Class PlayerItemWriter
java.lang.Object
org.springframework.batch.sample.domain.football.internal.PlayerItemWriter
- All Implemented Interfaces:
- ItemWriter<Player>
public class PlayerItemWriter
- extends Object
- implements ItemWriter<Player>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlayerItemWriter
public PlayerItemWriter()
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.