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

java.lang.Object
  extended by javax.batch.api.chunk.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  javax.sql.DataSource dataSource
           
 
Constructor Summary
InventoryCachedConnWriter()
           
 
Method Summary
 void close()
           
 void open(java.io.Externalizable cpd)
           
 void write(java.util.List<InventoryRecord> records)
           
 void writeItems(java.util.List<InventoryRecord> items)
           
 
Methods inherited from class javax.batch.api.chunk.AbstractItemWriter
checkpointInfo, open
 
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

InventoryCachedConnWriter

public InventoryCachedConnWriter()
Method Detail

open

public void open(java.io.Externalizable cpd)
          throws javax.naming.NamingException,
                 java.sql.SQLException
Throws:
javax.naming.NamingException
java.sql.SQLException

write

public void write(java.util.List<InventoryRecord> records)
           throws java.sql.SQLException
Throws:
java.sql.SQLException

close

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

writeItems

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


Copyright © 2013. All Rights Reserved.