com.ibm.commerce.catalog.beans
Class InterestItemDataBean

java.lang.Object
  |
  +--com.ibm.commerce.catalog.beansrc.InterestItemDataBeanBase
        |
        +--com.ibm.commerce.catalog.beans.InterestItemDataBean

public class InterestItemDataBean
extends com.ibm.commerce.catalog.beansrc.InterestItemDataBeanBase

Represents an interest item within a interest list. This bean maps to the table IITEM.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          The internal copyright field.
 
Constructor Summary
InterestItemDataBean()
          InterestItemDataBean default constructor.
InterestItemDataBean( InterestItemAccessBean abInterestItem)
          InterestItemDataBean constructor.
InterestItemDataBean( InterestItemAccessBean abInterestItem, CommandContext c)
          InterestItemDataBean constructor.
 
Method Summary
 java.lang.Long[] getApplicableContractIds()
          Gets a list of applicable contracts for calculating the prices.
  PriceDataBean[] getApplicableContractPrices()
          Gets a list of applicable contract prices.
 java.lang.String getCatEntryID()
          Gets the primary key of the catalog entry contained in the interest item.
  CommandContext getCommandContext()
          Gets the command context.
  PriceDataBean getContractPrice()
          Gets the price of the InterestItem.
 java.lang.String getDescription()
          Gets the description of the InterestItem.
  CatalogEntryDescriptionAccessBean getDescription(java.lang.Integer iLanguageId)
          Gets the description of the InterestItem in the specified language.
 java.lang.String getManufactureName()
          Gets the manufacturer name of the InterestItem.
 java.lang.String getMemberId()
          Gets the primary key of the member that owns the InterestItem.
 java.lang.String getPartNumber()
          Gets the part number of the InterestItem.
  PriceDataBean getPrice()
          Gets the price of the InterestItem.
  TypedProperty getRequestProperties()
          Gets the request properties.
 void populate()
          Populates the bean with data.
 void setCatEntryID(java.lang.String catEntryId)
          Sets the primary key of the catalog entry.
 void setCommandContext( CommandContext commandContext)
          Sets the command context.
 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

InterestItemDataBean

public InterestItemDataBean()
InterestItemDataBean default constructor.

InterestItemDataBean

public InterestItemDataBean(InterestItemAccessBean abInterestItem)
                     throws java.lang.Exception
InterestItemDataBean constructor.
Parameters:
abInterestItem - the primary key of the interest item

InterestItemDataBean

public InterestItemDataBean(InterestItemAccessBean abInterestItem,
CommandContext c)
                     throws java.lang.Exception
InterestItemDataBean constructor.
Parameters:
abInterestItem - the primary key of the interest item
c - the command context
Method Detail

getApplicableContractIds

public java.lang.Long[] getApplicableContractIds()
                                          throws ECException,
                                                 javax.ejb.FinderException,
                                                 javax.ejb.CreateException,
                                                 javax.naming.NamingException,
                                                 java.rmi.RemoteException
Gets a list of applicable contracts for calculating the prices.
Returns:
the primary keys of the applicable contracts
ECException
javax.ejb.FinderException
javax.ejb.CreateException
javax.naming.NamingException
java.rmi.RemoteException

getApplicableContractPrices

public PriceDataBean[] getApplicableContractPrices()
                                            throws ECException
Gets a list of applicable contract prices.
Returns:
a list of databeans holding the applicable contract prices
ECException

getCatEntryID

public java.lang.String getCatEntryID()
Gets the primary key of the catalog entry contained in the interest item.
Returns:
the primary key of the catalog entry

getCommandContext

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

getContractPrice

public PriceDataBean getContractPrice()
                               throws ECException,
                                      javax.ejb.FinderException,
                                      javax.ejb.CreateException,
                                      javax.naming.NamingException,
                                      java.rmi.RemoteException
Gets the price of the InterestItem.
Returns:
a databean representing the applicable contract price
ECException
javax.ejb.FinderException
javax.ejb.CreateException
javax.naming.NamingException
java.rmi.RemoteException

getDescription

public java.lang.String getDescription()
                                throws java.lang.Exception
Gets the description of the InterestItem.
Returns:
the description of the interest item
java.lang.Exception

getDescription

public CatalogEntryDescriptionAccessBean getDescription(java.lang.Integer iLanguageId)
                                                 throws java.lang.Exception
Gets the description of the InterestItem in the specified language.
Parameters:
iLanguageId - the langauge ID
Returns:
the bean that holds the interest item description
java.lang.Exception

getManufactureName

public java.lang.String getManufactureName()
                                    throws java.lang.Exception
Gets the manufacturer name of the InterestItem.
Returns:
the manufacturer name
java.lang.Exception

getPartNumber

public java.lang.String getPartNumber()
                               throws java.lang.Exception
Gets the part number of the InterestItem.
Returns:
the part number
java.lang.Exception

getPrice

public PriceDataBean getPrice()
                       throws ECException,
                              javax.ejb.FinderException,
                              javax.ejb.CreateException,
                              javax.naming.NamingException,
                              java.rmi.RemoteException
Gets the price of the InterestItem.
Returns:
a data bean representing the price
ECException
javax.ejb.FinderException
javax.ejb.CreateException
javax.naming.NamingException
java.rmi.RemoteException

getRequestProperties

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

populate

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

setCatEntryID

public void setCatEntryID(java.lang.String catEntryId)
Sets the primary key of the catalog entry.
Parameters:
catEntryId - the primary key of the catalog entry

setCommandContext

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

setRequestProperties

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

getMemberId

public java.lang.String getMemberId()
                             throws java.lang.Exception
Gets the primary key of the member that owns the InterestItem.
Returns:
the primary key of the member
java.lang.Exception