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

java.lang.Object
  extended by javax.batch.api.AbstractItemReader<InventoryRecord>
      extended by com.ibm.jbatch.tck.artifacts.chunkartifacts.InventoryReader
All Implemented Interfaces:
ItemReader<InventoryRecord>

@Named(value="inventoryReader")
public class InventoryReader
extends AbstractItemReader<InventoryRecord>


Field Summary
protected  DataSource dataSource
           
 
Constructor Summary
InventoryReader()
           
 
Method Summary
 Externalizable checkpointInfo()
           
 void open(Externalizable cpd)
           
 InventoryRecord readItem()
           
 
Methods inherited from class javax.batch.api.AbstractItemReader
close
 
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

InventoryReader

public InventoryReader()
Method Detail

open

public void open(Externalizable cpd)
          throws NamingException
Specified by:
open in interface ItemReader<InventoryRecord>
Overrides:
open in class AbstractItemReader<InventoryRecord>
Throws:
NamingException

readItem

public InventoryRecord readItem()
                         throws Exception
Specified by:
readItem in interface ItemReader<InventoryRecord>
Specified by:
readItem in class AbstractItemReader<InventoryRecord>
Throws:
Exception

checkpointInfo

public Externalizable checkpointInfo()
                              throws Exception
Specified by:
checkpointInfo in interface ItemReader<InventoryRecord>
Overrides:
checkpointInfo in class AbstractItemReader<InventoryRecord>
Throws:
Exception


Copyright © 2013. All Rights Reserved.