com.ibm.commerce.catalog.beans

Class CompositePackageDataBean

  • All Implemented Interfaces:
    com.ibm.commerce.catalog.beans.CompositePackageInputDataBean, com.ibm.commerce.catalog.beans.CompositePackageSmartDataBean, java.io.Serializable


    public class CompositePackageDataBean
    extends CompositeCatalogEntryAccessBean
    implements com.ibm.commerce.catalog.beans.CompositePackageInputDataBean, com.ibm.commerce.catalog.beans.CompositePackageSmartDataBean
    This bean represents a composite Package, which is an unresolved collection of catalog entries (similar to a product) which requires specification of attributes to become a resolved package.
    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

      • CompositePackageDataBean

        public CompositePackageDataBean()
        Constructs an empty CompositePackageDataBean.
      • CompositePackageDataBean

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

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

      • getPackage

        public PackageDataBean getPackage()
        Gets a bean that represents the composite package.
        Specified by:
        getPackage in interface com.ibm.commerce.catalog.beans.CompositePackageSmartDataBean
        Returns:
        The PackageDataBean.
        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 packages.
        Specified by:
        getQuantity in interface com.ibm.commerce.catalog.beans.CompositePackageSmartDataBean
        Overrides:
        getQuantity in class CompositeCatalogEntryAccessBean
        Returns:
        The quantity of composite packages.
        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.
      • setPackage

        public void setPackage(PackageDataBean abnPackage)
        Sets the composite package.
        Specified by:
        setPackage in interface com.ibm.commerce.catalog.beans.CompositePackageInputDataBean
        Parameters:
        abnPackage - The PackageDataBean.
      • getFormattedQuantity

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