com.ibm.commerce.giftregistry.beans

Class GiftRegistryItemCatalogEntryDataBean

  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean, Delegator, Protectable, java.io.Serializable


    public class GiftRegistryItemCatalogEntryDataBean
    extends GiftRegistryItemDataBean
    implements SmartDataBean, InputDataBean
    This bean is a GiftRegistryItemDataBean, with the extension being that it may have a corresponding CatalogEntryDataBean associated with it. If the GiftRegistryItemDataBean's partNumber and partAuxKey match a corresponding CatalogEntryDataBean's partNumber and memberId, then this GiftRegistryItem is in the online catalog and can be displayed as a catalog entry. The method getCatalogEntryDataBean() returns this beans corresponding catalog entry if it exists.

    This data bean acts as a convenience method for JSP developers. It can be initialized by passing in a giftRegistryItemId from a JSP file. A JSP file can also use GiftRegistryItemCatalogEntryListDataBean to return a list for GiftRegistryItemCatalogEntryDataBean.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • GiftRegistryItemCatalogEntryDataBean

        public GiftRegistryItemCatalogEntryDataBean()
        Default constructor
    • Method Detail

      • populate

        public void populate()
                      throws java.lang.Exception
        Populates the data bean with data elements.
        Specified by:
        populate in interface SmartDataBean
        Overrides:
        populate in class GiftRegistryItemDataBean
        Throws:
        java.lang.Exception - if there is a problem populating the data bean with data.
      • setCatalogEntryDataBean

        public void setCatalogEntryDataBean(CatalogEntryDataBean catEntDataBean)
        Sets the corresponding CatalogEntryDataBean that represents this GiftRegistryItem in the catalog
        Parameters:
        catEntDataBean - - catalog entry data bean
      • getCatalogEntryDataBean

        public CatalogEntryDataBean getCatalogEntryDataBean()
        Returns the corresponding CatalogEntryDataBean associated with this GiftRegistryItem. If the GiftRegistryItemDataBean partNumber and partAuxKey match a corresponding CatalogEntryDataBean's partNumber and memberId, then this GiftRegistryItem is in the online catalog and can be displayed as a catalog entry. This method returns this corresponding catalog entry if it exists.
        Returns:
        The corresponding CatalogEntryDataBean