public class CategoriesProductMapAttributeReader extends BasePeekableReader<java.lang.Integer,CategoryProductMapAttributeEntry>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CategoriesProductMapAttributeReader.Reader |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PRODUCT_SQL |
private static org.springframework.jdbc.core.RowMapper<CategoryProductMapAttributeEntry> |
ROW_MAPPER |
static java.lang.String |
SHOP_SQL |
private CategoriesInfoMap |
shopCategoryMap |
static java.lang.String |
SQL |
Constructor and Description |
---|
CategoriesProductMapAttributeReader(AttributeValidator validator,
DataSourceLookup dataSourceLookup) |
Modifier and Type | Method and Description |
---|---|
void |
addToProduct(Product product,
CategoryProductMapAttributeEntry attribute) |
private static java.lang.String |
getSQL(ProductReaderPreparedStatementSetter pstSetter) |
void |
setCategoryMap(CategoriesInfoMap shopCategoryMap) |
addAll, getReader, open, setReader
close, open, peek, read, setDelegate, update
private CategoriesInfoMap shopCategoryMap
private static final org.springframework.jdbc.core.RowMapper<CategoryProductMapAttributeEntry> ROW_MAPPER
public static final java.lang.String SQL
public static final java.lang.String SHOP_SQL
public static final java.lang.String PRODUCT_SQL
@Inject public CategoriesProductMapAttributeReader(AttributeValidator validator, DataSourceLookup dataSourceLookup)
public void setCategoryMap(CategoriesInfoMap shopCategoryMap)
public void addToProduct(Product product, CategoryProductMapAttributeEntry attribute)
addToProduct
in class BasePeekableReader<java.lang.Integer,CategoryProductMapAttributeEntry>
private static java.lang.String getSQL(ProductReaderPreparedStatementSetter pstSetter)