public class MainProductReader extends java.lang.Object implements org.springframework.batch.item.ItemStreamReader<Product>
Modifier and Type | Field and Description |
---|---|
private CategoryProductMapAttributeReader |
categoryProductMapAttributeReader |
private java.util.Set<ProductVisitor> |
genericProductReaders |
private EPJItemStreamReader<Product> |
productReader |
private java.util.Collection<AttributeReader<?>> |
readers |
private AttributeReader<Attribute<Product>> |
subProductReader |
Constructor and Description |
---|
MainProductReader(EPJItemStreamReader<Product> productReader,
CategoryProductMapAttributeReader categoryProductMapAttributeReader,
AttributeReader<Attribute<Product>> subProductReader,
java.util.Set<AttributeReader<?>> readers,
java.util.Set<ProductVisitor> genericProductReaders) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
open(org.springframework.batch.item.ExecutionContext executionContext) |
Product |
read() |
void |
setCategoryInfoMap(CategoryInfoMap categoryInfoMap) |
void |
setReaders(java.lang.String dsName,
ProductReaderPreparedStatementSetter pstSetter) |
void |
update(org.springframework.batch.item.ExecutionContext executionContext) |
private final EPJItemStreamReader<Product> productReader
private final java.util.Collection<AttributeReader<?>> readers
private final CategoryProductMapAttributeReader categoryProductMapAttributeReader
private final java.util.Set<ProductVisitor> genericProductReaders
private final AttributeReader<Attribute<Product>> subProductReader
@Inject public MainProductReader(EPJItemStreamReader<Product> productReader, CategoryProductMapAttributeReader categoryProductMapAttributeReader, AttributeReader<Attribute<Product>> subProductReader, java.util.Set<AttributeReader<?>> readers, java.util.Set<ProductVisitor> genericProductReaders)
public void setReaders(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 void setCategoryInfoMap(CategoryInfoMap categoryInfoMap)