Class JdbcGameDao
- java.lang.Object
- org.springframework.dao.support.DaoSupport
- org.springframework.jdbc.core.support.JdbcDaoSupport
- org.springframework.batch.sample.domain.football.internal.JdbcGameDao
- All Implemented Interfaces:
ItemWriter<Game>,org.springframework.beans.factory.InitializingBean
public class JdbcGameDao extends org.springframework.jdbc.core.support.JdbcDaoSupport implements ItemWriter<Game>
Constructor Summary
Constructors Constructor Description JdbcGameDao()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinitDao()voidwrite(java.util.List<? extends Game> games)Process the supplied data element.
Method Detail
initDao
protected void initDao() throws java.lang.Exception- Overrides:
initDaoin classorg.springframework.dao.support.DaoSupport- Throws:
java.lang.Exception
write
public void write(java.util.List<? extends Game> games)
Description copied from interface:ItemWriterProcess the supplied data element. Will not be called with any null items in normal operation.- Specified by:
writein interfaceItemWriter<Game>- Parameters:
games- items to be written