com.ibm.commerce.catalog.dataload.mediator

Class AbstractCatalogGroupMediator

    • Constructor Detail

      • AbstractCatalogGroupMediator

        public AbstractCatalogGroupMediator()
    • Method Detail

      • getCatalogGroupID

        public java.lang.String getCatalogGroupID()
        Gets catalog group id.
        Returns:
        catalog group id.
      • setCatalogGroupID

        public void setCatalogGroupID(java.lang.String catalogGroupID)
        Sets catalog group id.
        Parameters:
        catalogGroupID - catalog group id
      • setCatalogGroupIdentifier

        public void setCatalogGroupIdentifier(java.lang.String catalogGroupIdentifier)
        Sets catalog group identifier.
        Parameters:
        catalogGroupIdentifier - catalog group identifier
      • getCatalogGroupIdentifier

        public java.lang.String getCatalogGroupIdentifier()
        Gets catalog group identifier.
        Returns:
        catalog group identifier.
      • init

        public void init()
                  throws DataLoadException
        This method performs initialization for the catalog mediators. Initialization tasks include:
        • Retrieve and set resolved context data from context services. Context data includes: catalogId, LanguageId, StoreId and ownerId.
        Specified by:
        init in interface BusinessObjectMediator
        Overrides:
        init in class AbstractBaseCatalogMediator
        Throws:
        DataLoadException - An application exception will be thrown if there was a problem retrieving the business contexts.
      • getCatalogGroup

        public CatalogGroupType getCatalogGroup()
        Get the catalog group logical noun.
        Returns:
        The catalog group logical noun.
      • setCatalogGroup

        public void setCatalogGroup(CatalogGroupType catalogGroup)
        Set the catalog group logical noun.
        Parameters:
        catalogGroup - The catalog group logical noun being set.
      • 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.