com.ibm.commerce.catalog.beans

Class InterestItemDataBean

  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean, com.ibm.commerce.catalog.beans.InterestItemInputDataBean, com.ibm.commerce.catalog.beans.InterestItemSmartDataBean, Delegator, java.io.Serializable


    public class InterestItemDataBean
    extends com.ibm.commerce.catalog.beansrc.InterestItemDataBeanBase
    implements com.ibm.commerce.catalog.beans.InterestItemInputDataBean, com.ibm.commerce.catalog.beans.InterestItemSmartDataBean
    Represents an interest item within an interest list. This bean maps to the IITEM database table. This class inherits from the class InterestItemAccessBean.

    You can find more information about data beans in the WebSphere Commerce data beans topic in the Information Center.

    Access Beans: InterestItem

    Some hints and tips for using this data bean are:

    • You can set parameters using the constructor, or the setters

    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

      • InterestItemDataBean

        public InterestItemDataBean()
        InterestItemDataBean default constructor, calls super constructor.
      • InterestItemDataBean

        public InterestItemDataBean(InterestItemAccessBean abInterestItem)
        InterestItemDataBean constructor, specifying the primary key of the interest item.
        Parameters:
        abInterestItem - the primary key of the interest item
      • InterestItemDataBean

        public InterestItemDataBean(InterestItemAccessBean abInterestItem,
                                    CommandContext c)
        InterestItemDataBean constructor, specifying the primary key of the interest item and the command context.
        Parameters:
        abInterestItem - the primary key of the interest item
        c - the command context
    • Method Detail

      • getApplicableContractIds

        public java.lang.Long[] getApplicableContractIds()
                                                  throws ECException
        Gets a list of applicable contracts for calculating the prices.
        Specified by:
        getApplicableContractIds in interface com.ibm.commerce.catalog.beans.InterestItemSmartDataBean
        Returns:
        the primary keys of the applicable contracts
        Throws:
        ECException
      • getApplicableContractPrices

        public PriceDataBean[] getApplicableContractPrices()
        Gets a list of applicable contract prices. If there are no contract prices to return this method will return null.
        Specified by:
        getApplicableContractPrices in interface com.ibm.commerce.catalog.beans.InterestItemSmartDataBean
        Returns:
        a list of databeans holding the applicable contract prices
      • getCatEntryID

        public java.lang.String getCatEntryID()
        Gets the primary key of the catalog entry contained in the interest item.
        Specified by:
        getCatEntryID in interface com.ibm.commerce.catalog.beans.InterestItemSmartDataBean
        Returns:
        the primary key of the catalog entry
      • getContractPrice

        public PriceDataBean getContractPrice()
                                       throws ECException
        Gets the price of the interest item.
        Specified by:
        getContractPrice in interface com.ibm.commerce.catalog.beans.InterestItemSmartDataBean
        Returns:
        a databean representing the applicable contract price
        Throws:
        ECException
      • getDate

        public java.lang.String getDate()
        Gets the last update date of the interest item.
        Returns:
        the last update date of the interest item
        Throws:
        java.lang.Exception
      • getDescription

        public java.lang.String getDescription()
                                        throws java.lang.Exception
        Gets the description of the interest item.
        Specified by:
        getDescription in interface com.ibm.commerce.catalog.beans.InterestItemSmartDataBean
        Returns:
        the description of the interest item
        Throws:
        java.lang.Exception
      • getDescription

        public CatalogEntryDescriptionAccessBean getDescription(java.lang.Integer iLanguageId)
        Gets the description of the interest item in the specified language. The language ID value must be equal to an entry in the LANGUAGE database table.
        Specified by:
        getDescription in interface com.ibm.commerce.catalog.beans.InterestItemSmartDataBean
        Parameters:
        iLanguageId - the language ID
        Returns:
        the bean that holds the interest item description
      • getManufactureName

        public java.lang.String getManufactureName()
        Gets the manufacturer name of the interest item.
        Specified by:
        getManufactureName in interface com.ibm.commerce.catalog.beans.InterestItemSmartDataBean
        Returns:
        the manufacturer name
      • getPartNumber

        public java.lang.String getPartNumber()
        Gets the part number of the interest item.
        Specified by:
        getPartNumber in interface com.ibm.commerce.catalog.beans.InterestItemSmartDataBean
        Returns:
        the part number
      • getPrice

        public PriceDataBean getPrice()
                               throws ECException
        Gets the price of the interest item.
        Specified by:
        getPrice in interface com.ibm.commerce.catalog.beans.InterestItemSmartDataBean
        Returns:
        a data bean representing the price
        Throws:
        ECException
      • setCatEntryID

        public void setCatEntryID(java.lang.String catEntryId)
        Sets the primary key of the catalog entry.
        Specified by:
        setCatEntryID in interface com.ibm.commerce.catalog.beans.InterestItemInputDataBean
        Parameters:
        catEntryId - the primary key of the catalog entry
      • getMemberId

        public java.lang.String getMemberId()
        Gets the primary key of the member that owns the interest item.
        Returns:
        the primary key of the member
      • getCatalogEntryDataBean

        public CatalogEntryDataBean getCatalogEntryDataBean()
        Gets the corresponding CatalogEntryDataBean for the interest item
        Returns:
        the corresponding CatalogEntryDataBean for the interest item