public class CategoryItemStreamReader extends java.lang.Object implements org.springframework.batch.item.ItemStreamReader<Category>
Modifier and Type | Field and Description |
---|---|
private org.springframework.batch.item.database.JdbcCursorItemReader<Category> |
categoryItemReader |
private org.springframework.batch.item.support.SingleItemPeekableItemReader<StringAttribute> |
categoryNamesReader |
Constructor and Description |
---|
CategoryItemStreamReader(JdbcCursorItemReaderFactory<Category> cf,
PeekableItemReaderFactory<StringAttribute> laf,
java.lang.String dsName,
int shopID) |
private final org.springframework.batch.item.database.JdbcCursorItemReader<Category> categoryItemReader
private final org.springframework.batch.item.support.SingleItemPeekableItemReader<StringAttribute> categoryNamesReader
@Inject public CategoryItemStreamReader(JdbcCursorItemReaderFactory<Category> cf, PeekableItemReaderFactory<StringAttribute> laf, java.lang.String dsName, int shopID)
public void open(org.springframework.batch.item.ExecutionContext executionContext)
open
in interface org.springframework.batch.item.ItemStream
public void update(org.springframework.batch.item.ExecutionContext executionContext)
update
in interface org.springframework.batch.item.ItemStream
public void close()
close
in interface org.springframework.batch.item.ItemStream
public Category read()
read
in interface org.springframework.batch.item.ItemReader<Category>
private void handle(java.lang.Exception e)
e
-