public class CatalogFilterCatentrySelectionMediator extends CatalogFilterMediator
Constructor and Description |
---|
CatalogFilterCatentrySelectionMediator() |
Modifier and Type | Method and Description |
---|---|
void | close()
This method will perform cleanup on the business object mediator.
|
protected java.lang.String | getCatentryId()
This method returns the catalog entry id.
|
java.lang.String | getExcludeImplicitProductSetId()
This method returns the excludeImplicitProductSetId catalog product set id.
|
protected java.lang.String | getExcludeProductSetId()
This method returns the excluded catalog product set id.
|
java.lang.String | getIncludeImplicitProductSetId()
This method returns the includeImplicitProductSetId catalog product set id.
|
protected java.lang.String | getIncludeProductSetId()
This method returns the included catalog product set id.
|
protected java.lang.String | getPartNumber()
This method returns the part number of the catalog entry.
|
protected java.lang.String | getProductSetId()
This method returns the product set id.
|
protected int | getSelection()
This method returns the catalog product set selection type.
|
protected java.util.List<java.lang.String> | getSkuForProduct()
This method get all the sku catentries from a product partnumber.
|
void | init()
Performs initialization for the catalog filter catalog entry selection mediator.
|
boolean | isProduct()
This method returns the given partNumber indicated a product or not
|
protected boolean | isProductCatentry()
This method checks if the catalog entry to be processed is a product or not.
|
protected int | mapSelectionType(java.lang.String selectionType)
This method maps the selection type in the noun to the internal selection type in the database.
|
protected TableDataObject | populateCFPRODUCTSET(com.ibm.commerce.catalog.facade.datatypes.ProductSetSelectionType productSetSelection)
This method populates the physical object of CFPRODUCTSET table from the catalog filter logical object.
|
protected TableDataObject | populateImplictCFPRODUCTSET(com.ibm.commerce.catalog.facade.datatypes.ProductSetSelectionType productSetSelection)
This method populates the physical object of CFPRODUCTSET table from the catalog filter logical object while it is a product.
|
protected TableDataObject | populateImplictPRODUCTSET(com.ibm.commerce.catalog.facade.datatypes.ProductSetSelectionType productSetSelection)
This method populates the physical object of PRODUCTSET table from the ProductSetSelectionType logical object while it is a product.
|
protected TableDataObject | populateImplictPRSETCEREL(com.ibm.commerce.catalog.facade.datatypes.ProductSetSelectionType productSetSelection, boolean deleteFlag)
This method populates the physical object of PRSETCEREL table from the ProductSetSelectionType logical object and deleteFlag boolean variable while it it a product.
|
protected TableDataObject | populatePRODUCTSET(com.ibm.commerce.catalog.facade.datatypes.ProductSetSelectionType productSetSelection)
This method populates the physical object of PRODUCTSET table from the ProductSetSelectionType logical object.
|
protected TableDataObject | populatePRSETCEREL(com.ibm.commerce.catalog.facade.datatypes.ProductSetSelectionType productSetSelection)
This method populates the physical object of PRSETCEREL table from the ProductSetSelectionType logical object.
|
protected void | processCatalogFilterProductSet(com.ibm.commerce.catalog.facade.datatypes.ProductSetSelectionType productSet)
This method resolves the parameters used by catalog filter catalog entry selection data load.
|
protected void | resolveExistingProductSetIds()
This method resolves the existing product set selection for the catalog filter.
|
protected void | setCatentryId(java.lang.String catentId)
This method sets the part number of the catalog entry.
|
void | setExcludeImplicitProductSetId(java.lang.String prodSetId)
This method sets excludeImplicitProductSetId catalog product set id.
|
protected void | setExcludeProductSetId(java.lang.String prodSetId)
This method sets excluded catalog product set id.
|
void | setIncludeImplicitProductSetId(java.lang.String prodSetId)
This method sets includeImplicitProductSetId catalog product set id.
|
protected void | setIncludeProductSetId(java.lang.String prodSetId)
This method sets included catalog product set id.
|
protected void | setPartNumber(java.lang.String partnum)
This method sets the part number of the catalog entry.
|
void | setProduct(boolean isProduct) |
protected void | setProductSetId(java.lang.String prodSetId)
This method sets the product set id.
|
protected void | setSelection(int selectionType)
This method sets catalog product set selection type.
|
protected void | transform(java.lang.Object catlogFilterNoun, boolean deleteFlag)
This method transforms the logical catalog filter noun to physical objects of tables:CFPRODUCTSET, PRSETCEREL and PRODUCTSET.
|
protected void | validateCatentry()
This method checks if the catalog entry to be processed has already been in the one of the included or excluded product set.
|
public CatalogFilterCatentrySelectionMediator()
protected void transform(java.lang.Object catlogFilterNoun, boolean deleteFlag) throws DataLoadException
protected TableDataObject populateCFPRODUCTSET(com.ibm.commerce.catalog.facade.datatypes.ProductSetSelectionType productSetSelection) throws DataLoadException
protected TableDataObject populateImplictCFPRODUCTSET(com.ibm.commerce.catalog.facade.datatypes.ProductSetSelectionType productSetSelection) throws DataLoadException
protected TableDataObject populatePRODUCTSET(com.ibm.commerce.catalog.facade.datatypes.ProductSetSelectionType productSetSelection) throws DataLoadException
protected TableDataObject populateImplictPRODUCTSET(com.ibm.commerce.catalog.facade.datatypes.ProductSetSelectionType productSetSelection) throws DataLoadException
protected TableDataObject populatePRSETCEREL(com.ibm.commerce.catalog.facade.datatypes.ProductSetSelectionType productSetSelection) throws DataLoadException
protected TableDataObject populateImplictPRSETCEREL(com.ibm.commerce.catalog.facade.datatypes.ProductSetSelectionType productSetSelection, boolean deleteFlag) throws DataLoadException
protected void processCatalogFilterProductSet(com.ibm.commerce.catalog.facade.datatypes.ProductSetSelectionType productSet) throws DataLoadException
protected void setSelection(int selectionType)
protected int getSelection()
protected void setIncludeProductSetId(java.lang.String prodSetId)
protected java.lang.String getIncludeProductSetId()
protected void setPartNumber(java.lang.String partnum)
protected java.lang.String getPartNumber()
protected void setCatentryId(java.lang.String catentId)
protected java.lang.String getCatentryId()
protected void setProductSetId(java.lang.String prodSetId)
protected java.lang.String getProductSetId()
protected void setExcludeProductSetId(java.lang.String prodSetId)
protected java.lang.String getExcludeProductSetId()
public java.lang.String getExcludeImplicitProductSetId()
public void setExcludeImplicitProductSetId(java.lang.String prodSetId)
public java.lang.String getIncludeImplicitProductSetId()
public void setIncludeImplicitProductSetId(java.lang.String prodSetId)
public boolean isProduct()
public void setProduct(boolean isProduct)
protected int mapSelectionType(java.lang.String selectionType) throws DataLoadApplicationException
protected void resolveExistingProductSetIds() throws DataLoadException
protected void validateCatentry() throws DataLoadException
protected boolean isProductCatentry() throws DataLoadException
protected java.util.List<java.lang.String> getSkuForProduct() throws DataLoadException
public void init() throws DataLoadException
public void close() throws DataLoadException
This method will perform cleanup on the business object mediator. It will attempt to close all of the data writers configured for this business object mediator.
This method will flush and commit any data waiting to be persisted in the batch as well as clear the ID resolver cache.