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

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

@Named(value="inventoryCachedConnWriter")
public class InventoryCachedConnWriter
extends AbstractItemWriter<InventoryRecord>


Field Summary
protected  DataSource dataSource
           
 
Constructor Summary
InventoryCachedConnWriter()
           
 
Method Summary
 void close()
           
 void open(Externalizable cpd)
           
 void write(List<InventoryRecord> records)
           
 void writeItems(List<InventoryRecord> items)
           
 
Methods inherited from class javax.batch.api.AbstractItemWriter
checkpointInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataSource

protected DataSource dataSource
Constructor Detail

InventoryCachedConnWriter

public InventoryCachedConnWriter()
Method Detail

open

public void open(Externalizable cpd)
          throws NamingException,
                 SQLException
Specified by:
open in interface ItemWriter<InventoryRecord>
Overrides:
open in class AbstractItemWriter<InventoryRecord>
Throws:
NamingException
SQLException

write

public void write(List<InventoryRecord> records)
           throws SQLException
Throws:
SQLException

close

public void close()
Specified by:
close in interface ItemWriter<InventoryRecord>
Overrides:
close in class AbstractItemWriter<InventoryRecord>

writeItems

public void writeItems(List<InventoryRecord> items)
                throws Exception
Specified by:
writeItems in interface ItemWriter<InventoryRecord>
Specified by:
writeItems in class AbstractItemWriter<InventoryRecord>
Throws:
Exception


Copyright © 2013. All Rights Reserved.