com.ibm.commerce.tools.catalog.util
Class ItemCreateHelper

java.lang.Object
  |
  +--com.ibm.commerce.tools.catalog.util.CatalogEntryCreateUpdateHelper
        |
        +--com.ibm.commerce.tools.catalog.util.ItemCreateHelper

public class ItemCreateHelper
extends CatalogEntryCreateUpdateHelper

ItemCreateHelper can be used to create a SKU.


Fields inherited from class com.ibm.commerce.tools.catalog.util.CatalogEntryCreateUpdateHelper
CLASS_NAME, idField3, ihashAttrValues, ihashCatentryShipping, ihashDiscount, ihashSalesTax, ihashShippingMode, ihashShippingTax, inAvailable, inBuyable, inCatalogGroupId, inCatalogId, inCatentryId, inDescLanguage, inField1, inField2, inMarkfordelete, inMemberId, inOnauction, inOnspecial, inProductId, inPublished, istrAuxDescription1, istrAuxDescription2, istrCatenttypeId, istrCatEntURL, istrField4, istrField5, istrFullimage, istrLongDescription, istrMfname, istrMfpartnumber, istrName, istrPartnumber, istrShortDescription, istrStoreId, istrThumbnail, istrXMLdetail, itmAvailabilitydate, itmLastupdate, m_cmdContext
 
Constructor Summary
ItemCreateHelper()
           
 
Method Summary
static void copyPricesFromProduct(java.lang.Long nProductId, java.lang.Long nSKUId, CommandContext cmdContext)
          Copy pricing information from parent product
 void createItem(CommandContext cmdContext)
          Creates an Item after setting all properties
 
Methods inherited from class com.ibm.commerce.tools.catalog.util.CatalogEntryCreateUpdateHelper
findAttributeValueId, findSKUByAttrValue, flushEJB, getAttributeValues, getAuxDescription1, getAuxDescription2, getAvailable, getAvailablitydate, getBuyable, getCatalogGroupId, getCatalogId, getCatentryId, getCatentryShippingInfo, getCatenttypeId, getCatEntURL, getCommandContext, getDescLanguage, getDiscount, getField1, getField2, getField3, getField4, getField5, getFullimage, getLastupdate, getLongDescription, getMarkfordelete, getMemberId, getMfname, getMfpartnumber, getName, getOnauction, getOnspecial, getPartnumber, getProductId, getPublished, getSalesTax, getShippingMode, getShippingTax, getShortDescription, getStoreDefaultLanguage, getStoreId, getThumbnail, getXMLdetail, hasAttribute, hasAttribute, hasChildCatentry, hasPrices, hasPrices, isDuplicatedAttrValue, isExistingSKUCode, refreshCalcCodeRegistry, refreshRegistry, reset, setAttributeValues, setAuxdescription1, setAuxdescription2, setAvailabilitydate, setAvailable, setBuyable, setCatalogGroupId, setCatalogId, setCatentryId, setCatentryShipping, setCatenttypeId, setCatEntURL, setCommandContext, setDescLanguage, setDiscount, setField1, setField2, setField3, setField4, setField5, setFullimage, setLastupdate, setLongdescription, setMarkfordelete, setMemberId, setMfname, setMfpartnumber, setName, setOnauction, setOnspecial, setPartnumber, setProductId, setPublished, setSalesTax, setShippingMode, setShippingTax, setShortdescription, setStoreId, setThumbnail, setXMLdetail, str2YN
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemCreateHelper

public ItemCreateHelper()
Method Detail

copyPricesFromProduct

public static void copyPricesFromProduct(java.lang.Long nProductId,
                                         java.lang.Long nSKUId,
                                         CommandContext cmdContext)
Copy pricing information from parent product

createItem

public void createItem(CommandContext cmdContext)
                throws ECException,
                       javax.ejb.CreateException,
                       javax.ejb.FinderException,
                       javax.ejb.RemoveException,
                       javax.naming.NamingException,
                       java.rmi.RemoteException,
                       CatalogToolException,
                       java.lang.Exception
Creates an Item after setting all properties