com.ibm.commerce.catalog.beans
Class InterestItemListDataBean

java.lang.Object
  |
  +--com.ibm.commerce.catalog.beansrc.InterestItemListDataBeanBase
        |
        +--com.ibm.commerce.catalog.beans.InterestItemListDataBean

public class InterestItemListDataBean
extends com.ibm.commerce.catalog.beansrc.InterestItemListDataBeanBase

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

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          The internal copyright field.
 
Constructor Summary
InterestItemListDataBean()
          InterestItemListDataBean default constructor.
InterestItemListDataBean( InterestItemListAccessBean abList, CommandContext c)
          InterestItemListDataBean constructor.
 
Method Summary
  CommandContext getCommandContext()
          Gets the command context.
  InterestItemDataBean getItem(int index)
          Gets the interest item at the specified index.
 java.lang.String getListId()
          Gets the list ID of the InterestItemList.
 int getNumOfItems()
          Gets the number of the interest items in the list.
  TypedProperty getRequestProperties()
          Gets the request properties.
 boolean isCurrentList()
          Checks if this list is the current list for the user as defined in table CIITEMLIST.
 void populate()
          Populates the bean with data.
 void setCommandContext( CommandContext commandContext)
          Sets the command context.
 void setItem(int index, InterestItemDataBean item)
          Sets the specified interest item at the specified position in the list.
 void setListId(java.lang.String newList_rn)
          Sets the primary key for the list.
 void setRequestProperties( TypedProperty param)
          Sets the request properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)
                         throws java.lang.Exception
InterestItemListDataBean constructor.
Parameters:
abList - the primary key of the interest item list
c - the command context
Method Detail

getCommandContext

public CommandContext getCommandContext()
Gets the command context.
Returns:
the command context

getItem

public InterestItemDataBean getItem(int index)
Gets the interest item at the specified index.
Returns:
the interest item

getListId

public java.lang.String getListId()
Gets the list ID of the InterestItemList.
Returns:
the primary key of the interest item list

getNumOfItems

public int getNumOfItems()
Gets the number of the interest items in the list.
Returns:
the number of items in the list

getRequestProperties

public TypedProperty getRequestProperties()
Gets the request properties.
Returns:
the request properties

isCurrentList

public boolean isCurrentList()
                      throws java.lang.Exception
Checks if this list is the current list for the user as defined in table CIITEMLIST.
Returns:
true if it is the current list for the user; false otherwise
java.lang.Exception

populate

public void populate()
              throws java.lang.Exception
Populates the bean with data.
Throws:
java.lang.Exception

setCommandContext

public void setCommandContext(CommandContext commandContext)
Sets the command context.
Parameters:
commandContext - the command context

setItem

public void setItem(int index,
InterestItemDataBean item)
Sets the specified interest item at the specified position in the list.
Parameters:
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.
Parameters:
newList_rn - the primary key of the list

setRequestProperties

public void setRequestProperties(TypedProperty param)
Sets the request properties.
Parameters:
param - the request properties