com.ibm.jbatch.tck.artifacts.chunkartifacts
Class NumbersInitWriter

java.lang.Object
  extended by javax.batch.api.chunk.AbstractItemWriter<NumbersRecord>
      extended by com.ibm.jbatch.tck.artifacts.chunkartifacts.NumbersInitWriter
All Implemented Interfaces:
ItemWriter<NumbersRecord>

@Named(value="numbersInitWriter")
public class NumbersInitWriter
extends AbstractItemWriter<NumbersRecord>


Field Summary
protected  javax.sql.DataSource dataSource
           
 
Constructor Summary
NumbersInitWriter()
           
 
Method Summary
 void open(java.io.Serializable cpd)
           
 void writeItems(java.util.List<NumbersRecord> records)
           
 
Methods inherited from class javax.batch.api.chunk.AbstractItemWriter
checkpointInfo, close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataSource

protected javax.sql.DataSource dataSource
Constructor Detail

NumbersInitWriter

public NumbersInitWriter()
Method Detail

open

public void open(java.io.Serializable cpd)
          throws javax.naming.NamingException
Specified by:
open in interface ItemWriter<NumbersRecord>
Overrides:
open in class AbstractItemWriter<NumbersRecord>
Throws:
javax.naming.NamingException

writeItems

public void writeItems(java.util.List<NumbersRecord> records)
                throws java.sql.SQLException
Specified by:
writeItems in interface ItemWriter<NumbersRecord>
Specified by:
writeItems in class AbstractItemWriter<NumbersRecord>
Throws:
java.sql.SQLException


Copyright © 2013. All Rights Reserved.