com.ibm.commerce.tools.catalog.util

Class ProductDeleteHelper

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void deleteAttribute(java.lang.Long nAttributeId, java.lang.Integer nLanguageId, CommandContext cmdContext)
      Deletes one Attribute entry in TABLE Attribute.
      void deleteAttributeValue(java.lang.Long nAttrValueId, java.lang.Integer nDescLanguageId, CommandContext cmdContext)
      Deletes one Attribute value entry in TABLE AttrValue, and all SKUs using this attribute value.
      void deleteProduct(java.lang.Long nProductId, CommandContext cmdContext)
      Delete a product.
      • Methods inherited from class java.lang.Object

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

      • ProductDeleteHelper

        public ProductDeleteHelper()
    • Method Detail

      • deleteAttribute

        public void deleteAttribute(java.lang.Long nAttributeId,
                                    java.lang.Integer nLanguageId,
                                    CommandContext cmdContext)
                             throws ECException,
                                    javax.ejb.RemoveException
        Deletes one Attribute entry in TABLE Attribute. The language ID is not used at all. Instead, the command ProductAttributeDeleteCmd is executed using the attribute ID, the CommandContext object and the default langauge from the store.
        Parameters:
        nAttributeId - The attribute ID.
        nLanguageId - The language ID.
        cmdContext - The CommandContext.
        Throws:
        ECException - If ProductAttributeDeleteCmd fails.
        javax.ejb.RemoveException - In the execution of the method, a RemoveException occurs.
      • deleteAttributeValue

        public void deleteAttributeValue(java.lang.Long nAttrValueId,
                                         java.lang.Integer nDescLanguageId,
                                         CommandContext cmdContext)
                                  throws ECException,
                                         javax.ejb.RemoveException
        Deletes one Attribute value entry in TABLE AttrValue, and all SKUs using this attribute value. The command AttributeValueDeleteCmd is used.
        Parameters:
        nAttrValueId - The attribute value ID.
        nDescLanguageId - The language ID.
        cmdContext - The CommandContext.
        Throws:
        ECException - If AttributeValueDeleteCmd fails.
        javax.ejb.RemoveException - In the execution of the method, a RemoveException occurs.
      • deleteProduct

        public void deleteProduct(java.lang.Long nProductId,
                                  CommandContext cmdContext)
                           throws ECException,
                                  javax.ejb.RemoveException
        Delete a product. The command CatalogEntryDeleteCmd is used.
        Parameters:
        nProductId - The product ID.
        cmdContext - The CommandContext.
        Throws:
        ECException - If CatalogEntryDeleteCmd fails.
        javax.ejb.RemoveException - In the execution of the method, a RemoveException occurs.