Class JdbcPlayerSummaryDao
- java.lang.Object
- org.springframework.batch.sample.domain.football.internal.JdbcPlayerSummaryDao
- All Implemented Interfaces:
ItemWriter<PlayerSummary>
public class JdbcPlayerSummaryDao extends java.lang.Object implements ItemWriter<PlayerSummary>
Constructor Summary
Constructors Constructor Description JdbcPlayerSummaryDao()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetDataSource(javax.sql.DataSource dataSource)voidwrite(java.util.List<? extends PlayerSummary> summaries)Process the supplied data element.
Method Detail
write
public void write(java.util.List<? extends PlayerSummary> summaries)
Description copied from interface:ItemWriterProcess the supplied data element. Will not be called with any null items in normal operation.- Specified by:
writein interfaceItemWriter<PlayerSummary>- Parameters:
summaries- items to be written
setDataSource
public void setDataSource(javax.sql.DataSource dataSource)