com.ibm.commerce.giftregistry.beans

Class GiftRegistryCatalogEntryDataBean

  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean, com.ibm.commerce.catalog.beans.CatalogEntryInputDataBean, com.ibm.commerce.catalog.beans.CatalogEntrySmartDataBean, Protectable, java.io.Serializable


    public class GiftRegistryCatalogEntryDataBean
    extends CatalogEntryDataBean
    GiftRegistryCatalogEntryDataBean performs a catentry search based on the UPC code of an item. It extends CatalogEntryDataBean and takes advantage of the finder findWithPushDownQuery(String query). The UPC code is stored in CATENTRY.FIELD4.
    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

      • GiftRegistryCatalogEntryDataBean

        public GiftRegistryCatalogEntryDataBean()
        Generates an empty GiftRegistryCatalogEntryDataBean.
    • Method Detail

      • getUPC

        public java.lang.String getUPC()
        Returns the UPC of this catalog data bean.
        Returns:
        The UPC code of the catalog.
      • setUPC

        public void setUPC(java.lang.String aUPC)
        Sets the UPC of this catalog data bean
        Parameters:
        UPC - - The UPC code of the catalog
      • getPrice

        public java.lang.String getPrice()
                                  throws ECSystemException
        Returns the lowest list price and calculated contract price for this catalog data bean.
        Returns:
        price
        Throws:
        ECSystemException
      • findWithPushDownQuery

        public java.util.Enumeration findWithPushDownQuery(java.lang.String query)
        Wraps the findWithPushDownQuery. No exception will be thrown.
        Overrides:
        findWithPushDownQuery in class CatalogEntryAccessBean
        Parameters:
        query -
        Returns:
        Enumeration
      • populate

        public void populate()
                      throws java.lang.Exception
        Loads data into the data bean when the DataBeanManager.activate() runs. If you set the UPC code prior to calling this method using the setUPC method, the bean will be populated based on that UPC code.
        Specified by:
        populate in interface SmartDataBean
        Overrides:
        populate in class CatalogEntryDataBean
        Throws:
        java.lang.Exception - if there is a problem populating the data bean with data.