Class InterestItemListDataBean

  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean,,, Delegator, Protectable,

    public class InterestItemListDataBean
    The bean represents an interest list for a user. This bean maps to the IITEMLIST database table.

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

    Access Beans: InterestItemList

    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


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

      • InterestItemListDataBean

        public InterestItemListDataBean()
        InterestItemListDataBean default constructor.
      • InterestItemListDataBean

        public InterestItemListDataBean(InterestItemListAccessBean abList,
                                        CommandContext c)
        InterestItemListDataBean constructor.
        abList - the primary key of the interest item list
        c - the command context
    • Method Detail

      • getItem

        public InterestItemDataBean getItem(int index)
        Gets the interest item at the specified index.
        Specified by:
        getItem in interface
        the interest item
      • getListId

        public java.lang.String getListId()
        Gets the list ID of the InterestItemList.
        Specified by:
        getListId in interface
        the primary key of the interest item list
      • getNumOfItems

        public int getNumOfItems()
        Gets the number of the interest items in the list.
        Specified by:
        getNumOfItems in interface
        the number of items in the list
      • isCurrentList

        public boolean isCurrentList()
        Checks if this list is the current list for the user as defined in CIITEMLIST database table.
        Specified by:
        isCurrentList in interface
        true if it is the current list for the user; false otherwise
      • setItem

        public void setItem(int index,
                            InterestItemDataBean item)
        Sets the specified interest item at the specified position in the list.
        Specified by:
        setItem in interface
        index - the position of insertion
        item - the interest item to be inserted
      • setListId

        public void setListId(java.lang.String newList_rn)
        Sets the primary key for the list.
        Specified by:
        setListId in interface
        newList_rn - the primary key of the list
      • getInterestItemDataBeans

        public InterestItemDataBean[] getInterestItemDataBeans()
        Returns the array of InterestItemDataBeans
        the array of InterestItemDataBeans
      • setStoreEntityId

        public void setStoreEntityId(java.lang.Integer storeEntityId)
        Sets the store entity id on the bean. To scope the InterestItemListDataBean results to only contain Interest Items for the current store, set this id BEFORE activation.
        storeEntityId - the store entity id that the list of interest items should be applied to.