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

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

@Named(value="inventoryInitReader")
public class InventoryInitReader
extends AbstractItemReader<InventoryRecord>


Field Summary
protected  javax.sql.DataSource dataSource
           
 
Constructor Summary
InventoryInitReader()
           
 
Method Summary
 java.io.Serializable checkpointInfo()
           
 void open(java.io.Serializable cpd)
           
 InventoryRecord readItem()
           
 
Methods inherited from class javax.batch.api.chunk.AbstractItemReader
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

InventoryInitReader

public InventoryInitReader()
Method Detail

open

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

readItem

public InventoryRecord readItem()
                         throws java.sql.SQLException
Specified by:
readItem in interface ItemReader<InventoryRecord>
Specified by:
readItem in class AbstractItemReader<InventoryRecord>
Throws:
java.sql.SQLException

checkpointInfo

public java.io.Serializable checkpointInfo()
                                    throws java.lang.Exception
Specified by:
checkpointInfo in interface ItemReader<InventoryRecord>
Overrides:
checkpointInfo in class AbstractItemReader<InventoryRecord>
Throws:
java.lang.Exception


Copyright © 2013. All Rights Reserved.