com.ibm.commerce.price.dataload.util

Class PriceDataLoadHelper

  • java.lang.Object
    • com.ibm.commerce.price.dataload.util.PriceDataLoadHelper
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String getDefaultPriceListByStoreIdAndCatentryId(java.lang.String aStoreId, java.lang.String aCatalogEntryId)
      Gets the default price list ID using the given store ID and catentry ID.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getDefaultPriceListByStoreIdAndCatentryId

        public static java.lang.String getDefaultPriceListByStoreIdAndCatentryId(java.lang.String aStoreId,
                                                                                 java.lang.String aCatalogEntryId)
                                                                          throws DataLoadException
        Gets the default price list ID using the given store ID and catentry ID.

        This method can find the default price list, when there is no price list in the business context.

        1. A related store will be used to find the default price list ID if the price list cannot be retrieved using the store ID.

        2. Null will be returned, if the default price list cannot be found.
        Parameters:
        aStoreId - The store ID in the business context. Cannot be null.
        aCatalogEntryId - The ID of catalog entry. Cannot be null.
        Returns:
        The default price list ID according to storeId and catalogEntryId or null if no default price list has been found.
        Throws:
        DataLoadException - If an error occurs when executing an SQL statement or a database connection is not closed.