final 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 LocalizedCategoryAttributeReader |
localisedCategoryAttributePeekReader |
Constructor and Description |
---|
CategoryItemStreamReader(LocalizedCategoryAttributeReader categoryReader,
DataSourceLookup dsLookup,
java.lang.String dsName,
ProductReaderPreparedStatementSetter shopIdSetter) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
private static ProductReaderPreparedStatementSetter |
getSetter(ProductReaderPreparedStatementSetter shopIdSetter) |
void |
open(org.springframework.batch.item.ExecutionContext executionContext) |
Category |
read() |
void |
update(org.springframework.batch.item.ExecutionContext executionContext) |
private final org.springframework.batch.item.database.JdbcCursorItemReader<Category> categoryItemReader
private final LocalizedCategoryAttributeReader localisedCategoryAttributePeekReader
@Inject public CategoryItemStreamReader(LocalizedCategoryAttributeReader categoryReader, DataSourceLookup dsLookup, java.lang.String dsName, ProductReaderPreparedStatementSetter shopIdSetter)
private static ProductReaderPreparedStatementSetter getSetter(ProductReaderPreparedStatementSetter shopIdSetter)
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