com.ibm.commerce.catalog.beans

Class CompositeProductDataBean

  • All Implemented Interfaces:
    com.ibm.commerce.catalog.beans.CompositeProductInputDataBean, com.ibm.commerce.catalog.beans.CompositeProductSmartDataBean, java.io.Serializable


    public class CompositeProductDataBean
    extends CompositeCatalogEntryAccessBean
    implements com.ibm.commerce.catalog.beans.CompositeProductInputDataBean, com.ibm.commerce.catalog.beans.CompositeProductSmartDataBean
    This bean represents a composite Product. This bean provides more specific information for this catalog entry type compared to the more general CompositeCatalogEntryDataBean.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CompositeProductDataBean

        public CompositeProductDataBean()
        Constructs an empty CompositeProductDataBean.
      • CompositeProductDataBean

        public CompositeProductDataBean(CompositeCatalogEntryAccessBean abCompCatEntry)
        Constructs a CompositeProductDataBean from a CompositeCatalogEntryAccessBean.
        Parameters:
        abCompCatEntry - The CompositeCatalogEntryAccessBean.
        Throws:
        CreateException - In the execution of the method, a create exception occurs.
        FinderException - In the execution of the method, a finder exception occurs.
        NamingException - In the execution of the method, a naming exception occurs.
        RemoteException - In the execution of the method, a remote exception occurs.
      • CompositeProductDataBean

        public CompositeProductDataBean(CompositeCatalogEntryAccessBean abCompCatEntry,
                                        CommandContext aCommandContext)
        Constructs a CompositeProductDataBean from a CompositeCatalogEntryAccessBean and a command context.
        Parameters:
        abCompCatEntry - The CompositeCatalogEntryAccessBean.
        aCommandContext - The command context as CommandContext object.
        Throws:
        CreateException - In the execution of the method, a create exception occurs.
        FinderException - In the execution of the method, a finder exception occurs.
        NamingException - In the execution of the method, a naming exception occurs.
        RemoteException - In the execution of the method, a remote exception occurs.
    • Method Detail

      • getProduct

        public ProductDataBean getProduct()
        Gets a bean that represents the composite product.
        Specified by:
        getProduct in interface com.ibm.commerce.catalog.beans.CompositeProductSmartDataBean
        Returns:
        The ProductDataBean.
        Throws:
        CreateException - In the execution of the method, a create exception occurs.
        FinderException - In the execution of the method, a finder exception occurs.
        NamingException - In the execution of the method, a naming exception occurs.
        RemoteException - In the execution of the method, a remote exception occurs.
      • getQuantity

        public java.lang.String getQuantity()
        Gets the quantity of composite products.
        Specified by:
        getQuantity in interface com.ibm.commerce.catalog.beans.CompositeProductSmartDataBean
        Overrides:
        getQuantity in class CompositeCatalogEntryAccessBean
        Returns:
        The quantity of composite products.
        Throws:
        CreateException - In the execution of the method, a create exception occurs.
        FinderException - In the execution of the method, a finder exception occurs.
        NamingException - In the execution of the method, a naming exception occurs.
        RemoteException - In the execution of the method, a remote exception occurs.
      • setProduct

        public void setProduct(ProductDataBean abnProduct)
        Sets the composite product.
        Specified by:
        setProduct in interface com.ibm.commerce.catalog.beans.CompositeProductInputDataBean
        Parameters:
        abnItem - The ProductDataBean.
      • getFormattedQuantity

        public FormattedQuantityAmountDataBean getFormattedQuantity()
        Gets the quantity as a FormattedQuantityAmountDataBean
        Returns:
        the com.ibm.commerce.price.beans.FormattedQuantityAmountDataBean with the quantity