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

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.jdbc.core.support.JdbcDaoSupport
          extended by org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
              extended by org.springframework.batch.sample.domain.football.internal.JdbcGameDao
All Implemented Interfaces:
ItemWriter<Game>, InitializingBean

public class JdbcGameDao
extends SimpleJdbcDaoSupport
implements ItemWriter<Game>


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
JdbcGameDao()
           
 
Method Summary
protected  void initDao()
           
 void write(List<? extends Game> games)
          Process the supplied data element.
 
Methods inherited from class org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
getSimpleJdbcTemplate, initTemplateConfig
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, releaseConnection, setDataSource, setJdbcTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcGameDao

public JdbcGameDao()
Method Detail

initDao

protected void initDao()
                throws Exception
Overrides:
initDao in class DaoSupport
Throws:
Exception

write

public void write(List<? extends Game> games)
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<Game>


Copyright © 2009 SpringSource. All Rights Reserved.