public class MainProductReader extends java.lang.Object implements org.springframework.batch.item.ItemStreamReader<Product>
Modifier and Type | Field and Description |
---|---|
private CategoriesProductMapAttributeReader |
categoriesProductMapAttributeReader |
private EPJItemStreamReader<Product> |
productReader |
private java.util.Set<AttributeReader<?,?>> |
readers |
private CategoriesInfoMap |
shopCategoryMap |
Constructor and Description |
---|
MainProductReader(EPJItemStreamReader<Product> productReader,
ShopCategoryReader shopCategoryReader,
CategoriesProductMapAttributeReader categoriesProductMapAttributeReader,
java.util.Set<AttributeReader<?,?>> readers,
java.lang.String dsName,
ProductReaderPreparedStatementSetter pstSetter) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
CategoriesInfoMap |
getShopCategoryMap() |
void |
open(org.springframework.batch.item.ExecutionContext executionContext) |
Product |
read() |
void |
update(org.springframework.batch.item.ExecutionContext executionContext) |
private final EPJItemStreamReader<Product> productReader
private final java.util.Set<AttributeReader<?,?>> readers
private final CategoriesProductMapAttributeReader categoriesProductMapAttributeReader
private final CategoriesInfoMap shopCategoryMap
@Inject public MainProductReader(EPJItemStreamReader<Product> productReader, ShopCategoryReader shopCategoryReader, CategoriesProductMapAttributeReader categoriesProductMapAttributeReader, java.util.Set<AttributeReader<?,?>> readers, java.lang.String dsName, ProductReaderPreparedStatementSetter pstSetter)
public Product read()
read
in interface org.springframework.batch.item.ItemReader<Product>
public void open(org.springframework.batch.item.ExecutionContext executionContext)
open
in interface org.springframework.batch.item.ItemStream
public void close()
close
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 CategoriesInfoMap getShopCategoryMap()