com.ibm.commerce.catalog.beans

Class CompositeItemDataBean

  • All Implemented Interfaces:
    com.ibm.commerce.catalog.beans.CompositeItemInputDataBean, com.ibm.commerce.catalog.beans.CompositeItemSmartDataBean, java.io.Serializable


    public class CompositeItemDataBean
    extends CompositeCatalogEntryAccessBean
    implements com.ibm.commerce.catalog.beans.CompositeItemInputDataBean, com.ibm.commerce.catalog.beans.CompositeItemSmartDataBean
    This bean represents a composite Item. An atomic Item resolves to an SKU, while a composite item represents unresolved catalog entries that may need additional information before becoming atomic entities (a single resolvable SKU).
    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

      • CompositeItemDataBean

        public CompositeItemDataBean()
        Constructs an empty CompositeItemDataBean.
      • CompositeItemDataBean

        public CompositeItemDataBean(CompositeCatalogEntryAccessBean abCompCatEntry)
        Constructs a CompositeItemDataBean 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.
      • CompositeItemDataBean

        public CompositeItemDataBean(CompositeCatalogEntryAccessBean abCompCatEntry,
                                     CommandContext aCommandContext)
        Constructs a CompositeItemDataBean 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

      • getItem

        public ItemDataBean getItem()
        Gets a bean that represents the composite item.
        Specified by:
        getItem in interface com.ibm.commerce.catalog.beans.CompositeItemSmartDataBean
        Returns:
        The ItemDataBean.
        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 items.
        Specified by:
        getQuantity in interface com.ibm.commerce.catalog.beans.CompositeItemSmartDataBean
        Overrides:
        getQuantity in class CompositeCatalogEntryAccessBean
        Returns:
        The quantity of composite items.
        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.
      • getSequence

        public java.lang.String getSequence()
        Gets the sequence of the composite items. This method does not retrieve the sequence from the access bean.
        Parameters:
        aCommandContext -
        Returns:
        The sequence of the composite item.
      • setSequence

        public void setSequence(java.lang.String newValue)
        Sets the sequence of this composite item.
        Parameters:
        newValue - A String value representing a new sequence number.
      • setItem

        public void setItem(ItemDataBean abnItem)
        Sets the composite item.
        Specified by:
        setItem in interface com.ibm.commerce.catalog.beans.CompositeItemInputDataBean
        Parameters:
        abnItem - The ItemDataBean.
      • getFormattedQuantity

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