com.ibm.commerce.catalog.dataload.mediator

Class AbstractCatalogEntryMediator

    • Constructor Detail

      • AbstractCatalogEntryMediator

        public AbstractCatalogEntryMediator()
    • Method Detail

      • getCatalogEntry

        public CatalogEntryType getCatalogEntry()
        Returns:
        the catalog entry noun.
      • setCatalogEntry

        public void setCatalogEntry(CatalogEntryType catalogEntry)
        Set the catalog entry noun.
        Parameters:
        catalogEntry - the catalog entry noun to set
      • init

        public void init()
                  throws DataLoadException
        This method performs initialization for the catalog entry related mediators. Initialization includes:
        • Initialize the prepared SQL statements used for select or delete attribute value
        Specified by:
        init in interface BusinessObjectMediator
        Overrides:
        init in class AbstractBaseCatalogMediator
        Throws:
        DataLoadException - An application exception will be thrown if there was a problem during initialization.
      • setSupportMultipleValuesForADAttributes

        public void setSupportMultipleValuesForADAttributes(boolean supportMultipleValuesForADAttributes)
        Set the value for the config property supportMultipleValuesForADAttributes.
        Parameters:
        supportMultipleValuesForADAttributes -
      • getSupportMultipleValuesForADAttributes

        public boolean getSupportMultipleValuesForADAttributes()
        Get the value for the config property supportMultipleValuesForADAttributes.
        Returns:
        isSupportMultipleValuesForADAttributes
      • isDeleteExistingParentProduct

        public boolean isDeleteExistingParentProduct()
        Get the value for the config property deleteExistingParentProductIfNewOneIsDifferent.
        Returns:
        if delete existing parent product
      • isReplaceParentMasterCategory

        public boolean isReplaceParentMasterCategory()
        Gets the value for the config property replaceParentMasterCategory.
        Returns:
        the value for config property replaceParentMasterCategory
      • setAttributeValueValidation

        public void setAttributeValueValidation(boolean attributeValueValidation)
        Set the value for the config property attributeValueValidation.
        Parameters:
        attributeValueValidation -
      • getAttributeValueValidation

        public boolean getAttributeValueValidation()
        Get the value for the config property attributeValueValidation.
        Returns:
        isAttributeValueValidation
      • close

        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.

        Specified by:
        close in interface BusinessObjectMediator
        Overrides:
        close in class AbstractBaseCatalogMediator
        Throws:
        DataLoadException - An application exception will be thrown if there was a problem closing the business object mediator or its data writers.