public class ProductDeleteHelper extends CatalogEntryDeleteHelper
Constructor and Description |
---|
ProductDeleteHelper() |
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.
|
public void deleteAttribute(java.lang.Long nAttributeId, java.lang.Integer nLanguageId, CommandContext cmdContext) throws ECException, javax.ejb.RemoveException
ProductAttributeDeleteCmd
is executed using the
attribute ID, the CommandContext
object and the default langauge from the store.nAttributeId
- The attribute ID.nLanguageId
- The language ID.cmdContext
- The CommandContext
.ECException
- If ProductAttributeDeleteCmd
fails.javax.ejb.RemoveException
- In the execution of the method, a RemoveException
occurs.public void deleteAttributeValue(java.lang.Long nAttrValueId, java.lang.Integer nDescLanguageId, CommandContext cmdContext) throws ECException, javax.ejb.RemoveException
AttributeValueDeleteCmd
is used.nAttrValueId
- The attribute value ID.nDescLanguageId
- The language ID.cmdContext
- The CommandContext
.ECException
- If AttributeValueDeleteCmd
fails.javax.ejb.RemoveException
- In the execution of the method, a RemoveException
occurs.public void deleteProduct(java.lang.Long nProductId, CommandContext cmdContext) throws ECException, javax.ejb.RemoveException
CatalogEntryDeleteCmd
is used.nProductId
- The product ID.cmdContext
- The CommandContext
.ECException
- If CatalogEntryDeleteCmd
fails.javax.ejb.RemoveException
- In the execution of the method, a RemoveException
occurs.