com.ibm.commerce.catalog.dataload.mediator

Class CatalogEntryMediator

  • All Implemented Interfaces:
    CatalogDataLoadConstants, BusinessObjectMediator


    public class CatalogEntryMediator
    extends AbstractCatalogEntryMediator
    Catalog entry mediator for writing Catalog entry. The tables populated by this mediator include:
    • CATENTRY
    • CATENTDESC
    • CATGPENREL
    • CATENTREL
    • LISTPRICE
    • CATENTSHIP
    • STORECENT
    • BASEITEM
    • BASEITMDSC
    • DISTARRANG
    • STOREITEM
    • ITEMVERSN
    • ITEMSPC
    • VERSIONSPC
    • CATENCALCD
    • ATTRIBUTE
    • ATTRVALUE
    • ATTRDICT
    • ATTR
    • ATTRDESC
    • ATTRVAL
    • ATTRVALDESC
    • CATENTRYATTR
    • CATENTSUBS
    • SEOURL
    • SEOPAGEDEF
    • Constructor Detail

      • CatalogEntryMediator

        public CatalogEntryMediator()
    • Method Detail

      • init

        public void init()
                  throws DataLoadException
        This method performs initialization for the catalog entry mediator. Initialization includes:
        • Set if mark for delete is enabled for this mediator.
        • Set parameter to indicate whether creating missing parent product is required.
        • Initialize the prepared SQL statements used for mark for delete
        Specified by:
        init in interface BusinessObjectMediator
        Overrides:
        init in class AbstractCatalogEntryMediator
        Throws:
        DataLoadException - An application exception will be thrown if there was a problem during initialization.
      • 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 AbstractCatalogEntryMediator
        Throws:
        DataLoadException - An application exception will be thrown if there was a problem closing the business object mediator or its data writers.