public class ProductDataBean extends com.ibm.commerce.catalog.beansrc.CompactProductAccessBean implements ProductSmartDataBean, ProductInputDataBean
You can find more information about data beans in the WebSphere Commerce data beans topic in the Information Center.
Access Beans: Product
Mandatory Parameters (for single row retrieval):
Some hints and tips for using this data bean are:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
ProductDataBean()
Constructs an empty ProductDataBean object.
|
ProductDataBean(CatalogEntryAccessBean abCatentry)
Constructs a ProductDataBean from a CatalogEntryAccessBean.
|
ProductDataBean(CatalogEntryAccessBean abCatEntry, CommandContext aCommandContext)
Constructs a ProductDataBean from a CatalogEntryAccessBean and a command context.
|
ProductDataBean(ProductAccessBean abProduct, CommandContext aCommandContext)
Constructs a ProductDataBean from a CatalogEntryAccessBean and a command context.
|
Modifier and Type | Method and Description |
---|---|
AttachmentDataBean[] | getAllAttachments()
Gets all the attachments in the product.
|
java.lang.Long[] | getApplicableContractIds()
Gets a list of applicable contract IDs for calculating the prices.
|
com.ibm.commerce.catalog.util.RangePricingData[] | getApplicableContractPriceRanges()
Retrieve the tiered pricing information for the current product in all the applicable contracts.
|
PriceDataBean[] | getApplicableContractPrices()
Gets a list of the applicable contracts' prices for calculating the prices.
|
AttachmentDataBean[] | getAttachmentsByUsage()
Get all the product attachments by the specified attachment relation usage.
|
AttachmentUsageDataBean[] | getAttachmentUsages()
Gets all the attachment relation usage used in the product attachments If there are no attachment usages to return, this method will return a zero length array.
|
AttributeDataBean[] | getAttributeDataBeans()
Gets a list of data beans that represent attributes of the product.
|
AttributeAccessBean[] | getAttributes()
Gets a list of beans that represent attributes of the product.
|
RelatedBundleDataBean[] | getBundleAccessories()
Gets a list of beans that represent bundles that are accessories to this product.
|
RelatedBundleDataBean[] | getBundleAssociations()
Gets a list of beans that represent bundles that are merchandising associations for this product.
|
RelatedBundleDataBean[] | getBundleCrossSells()
Gets a list of beans that represent bundles that are cross-sells to this product.
|
RelatedBundleDataBean[] | getBundleUpSells()
Gets a list of beans that represent bundles that are up-sells to this product.
|
PriceDataBean | getCalculatedContractPrice()
Gets a PriceDataBean object that represents the calculated contract price for the product.
|
PriceDataBean | getCalculatedPrice()
Gets a PriceDataBean object that represents the calculated price for the product.
|
CommandContext | getCommandContext()
Gets the current command's context passed in at run time.
|
AttributeDataBean[] | getDefiningAttributeDataBeans()
Gets a list of data beans that represent defining attributes of the product.
|
AttributeAccessBean[] | getDefiningAttributes()
Gets a list of beans that represent defining attributes of the product.
|
CatalogEntryDescriptionAccessBean | getDescription()
Gets a bean representing descriptive information about this product.
|
AttributeDataBean[] | getDescriptiveAttributeDataBeans()
Gets a list of data beans that represent descriptive attributes of the product.
|
AttributeAccessBean[] | getDescriptiveAttributes()
Gets a list of beans that represent descriptive attributes of the product.
|
CategorizedMonetaryAmountsDataBean | getDisplayTaxes()
Invokes the getTaxes method in PriceDataBean to calculate the taxes for those tax categories that are displayable at product display time.
|
RelatedDynamicKitDataBean[] | getDynamicKitAccessories()
Gets a list of beans that represent dynamic kits that are accessories.
|
RelatedDynamicKitDataBean[] | getDynamicKitAssociations()
Gets a list of beans that represent dynamic kits that are merchandising associations for this product.
|
RelatedDynamicKitDataBean[] | getDynamicKitCrossSells()
Gets a list of beans that represent dynamic kits that are cross-sells.
|
RelatedDynamicKitDataBean[] | getDynamicKitUpSells()
Gets a list of beans that represent dynamic kits that are up-sells.
|
ItemDataBean[] | getEntitledItems()
Gets a list of beans that represent items that are entitled to be seen by the user who is browsing this product.
|
boolean | getErrorMode()
Gets the error mode.
|
RelatedItemDataBean[] | getItemAccessories()
Gets a list of beans that represent items that are accessories to this product.
|
RelatedItemDataBean[] | getItemAssociations()
Gets a list of beans that represent items that are merchandising associations for this product.
|
RelatedItemDataBean[] | getItemCrossSells()
Gets a list of beans that represent items that are cross-sells to this product.
|
ItemDataBean[] | getItemDataBeans()
Gets a list of item data beans that represent the items of the product.
|
RelatedItemDataBean[] | getItemUpSells()
Gets a list of beans that represent items that are up-sells to this product.
|
PriceDataBean | getListPrice()
Gets a bean that represents the list price for the product.
|
PriceDataBean | getMaximumItemPrice()
Gets the maximum item price amongst all items for the product.
|
PriceDataBean | getMinimumItemPrice()
Gets the minimum item price amongst all items for the product.
|
int | getNumberOfApplicableContractIds()
Gets the number of applicable contract IDs for calculating the prices.
|
java.lang.String | getObjectPath()
Gets the path to objects such as images in the context of the current store.
|
RelatedPackageDataBean[] | getPackageAccessories()
Gets a list of beans that represent packages that are accessories to this product.
|
RelatedPackageDataBean[] | getPackageAssociations()
Gets a list of beans that represent packages that are merchandising associations for this product.
|
RelatedPackageDataBean[] | getPackageCrossSells()
Gets a list of beans that represent packages that are cross-sells to this product.
|
RelatedPackageDataBean[] | getPackageUpSells()
Gets a list of beans that represent packages that are up-sells to this product.
|
java.lang.String | getPartNumber()
Gets the part (SKU) number of the product.
|
RelatedProductDataBean[] | getProductAccessories()
Gets a list of beans that represent products that are accessories to this product.
|
RelatedProductDataBean[] | getProductAssociations()
Gets a list of beans that represent products that are merchandising associations for this product.
|
RelatedProductDataBean[] | getProductCrossSells()
Gets a list of beans that represent products that are cross-sells to this product.
|
java.lang.String | getProductID()
Gets the product ID that represents the primary key for this product.
|
RelatedProductDataBean[] | getProductReplacements()
Gets a list of beans that represent products that are replacements to this product.
|
RelatedProductDataBean[] | getProductUpSells()
Gets a list of beans that represent products that are up-sells to this product.
|
ItemDataBean[] | getPublishedItems()
Gets a list of beans that represent the items for this product.
|
TypedProperty | getRequestProperties()
Gets the request property.
|
PriceDataBean | getStandardPrice()
Gets a PriceDataBean that represents the standard contract price for the product.
|
boolean | isAdminMode()
Gets the administrative mode of the bean.
|
boolean | isAnyMerchandisingAssociated()
Determines whether there are any OOB or custom merchandising associations associated with this catalog entry
|
boolean | isCalculatedContractPriced()
Determines whether the product has a calculated contract price.
|
boolean | isCheckNumberOfApplicableContractIds()
Determines whether the item has any applicable contract IDs
|
boolean | isEnableAttributeLanguageFallback()
Returns true if language fallback on attribute name is enabled, false otherwise.
|
boolean | isListPriced()
Determines whether the product has a list price.
|
boolean | isMerchandisingAssociated()
Determines whether there are any merchandising associations associated with this product
|
void | populate()
Loads data into the data bean when the DataBeanManager.activate() runs.
|
void | setAdminMode(boolean aboolAdminMode)
Sets the administrative mode of the bean.
|
void | setAssociationType(java.lang.String type)
Sets the variable istrAssociationType, which represents the target association type to be processed by an internal method called processCatalogEntryAssociation().
|
void | setAttachmentUsage(java.lang.String astrAttachmentUsage)
Sets the attachment relation usage identifier to get all the attachments of the product with the same usage.
|
void | setCommandContext(CommandContext aCommandContext)
Sets the command context passed in at run time.
|
void | setDescription(CatalogEntryDescriptionAccessBean aabDescription)
Sets the descriptive information object about this product.
|
void | setEnableAttributeLanguageFallback(boolean enableAttributeLanguageFallback)
Enables the language fallback for retrieving the attribute names.
|
void | setErrorMode(boolean aErrorMode)
Sets the error mode.
|
void | setPartNumber(java.lang.String astrProductPartNumber)
Sets the product part (SKU) number.
|
void | setProductID(java.lang.String astrProductId)
Sets the product ID that represents the primary key for this product.
|
void | setRequestProperties(TypedProperty aParam)
Sets the request properties and populates the parameters that are needed by the bean.
|
public static final java.lang.String COPYRIGHT
public ProductDataBean()
public ProductDataBean(CatalogEntryAccessBean abCatentry) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public ProductDataBean(CatalogEntryAccessBean abCatEntry, CommandContext aCommandContext) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public ProductDataBean(ProductAccessBean abProduct, CommandContext aCommandContext) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.Long[] getApplicableContractIds() throws ECException
public PriceDataBean[] getApplicableContractPrices() throws ECException
public AttachmentDataBean[] getAllAttachments()
public AttachmentDataBean[] getAttachmentsByUsage()
public AttachmentUsageDataBean[] getAttachmentUsages()
public AttributeAccessBean[] getAttributes() throws javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException
public AttributeAccessBean[] getDefiningAttributes() throws javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException
public AttributeAccessBean[] getDescriptiveAttributes() throws javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException
public RelatedBundleDataBean[] getBundleAccessories() throws ECException
public RelatedBundleDataBean[] getBundleAssociations() throws ECException
setAssociationType("UPSELL");
RelatedBundleDataBean[] rb = getBundleAssociations();
public RelatedBundleDataBean[] getBundleCrossSells() throws ECException
public RelatedBundleDataBean[] getBundleUpSells() throws ECException
public PriceDataBean getCalculatedContractPrice() throws ECException
public PriceDataBean getCalculatedPrice() throws ECException
public CommandContext getCommandContext()
public CatalogEntryDescriptionAccessBean getDescription() throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.FinderException
public CategorizedMonetaryAmountsDataBean getDisplayTaxes() throws ECException
public ItemDataBean[] getEntitledItems() throws ECException
public boolean getErrorMode()
public RelatedDynamicKitDataBean[] getDynamicKitAccessories() throws ECException
public RelatedDynamicKitDataBean[] getDynamicKitAssociations() throws ECException
setAssociationType("UPSELL");
RelatedDynamicKitDataBean[] rb = getDynamicKitAssociations();
public RelatedDynamicKitDataBean[] getDynamicKitCrossSells() throws ECException
public RelatedDynamicKitDataBean[] getDynamicKitUpSells() throws ECException
public RelatedItemDataBean[] getItemAccessories() throws ECException
public RelatedItemDataBean[] getItemAssociations() throws ECException
setAssociationType("UPSELL");
RelatedItemDataBean[] ri = getItemAssociations();
public RelatedItemDataBean[] getItemCrossSells() throws ECException
public RelatedItemDataBean[] getItemUpSells() throws ECException
public PriceDataBean getListPrice() throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException
public java.lang.String getObjectPath() throws ECException
public RelatedPackageDataBean[] getPackageAssociations() throws ECException
setAssociationType("UPSELL");
RelatedPackageDataBean[] rp = getPackageAssociations();
public RelatedPackageDataBean[] getPackageAccessories() throws ECException
public RelatedPackageDataBean[] getPackageCrossSells() throws ECException
public RelatedPackageDataBean[] getPackageUpSells() throws ECException
public java.lang.String getPartNumber()
public RelatedProductDataBean[] getProductAccessories() throws ECException
public RelatedProductDataBean[] getProductAssociations() throws ECException
setAssociationType("UPSELL");
RelatedProductDataBean[] rp = getProductAssociations();
public RelatedProductDataBean[] getProductCrossSells() throws ECException
public java.lang.String getProductID()
public RelatedProductDataBean[] getProductUpSells() throws ECException
public ItemDataBean[] getPublishedItems() throws ECException
public TypedProperty getRequestProperties()
public void populate() throws java.lang.Exception
public RelatedProductDataBean[] getProductReplacements() throws ECException
public void setCommandContext(CommandContext aCommandContext)
public void setDescription(CatalogEntryDescriptionAccessBean aabDescription)
public void setErrorMode(boolean aErrorMode)
public void setPartNumber(java.lang.String astrProductPartNumber)
public void setProductID(java.lang.String astrProductId)
public boolean isEnableAttributeLanguageFallback()
public void setEnableAttributeLanguageFallback(boolean enableAttributeLanguageFallback)
public void setRequestProperties(TypedProperty aParam)
public boolean isAdminMode()
public void setAdminMode(boolean aboolAdminMode)
public void setAssociationType(java.lang.String type)
public PriceDataBean getStandardPrice()
public void setAttachmentUsage(java.lang.String astrAttachmentUsage)
public AttributeDataBean[] getDefiningAttributeDataBeans()
public AttributeDataBean[] getAttributeDataBeans()
public AttributeDataBean[] getDescriptiveAttributeDataBeans()
public ItemDataBean[] getItemDataBeans()
public boolean isMerchandisingAssociated()
public boolean isAnyMerchandisingAssociated()
public PriceDataBean getMinimumItemPrice()
public PriceDataBean getMaximumItemPrice()
public boolean isCalculatedContractPriced()
public boolean isListPriced()
public int getNumberOfApplicableContractIds() throws ECException
public boolean isCheckNumberOfApplicableContractIds()
public com.ibm.commerce.catalog.util.RangePricingData[] getApplicableContractPriceRanges() throws ECException